[PVE-User] Migration from XenServer

Klaus Darilion klaus.mailinglists at pernau.at
Mon Sep 3 15:42:24 CEST 2018


Am 26.08.2018 um 12:18 schrieb Gilberto Nunes:
> Hi anyone has a good method, 100% approved to migrate windows VM from Xen
> to Proxmox?
> Every method i tried has failed with bsod.

I never tried Windows VMs, but here are my snippets to migrate Linux
with LVM from XenServer HVM to Proxmox:

# login on XenServer
# find uuid of VM
xe vm-list name-label="Debian Stretch 9.0 Template" params=uuid

# search the Disks of this UUID (ingore the CDrom)
# Get the Disk UUID and the "virtual-size":
xe vm-disk-list uuid=62e198e1-19ac-d674-7b4e-17954daedf7e
uuid ( RO)             : ea09e614-57e7-403d-8d29-63643e560d43
       name-label ( RW): Disk 1
    sr-name-label ( RO): Storage1
     virtual-size ( RO): 8589934592

-> disk-uuid: ea09e614-57e7-403d-8d29-63643e560d43
-> virtual-size: 8589934592

# activate the Logical Volume aktivieren (maybe not needed)
lvchange -ay
/dev/VG_XenStorage-d2acd544-0676-462a-bc01-52c80b9aaa99/VHD-ea09e614-57e7-403d-8d29-63643e560d43

# Create a Disk of same size in Proxmox. Proxmox GUI only allows sizes
in GB, not in Bytes. Therefore:
# 1. Create in Proxmox GUI a VM with a smaller size, eg. 2GB
# 2. Then on the console enlarge to disk to the exact size in Bytes of
the "virtual-size" of the VDI
qm resize 100 scsi0 8589934592
zfs list

# "on the fly": stream the blockdevice using xe vdi-export, netcat
# and dd
# on XenServer (eventually stop the VM):
xe vdi-export uuid=ea09e614-57e7-403d-8d29-63643e560d43 format=raw
filename= | pigz | nc proxmoxserver.mydomain.com 5000
# on the Proxmox Host
nc -l -p 5000 | unpigz | pv | dd bs=1024K of=/dev/vmstorage/vm-100-disk-1


regards
Klaus




More information about the pve-user mailing list