Moving containers from CentOS 5 to CentOS 6
Hello, I have a bunch of virtual machines, based on OpenVZ (+SolusVM), which I want to move on another physical machine/node. Obviously I would like to install CentOS 6 on the new node, for various reasons. So here's the question: can I move the OpenVZ containers from a CentOS 5.8 machine to a CentOS 6.3 machine? Thanks!
Re: Moving containers from CentOS 5 to CentOS 6
Yes you can, but I recommend do offline migration
Ok, thanks for your reply! Second question: will migrating a container from a 5.8 node to a 6.3 node upgrade the container itself? Or will the containers keep the same OS version, despite having a different host/node version? Thanks!
Of course it won't update the containers. Nothing within your containers will change.
Razva wrote on Thu, 16 August 2012 13:58 Ok, thanks for your reply! Second question: will migrating a container from a 5.8 node to a 6.3 node upgrade the container itself? Or will the containers keep the same OS version, despite having a different host/node version? Thanks! I've moved containers from CE5 to CE6 nodes many times. Never had a problem. I used vzmigrate with default settings. http://wiki.openvz.org/Migration_from_one_HN_to_another It copies over live then shuts down the container and rsyncs any changes that may have occurred during the live migration. Works great. As the previous poster stated, nothing with the container changes so you may have to edit the /etc/vz/CTID file to updated the IP if it's a different subnet, name servers if they are different, and also change the memory parameters from beancounter to vswap. Just use the included vswap template file which is found in the same directory to get those settings.