ID #1771

Why are some system files overwritten during a reboot?

Virtualization solution: OpenVZ / Virtuozzo

Situation:
When a vServer is restarted, partial system files are overwritten. These include e.g. the hostname or the resolver configuration /etc/resolv.conf.

Reason:
The virtualization solution writes some files on the hostnode. This is specified on the system side and can not be switched off.

Workaround:
As a workaround, you can use rc.local to copy your own file at system startup and automatically replace the newly written one. Alternatively, such a copying operation can be aborted regularly with an entry in the crontab.

Tags: OpenVZ, Virtualization, VPS, vserver

Related entries:

You cannot comment on this entry