OpenVZ Forum


Home » General » Support » *SOLVED* Clone VPS
Re: Clone VPS [message #8432 is a reply to message #8425] Mon, 20 November 2006 08:59 Go to previous messageGo to previous message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Hello,

Quote:

However I cannot copy the /vz/priate/200 to /vz/private/201 using the cp command. Of cource, I did mkdir /vz/private/201.


Why can't you? Smile

Quote:

Is there any specific way to do it? Please elaborate on what should be the specific command to clone VPSes in the same server.


In current distribution of OpenVZ there is no specific tool. I guess this is so 'cause of it's very easy to do it by hand:
# vzctl stop 101
Stopping VE ...
VE was stopped
VE is unmounted
# cp -r /vz/priate/101 /vz/private/202
# cp /etc/vz/conf/101.conf /etc/vz/conf/202.conf
# vzctl start 202
Starting VE ...
Initializing quota ...
VE is mounted
Setting CPU units: 1000
VE start in progress...


This can easily be disgned as a shell script.

HTH,
Vasily.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: openvz with hsphere 3.1 beta 2 - help
Next Topic: What about this message !!
Goto Forum:
  


Current Time: Sun Jul 14 10:36:57 GMT 2024

Total time taken to generate the page: 0.02268 seconds