Discussion:
[PVE-User] Migration from XenServer
Gilberto Nunes
2018-08-26 10:18:50 UTC
Permalink
Hi anyone has a good method, 100% approved to migrate windows VM from Xen
to Proxmox?
Every method i tried has failed with bsod.

Thanks for any help.
Lists
2018-08-26 10:23:25 UTC
Permalink
Yes, this method will take a long time, but it will almost always works.
Boot the source into a linux live cd with ssh, give it a network
address, etc. and then kick this off in a screen session:

dd if=dd if=/dev/sda | pv -s 200G | dd of=/dev/zvol/pool-01/vm-106-disk-1

The last part will vary based on whether you are using zfs, ceph, lvm, etc.

-Riley
Post by 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.
Thanks for any help.
_______________________________________________
pve-user mailing list
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
Lists
2018-08-26 10:25:53 UTC
Permalink
Oh yeah, and you will need the ssh part in there, like this:


dd if=/dev/sda | ssh root@<proxmox-ip> dd
of=/dev/zvol/<zfs-pool-id>/vm-<vm-id>-disk-1 bs=1024
Post by Lists
Yes, this method will take a long time, but it will almost always
works. Boot the source into a linux live cd with ssh, give it a
dd if=dd if=/dev/sda | pv -s 200G | dd of=/dev/zvol/pool-01/vm-106-disk-1
The last part will vary based on whether you are using zfs, ceph, lvm, etc.
-Riley
Post by 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.
Thanks for any help.
_______________________________________________
pve-user mailing list
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
_______________________________________________
pve-user mailing list
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
Gilberto Nunes
2018-08-26 10:26:14 UTC
Permalink
Hum I see! Low level copy. Nice trick.
Thanks
Post by Lists
Yes, this method will take a long time, but it will almost always works.
Boot the source into a linux live cd with ssh, give it a network
dd if=dd if=/dev/sda | pv -s 200G | dd of=/dev/zvol/pool-01/vm-106-disk-1
The last part will vary based on whether you are using zfs, ceph, lvm, etc.
-Riley
Post by 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.
Thanks for any help.
_______________________________________________
pve-user mailing list
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
_______________________________________________
pve-user mailing list
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
Klaus Darilion
2018-09-03 13:42:24 UTC
Permalink
Post by 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
Gilberto Nunes
2018-09-03 13:46:46 UTC
Permalink
HI there

I used this
https://github.com/guestisp/xen-to-pve
And work as a charm

Thanks

---
Gilberto Nunes Ferreira

(47) 3025-5907
(47) 99676-7530 - Whatsapp / Telegram

Skype: gilberto.nunes36
Post by Klaus Darilion
Post by 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
# 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)
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
# 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
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
_______________________________________________
pve-user mailing list
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
Loading...