OpenVZ Forum - RDF feed
type: channel
items: Moving containers from CentOS 5 to CentOS 6
items: Re: Moving containers from CentOS 5 to CentOS 6

Moving containers from CentOS 5 to CentOS 6
type: item
description: 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!
creator: Razva
date: 2012-08-16T10:51:36-00:00

Re: Moving containers from CentOS 5 to CentOS 6
type: item
description: Yes you can, but I recommend do offline migration
creator: Paparaciz
date: 2012-08-16T17:46:16-00:00

Re: Moving containers from CentOS 5 to CentOS 6
type: item
description: 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!
creator: Razva
date: 2012-08-16T17:58:49-00:00

Re: Moving containers from CentOS 5 to CentOS 6
type: item
description: Of course it won't update the containers. Nothing within your containers will change.
creator: Ales
date: 2012-08-16T18:37:37-00:00

Re: Moving containers from CentOS 5 to CentOS 6
type: item
description: 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.
creator: mustardman
date: 2012-08-16T22:32:54-00:00