Convert/Migrate an OpenVZ VM to KVM?

spdriver

Renowned Member
May 25, 2010
17
1
68
yes, I tried it with the search.
Found it the other way, KVM to OpenVZ...

I want to migrate some OpenVZ Containers to KVM.

As my KVM setup is based on DRBD mirroring, I want to move some OpenVZ VMs (with critical production systems) to the real-time-dataprotected KVM/DRBD area.

How to proceed?
I will setup each new KVM with the corresponding Linux, as it is now in the OpenVZ VM.

What is needed to have the whole stuff migrated?
Use rsync of some parts of the source system or which ideas do you have?

thanks.
 
any ideas?
Hi,
there are no easy migration way in this direction. It's depends on your VMs.
E.g. if you have a mysql-server you need only copy the config and the databasefile to the new kvm-host and all is fine.
With different services it's perhaps not so easy (version mismatch and so on...). So your idea to use the same distribution like the original will be not too bad.

Udo
 
Were you able to find a solution to getting openVZ containers running under DRBD?

I have another question for admins:

I need to buy new servers.

I have a raid-1 for the proxmox & openVZ VMs of 300GB, with a raid 1+0 of 1TB for KVMs.

In Roadmap 2.0, will we be able to easily migrate openVZ containers to DRBD redundant storage? This way I won't need to purchase bigger HDs for proxmox/openVZ side.

Thanks.

-J
 
hello oscar13,

have look at thread here:

http://forum.proxmox.com/threads/2923-DRBD-and-OpenVZ


it is not integrated in Proxmoxx VE to "drive" OpenVZ containers via DRBD.

By constructing it manually, you can achieve it.

Take care to setup single ext3 filesystems for each OpenVZ Container, and set it on dedicated DRBD stack.

As many mentioned, ext3 has to be accessed from one node only at the same time, or you will end up in filesystem corruption.

DRBDs have to be in active/passive config, i think, to avoid parallel write access from both nodes.

maybe it is achievable, but you are going away off the official proxmox roadmap.
No support, no clickable setup or configuration changes, but a lot of hard work :)

kind regards,
spdriver