OpenVZ Forum


Home » General » Support » Vmware to openvz ?
Vmware to openvz ? [message #32267] Tue, 29 July 2008 07:42 Go to next message
divisionmd is currently offline  divisionmd
Messages: 3
Registered: July 2008
Location: Sweden
Junior Member

Hello,

Interested in starting to test/use OpenVz.

Just a question: can i convert my vmware images to OpenVZ?

My vmware images are today Linux installations and based on debian. I only have two vmware images that are based on Windows 2003 Server. Would like to convert all this to run on OpenVZ.

Thanks for help,

Best regards,
Johan

[Updated on: Tue, 29 July 2008 07:44]

Report message to a moderator

Re: Vmware to openvz ? [message #32271 is a reply to message #32267] Tue, 29 July 2008 14:59 Go to previous messageGo to next message
kenjy is currently offline  kenjy
Messages: 50
Registered: July 2008
Location: Mexico
Member
Well it is possible with some job, the first difference between vmware and openvz is that vmware its a Full Virtualization Level and OpenVz its a Operating system Level Virtualization, OpenVz don't have a virtual HardDisk/Network Card/Audio Card etc for each virtual machine, the first step its droping out all the filesystem of a Vmware machine preserving permissions, then you need to debug it because a Virtual Environment in OpenVz don't needs to load for example ... a kernel, you need to adapt the filesystem dad you got from the Vmware Machine to a OpenVz VE way, that means some job and a lot of Linux know lead.

Yes it is not impossible so I can say that its possible ... but with some job.


http://kenjy.net |Live net !!!
Re: Vmware to openvz ? [message #32272 is a reply to message #32271] Tue, 29 July 2008 15:08 Go to previous messageGo to next message
divisionmd is currently offline  divisionmd
Messages: 3
Registered: July 2008
Location: Sweden
Junior Member

Hello,

Ok, could you help me out with the conversion kenjy ?

I could pay you for that help of course.

Thanks,

Best regards,
Johan
Re: Vmware to openvz ? [message #32276 is a reply to message #32267] Wed, 30 July 2008 03:42 Go to previous messageGo to next message
dowdle is currently offline  dowdle
Messages: 261
Registered: December 2005
Location: Bozeman, Montana
Senior Member
First off, OpenVZ is *ONLY* for Linux on Linux virtualization... so you will never be able to run your VMware Windows virtual machines on OpenVZ. Also, OpenVZ is more geared toward containers that do not contain GUI environments. While you can use GUI environments inside of containers, you aren't going to get runlevel 5 to work... and have a graphical login screen for your container. If you really work at it, that might be possible but the vast majority of people use vnc, ssh -X, or something like xorg-xnest/zypher... or no machine.

As kenjy said (and his native language is Spanish by the way), OpenVZ does NOT use disk images... so there is not a process for converting a VMware disk image into an OpenVZ disk image format. Containers exist as a directory inside of /vz/private (or perhaps something similar under /var depending on the host node distro you are using). Container 199 would be /vz/private/199 and in that directory you will find all of the directories and files you'd expect on a Linux / filesystem. When the container is running, you'll also see files under /vz/root/199. The /vz/root/{CTID} does not take up actual disk space and is just a remounted (although I couldn't tell you the exact process) private directory. As you would imagine it is a good idea to put /vz on a partition of it's own. I believe some folks like to use LVM partitions for their container directories so they can use LVM's live snapshots feature for easy backups.

For converting VMware Linux virtual machines to OpenVZ, you can probably just try the Physical to Virtual recipe given on the wiki. I realize that VMware virtual machines are NOT physical, but the p2v method should work. You can find it here:

http://wiki.openvz.org/Physical_to_container

Before you start trying to migrate machines though I'd recommend you spend some time with OpenVZ and get to know it some by creating a few new containers and playing with them. Learn the vzctl command and read the vzctl man page. Play with vzctl's various options. Once you gain some confidence using vzctl and working with containers... then you might start trying to do some p2v migrations.


--
TYL, Scott Dowdle
Belgrade, Montana, USA
Re: Vmware to openvz ? [message #32278 is a reply to message #32267] Wed, 30 July 2008 05:14 Go to previous messageGo to next message
kenjy is currently offline  kenjy
Messages: 50
Registered: July 2008
Location: Mexico
Member
Dowdle, it is posible to port a vmware disk to a openvz VE, Im shure of that Very Happy

http://kenjy.net |Live net !!!
Re: Vmware to openvz ? [message #32279 is a reply to message #32267] Wed, 30 July 2008 07:27 Go to previous message
divisionmd is currently offline  divisionmd
Messages: 3
Registered: July 2008
Location: Sweden
Junior Member

Thanks alot,

For this information dowdle!

Think i understand now how this can be done, and i will start by installing and experimenting with openvz.

Think i have a chance then to convert my vmware linux machines to openvz.

Excellent forum!

Best regards,
Johan
Previous Topic: 64bit template create errors
Next Topic: [Solved] First slow ping on CTs
Goto Forum:
  


Current Time: Mon Nov 04 10:22:33 GMT 2024

Total time taken to generate the page: 0.03487 seconds