OpenVZ Forum


Home » Mailing lists » Users » how to make an exact copy of the VPS
Re: how to make an exact copy of the VPS [message #3136 is a reply to message #3134] Sun, 14 May 2006 19:34 Go to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

abhishek jain wrote:

> Dear Friends,
> I need to
> 1)Install openVZ will i get a Control panel for mine clients
> 2) make an exact copy of the VPS from old to new IPs. Tell me how to
> do so.

Oh I now read the subject and know what you want to do.

Say there is a VE with ID 100, and you want to make a clone of it; a new
VE will have ID 200. Here is how:

# Stop source VE
vzctl stop 100
# Copy VE private area:
cd /vz/private/
mkdir 200
cp -a 100/* 200/
# Copy VE config file
cd /etc/sysconfig/vz-scripts/
cp 100.conf 200.conf
# Change VE 200 IP address: remove old ones than add some new ones
vzctl set 200 --ipdel all --ipadd x.x.x.x --save
# Start original VE and the clone
vzctl start 100
vzctl start 200

One can write a simple shell script for that if you want to do it
regularly. As you can see, this is just a few copy and vzctl set operations.

> 3)Also can anyone point me to articles relating with the difference
> between OpenVZ and Xen based VPS., I need to know which is best, in
> terms of which can be installed easily,control panel for the client
> and ease to use/operate and system resources etc.
>
> Thanks,
> Abhishek jain
>
> ------------------------------------------------------------ ------------
>
 
Read Message
Read Message
Read Message
Previous Topic: cani install OpenVZ remotely
Next Topic: how to make an exact copy of the VPS
Goto Forum:
  


Current Time: Thu Sep 12 07:48:38 GMT 2024

Total time taken to generate the page: 0.09586 seconds