How can I move a VM from xcp-ng to proxmox?

enesselcuk

New Member
Mar 20, 2024
2
0
1
Hello,
How can I move ubuntu VM in xcp-ng 8.2.1 to proxmox?

When I tried converting the vhd file to qcow2 format with qemu-img and adding it to Proxmox as a disk, I could not boot the relevant disk. The disk cannot be booted.
 
my current solution.

xcp-ng $
xe vdi-list
xe vdi-export uuid=33a94644-ef92-4ebe-8aef-77525c5931d9 filename=filename.vhd format=vhd
OR
curl -u 'root:password' -X GET "192.168.1.100/export_raw_vdi?vdi=33a94644-ef92-4ebe-8aef-77525c5931d9&format=vhd" -o filename.vhd

promox $
dashboard create new vm
qm importdisk 130 filename.qcow2 local-lvm
qemu-img convert filename.vhd -O qcow2 filename.qcow2 -p

dashboard Hardware > unused disk edit > save
 
Hello,
How can I move ubuntu VM in xcp-ng 8.2.1 to proxmox?

When I tried converting the vhd file to qcow2 format with qemu-img and adding it to Proxmox as a disk, I could not boot the relevant disk. The disk cannot be booted.
Check if its UEFI - you might require an EFI disk.
 
my current solution.

xcp-ng $
xe vdi-list
xe vdi-export uuid=33a94644-ef92-4ebe-8aef-77525c5931d9 filename=filename.vhd format=vhd
OR
curl -u 'root:password' -X GET "192.168.1.100/export_raw_vdi?vdi=33a94644-ef92-4ebe-8aef-77525c5931d9&format=vhd" -o filename.vhd

promox $
dashboard create new vm
qm importdisk 130 filename.qcow2 local-lvm
qemu-img convert filename.vhd -O qcow2 filename.qcow2 -p

dashboard Hardware > unused disk edit > save
Hi

Can you help me what does it mean these parameter in this command ?

qm importdisk 130 filename.qcow2 local-lvm

I have moved vdi from xcp-ng with curl command.
-rw-r--r-- 1 root root 28836651008 Jul 24 08:43 filename.vhd

I have created a new VM under proxmox.

1721804602398.png
 
Thank. I have find the solution.
So the command "qm importdisk 130 filename.qcow2 local-lvm" the parameter
"130" The newly created VM number
"local-lvm" Name of the lvm volume.
Yes, you are right. The last point set the boot order. :)
Maybe can you tell me, how can I make a snapshot ? I got these report.

The current guest configuration does not support taking new snapshots

On other vm wich based qcows2 disk works.
Support the Proxmox lvm disk based snapshot ?
 
I tried to convert a Win 10 install. I does show the windows logo an then says automatic repair an then shows a blue screen.
ide/sata nothing works.
Any hints?

Thanks Sebastian