However the VMWare Converter didn't worked so well with my Linux VMs and the converted VMs wouldn't even boot...
I've tried to export the VMs as OVF apliances from XenCenter but VSphere wasn't able to import them (although it works on the opposite direction)...
So in order to move my Ubuntu VMs from XenServer to VMWare, first I've installed an Ubuntu VM on VMWare with nothing but the base installation to be used as a template, then for each VM on XenSever I cloned this base VMWare VM and synced both using the following procedure:
Logged in as root on the source VM (on XenServer)
Uninstall Xen Tools
aptitude purge xe-guest-utilitiesGenerate a list of the installed packages
dpkg --get-selections > package_listCopy the list to the destination VM (on VMWare)
scp package_list root@10.39.10.222:/root/Install every package from that list on the destination VM
ssh root@10.39.10.222 "cat /root/package_list | sudo dpkg --set-selections && sudo apt-get dselect-upgrade"Copy the users and groups files to the destination VM first to prevent errors during the sync
scp /etc/passwd* /etc/group* /etc/shadow* root@10.39.10.222:/etc/Clear the network card name mapping by editing the file:
vi /etc/udev/rules.d/70-persistent-net.rulesand removing every network card entry (if any)
Copy everything from the source VM to the destination VM using rsync
rsync -avzlpEXogthe ssh --exclude 'fstab' /opt /var /etc /usr /root /home root@10.39.10.222:/Reboot the destination VM:
ssh root@10.39.10.222 "reboot"Stop the source VM:
haltand thats what worked for me.
Note that this should work to migrate any Ubuntu server from any hypervisor or phisical server to another...
Good job. Do you have the CentOS version of the step-by-step guide, especially the command equivalence? Thanks.
ReplyDeleteBawo Iyewo
this tutorial might help someone as well: https://www.arknet.com.au/migrate-xenserver-vm-to-vmware/
ReplyDeletea different way of migrating xenserver vm to vmware when conventional ways do not work.