Hi folks,
I'm strugling with VM migration from vmware.
Disks importation using the ui import wizard or the qm import features fails systematically :
When I try to import it by hand, with differents options (without zeroinit) :
It works...
Storages source and destination are NFS. Source hypervisor ESXi 8.0.2 and destination PVE 9.0.10.
vmdk and -flat.vmdk are in the same location.
As I was suspecting something weird with the originals vmdk file I have tryed to rebuild it (https://knowledge.broadcom.com/external/article/321422).
And...
After comparing the vmdk files (and try and die a several times) I have found out that the 'version' parameter in the vmdk file must be 1,2 or 3 (my original vmdk is version=5) to allow importing with zeroinit.
Higher version number lead qm import to fail with the qemu-img error :
For now I don't know if the content of imported disk is usable (I hope so).
As I would have several hundreds VM to migrate (if I achieve to make proxmox the next corporate hypervisor) it will be easier if I don't have to check vmdk version for each disk...
I can import my disks with qm import disk but not with gui nor ansible module. In those case it ends with :
Any help would be appreciated
I'm strugling with VM migration from vmware.
Disks importation using the ui import wizard or the qm import features fails systematically :
Code:
qm importdisk 10000 /mnt/pve/source_storage/myvm/myvm_1.vmdk dest_storage -format qcow2
importing disk '/mnt/pve/source_storage/myvm/myvm_1.vmdk' to VM 10000 ...
Formatting '/mnt/pve/dest_storage/images/10000/vm-10000-disk-1.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off preallocation=metadata compression_type=zlib size=1024 lazy_refcounts=off refcount_bits=16
transferred 0.0 B of 1.0 KiB (0.00%)
qemu-img: output file is smaller than input file
copy failed: command '/usr/bin/qemu-img convert -p -n -f vmdk -O qcow2 /mnt/pve/source_storage/myvm/myvm_1.vmdk zeroinit:/mnt/pve/dest_storage/images/10000/vm-10000-disk-1.qcow2' failed: exit code 1
When I try to import it by hand, with differents options (without zeroinit) :
Code:
qemu-img convert -p -c -f vmdk -O qcow2 /mnt/pve/source_storage/myvm/myvm_1.vmdk /mnt/pve/dest_storage/images/10000/vm-10000-disk-1.qcow2
(100.00/100%)
Storages source and destination are NFS. Source hypervisor ESXi 8.0.2 and destination PVE 9.0.10.
vmdk and -flat.vmdk are in the same location.
As I was suspecting something weird with the originals vmdk file I have tryed to rebuild it (https://knowledge.broadcom.com/external/article/321422).
And...
Code:
qm disk import 10000 /mnt/pve/dest_storage/import/myvm.vmdk dest_storage --format qcow2
importing disk '/mnt/pve/dest_storage/import/myvm.vmdk' to VM 10000 ...
Formatting '/mnt/pve/dest_storage/images/10000/vm-10000-disk-2.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off preallocation=metadata compression_type=zlib size=15032385536 lazy_refcounts=off refcount_bits=16
transferred 0.0 B of 14.0 GiB (0.00%)
transferred 143.4 MiB of 14.0 GiB (1.00%)
transferred 288.2 MiB of 14.0 GiB (2.01%)
transferred 431.5 MiB of 14.0 GiB (3.01%)
...
transferred 14.0 GiB of 14.0 GiB (100.00%)
unused0: successfully imported disk 'dest_storage:10000/vm-10000-disk-2.qcow2'
After comparing the vmdk files (and try and die a several times) I have found out that the 'version' parameter in the vmdk file must be 1,2 or 3 (my original vmdk is version=5) to allow importing with zeroinit.
Higher version number lead qm import to fail with the qemu-img error :
Code:
qemu-img: output file is smaller than input file
For now I don't know if the content of imported disk is usable (I hope so).
As I would have several hundreds VM to migrate (if I achieve to make proxmox the next corporate hypervisor) it will be easier if I don't have to check vmdk version for each disk...
I can import my disks with qm import disk but not with gui nor ansible module. In those case it ends with :
Code:
failed to update VM 10000: /mnt/pve/dest_storage/import/my_vm.vmdk: multiple children or extents are not allowed!
Any help would be appreciated
Last edited: