On 03.04.2014 10:15, Oleksandr Rybchenko wrote:
Hi all,

we need to migrate from OnApp cloud based on Xen to cloudstack and xen
hypervisors. Unfortunatelly there is no guides for this particular case.
And Onapp doesn't has way to export VMs. So might be anyone did that
before?

Thanks

Oleksandr,

If it's onapp, then it's likely LVM storage. How are the cloudstack Xenservers configured, also with local LVM or NFS? If you do use local storage with LVM then you can simply "dd" the volumes over SSH[1]. If you use NFS server, then I recommend the following course of action (take all this with a grain of salt as YMMV):

1 - create the replacement VM in cloudstack, take a note of which VHD file it is using on the NFS server (say /mnt/blah-blah-blah/blah-blah.vhd)
2 - shut down the VM
3 - mount the NFS in the onapp hypervisor as well, stop the VM to be moved, convert the LVM it is using (`virsh dumpxml VM-name` will tell you) to /mnt/blah-blah-blah/blah-blah.vhd with vhd-util (make sure it's the same file as in step 1!) 4 - start the VM on cloudstack, it should now boot from the converted volume, change IPs if required etc

- If in Onapp your VM is PV (paravirtual) then it must be the same in Cloudstack/Xenserver, same for HVM guests (like Windows etc)


Good luck!


[1] - I recommend this in order to reduce downtime https://github.com/mpalmer/lvmsync

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro

Reply via email to