OpenVZ Forum


Home » General » Support » How to convert KVM image to openvz
How to convert KVM image to openvz [message #36514] Sun, 28 June 2009 02:03 Go to next message
kumarullal is currently offline  kumarullal
Messages: 2
Registered: June 2009
Location: Simi Valley, CA, USA
Junior Member
Hi Have configured Asterisk PBX running on Centos 5.0 just the way I want it. I am using Proxmox and it is a KVM VM.
I want to convert this KVM image to openvz. Is it possible to do it?
I tried to use the instruction on this site.
It does not work.
I have some questions.
Since the source is already a virtual machine then Why should we exclude the dev (Devices), proc and temp directory from the KVM image.
the rsync command I used
rsync -arvpz --numeric-ids --exclude dev --exclude proc --exclude tmp
-e "ssh -l root@192.168.0.100" root@192.168.0.100:/ /vz/private/211/
Secondly Why should we disable udev.
Because I am getting number of errors pertaining to tty0 not found, tty9 not found.
These are present in the original KVM images's /dev directory.
Number of services are failing to start.
I have spent more than 4 days just trying to figure this out with various permutations and combinations
Your help will be greatly appreciated.
Re: How to convert KVM image to openvz [message #36528 is a reply to message #36514] Mon, 29 June 2009 08:19 Go to previous message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hello,

Quote:


I tried to use the instruction on this site.


what article you have tried?

Quote:


It does not work.


I think we'd better struggle against the concrete problems.
Could you please explain what in particular doesn't work?

Quote:


Since the source is already a virtual machine then Why should we exclude the dev (Devices), proc and temp directory from the KVM image.


proc and temp are filesystems that exist only in memory so they can be mounted during the startup process and mustn't be copied.
You can create whatever devices you want in private area being created.
http://wiki.openvz.org/P2v#.2Fdev

Quote:


Because I am getting number of errors pertaining to tty0 not found, tty9 not found.


Please, have a look at the following article. It may help you to answer the question concerning with udev.
http://wiki.openvz.org/Container_enter_failed
Previous Topic: Accessing the HN thermal modules from the Container
Next Topic: HN can not ping VE
Goto Forum:
  


Current Time: Sat Aug 31 20:21:25 GMT 2024

Total time taken to generate the page: 0.05742 seconds