22.02.2024, 03:32 PM
Here are some steps needed to perform migration of virtual machines:
- Download vm to local disk (from esxi 7) using ovftool:
ovftool.exe vi://ip-of-esxi/vm-name c:\mydirectory\
- Convert to OVA files using ovftool:
ovftool.exe c:\mydirectory\vm-name\vm-name.ovf c:\mydirectory\vm-name\vm-name.ova
- Import vm to xcp-ng using XOA.
- For Ubuntu - change adapter in /etc/netplan/config-name.yaml to eth0. Then run:
netplan apply
- Reboot the vm.
- Uninstall vmware tools:
sudo apt remove open-vm-tools
- Mount ISO with tools from XOA, shutdown & start the vm. Mount the CD and install tools:
mount /dev/cdrom /mnt
bash /mnt/Linux/install.sh
umount /dev/cdrom