Hi,
Is there any way to migrate VM from Proxmox to Harvester?
(I would like to try that not to loose OS licenses)
regards,
Maciek
Hi,
No one have clue how to do it?
regards,
Maciek
Hi,
Please try convert from inside the system to qcow2.
Boot system using live linux distro ( i use kubuntu)
provide local ip address (networking)
# apt install qemu-utils screen
Create image from existing disk.
Check the correct disk / image source ( in my case it’s /dev/sda )
# fdisk -l
Disk /dev/sda: 50 GiB, 53687091200 bytes, 104857600 sectors
Disk model: Virtual disk
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x23e4b144
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 87889919 87887872 41.9G 83 Linux
/dev/sda2 87891966 104855551 16963586 8.1G 5 Extended
/dev/sda5 87891968 104855551 16963584 8.1G 82 Linux swap / Solaris
Disk /dev/loop0: 3.06 GiB, 3289141248 bytes, 6424104 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Mount SMB server for temporary image transit
# mkdir /mnt/transit
# mount.cifs -w //$your_smb_server/shares/ /mnt/transit -o user=$USERNAME,pass=$PASSWORD,file_mode=0777,dir_mode=0777,nobrl
# screen
# qemu-img convert -p -O qcow2 /dev/sda /mnt/transit/$image_name.qcow2
After the conversion finished, we can upload $image_name.qcow2 to Harvester image, if the size is larger than 5GB use URL (provide web server) instead of File.
Hope this help