Hostname and OpenVZ

1

Depending on reboot method, this file can be re-updated not properly by virtualization system :
/etc/hostname

Work around is to lock this file from being changed by anything once value is correct, example : myserver.hostname.com

To lock it :
chattr +i /etc/hostname

To unlock it, do :
chattr -i /etc/hostname

Same for /etc/hosts and /etc/resolv.conf f you use custom entries you want to keep at each reboot

Install utility to proceed :
apt-get install e2fsprogs
or
yum -y install e2fsprogs

 

TUN/TAP enable

It's enabled by default, do this following command and if you get the same output, it means it is already active :

cat /dev/net/tun
cat: /dev/net/tun: File descriptor in bad state

If you get 'operation not permitted', turn off VPS (not stop), and start again