OpenVZ Forum


Home » General » Support » Can I simply create a VE from a running system?
Can I simply create a VE from a running system? [message #32869] Fri, 05 September 2008 14:35 Go to next message
JimL is currently offline  JimL
Messages: 116
Registered: February 2007
Senior Member
I'd like to move an OS image from a dedicated system to a VE. I finally got an Asterisk system working and don't really want to start over by booting a precreated template and trying to make asterisk work again. I'd really like to be able to somehow migrate from a dedicated system to a VE.

I searched for a solution, but didn't get any hits.

Thanks for any pointers.

Jim.
Re: Can I simply create a VE from a running system? [message #32870 is a reply to message #32869] Fri, 05 September 2008 15:04 Go to previous messageGo to next message
kenjy is currently offline  kenjy
Messages: 50
Registered: July 2008
Location: Mexico
Member
In teorely yes but I have never done, you can use rsync to make a copy of the file system of your real asterisk server and set it up like a VE. I don't think that you will have problems, you only needs to clean some thinks like removing the kernel and some boot scripts.

http://kenjy.net |Live net !!!
Re: Can I simply create a VE from a running system? [message #33011 is a reply to message #32869] Wed, 17 September 2008 13:28 Go to previous message
Avi Brender is currently offline  Avi Brender
Messages: 17
Registered: October 2006
Junior Member
You shouldn't have a problem.

On the hostnode:
rsync --progress -vrae 'ssh' --exclude=tmp/* --exclude=sys/* --exclude=proc/* --exclude=dev/* root@$OLD_IP:/* /vz/private/NEWVEID/

See http://wiki.openvz.org/Creating_a_CentOS_5.0_Template for the exact steps - all of them are important, so don't skip any
Previous Topic: OpenVZ on Ubuntu Hardy, can't stop containers
Next Topic: Source Routing Probelms
Goto Forum:
  


Current Time: Sat Jul 13 23:29:40 GMT 2024

Total time taken to generate the page: 0.02220 seconds