Today I will outline the options to kill an unresponsive OpenVZ container.
Here are the steps that need to be taken to change the ID of an OpenVZ Container. OpenVZ is a virtualization technology for Linux.
OpenVZ is a Linux based Kernel virtualization technology developed by SWSoft for its commercial product Virtuozzo. The modified Linux Kernel and the system utilities are released under an OpenSource license. Vzdump is a shell based backup program for OpenVZ virtual machines. It is made for containers that use the traditional "simfs" filesystem, it can not be used for containers with "ploop" filesystem.
If you get error messages from amavisd similar to the one posted below on a server which is virtualized with OpenVZ: Mar 5 09:09:02 v100 amavis: (17378-14) (!!)TROUBLE in process_request: Error writing a SMTP response to the socket: Broken pipe at (eval 100) line 987, <GEN44> line 31. then the issue can be caused by ... Read more
If you want to set the time in a OpenVZ Guest automatically, execute the following command on the host system: vzctl set 101 --capability sys_time:on --save and restart the guest system: vzctl restart 101 101 is the ID of the container and has to be changed to match the ID of your OpenVZ VM. Thanks ... Read more
If you get the error "/dev/zero: No space left on device" in the apache error.log on a OpenVZ virtual machine, then the shared memory size in the xcache.ini is too high or the xcache.mm_path is set wrong. Edit the file /etc/php5/conf.d/xcache.ini vi /etc/php5/conf.d/xcache.ini and check the mm_path. On a OpenVZ virtual machine it should be ... Read more
The /tmp and /dev/shm directories of a OpenVZ virtual machine shall be mounted without suid and exec permissions. To achieve this, create a a shell script on the host server for every virtual machine which contains the commands to remount the directories. This script will be started automatically by openvz when the VM is started. ... Read more
In case you plan to virtualize your server infrastructure and migrate physical servers to OpenVZ virtual machines, you may find this tutorial helpful: http://wiki.openvz.org/Physical_to_container I used this to migrate a ISPConfig Debian system to OpenVZ successfully.
Vzdump is a perl script that makes live backups of OpenVZ virtual machines very easy. The following steps are for Debian Linux but vzdump can be used on all other linux distributions. Only the installation may vary. Download and install vzdump from http://download.openvz.org/contrib/utils/vzdump/ cd /tmp wget http://download.openvz.org/contrib/utils/vzdump/vzdump_1.1-2_all.deb dpkg -i vzdump_1.1-2_all.deb Create the backup directory mkdir ... Read more