Hi,
we built a three node ProxMox cluster with Ceph as storage backend for our test VMs. They currently reside on a VMware two node cluster with an old NetApp as storage backend.
Plan is to try to migrate/convert - as preparation for a possible migration of our productive VMs - with minimal downtime. So the current setup/order is like this:
- Mount the NetApp NFS data store share on ProxMox read-write
- Create new empty VM on ProxMox using the NetApp data store for the VMs disk (using IDE0 and VMDK)
- Uninstall VMware tools, run MergeIDE.zip and shutdown the running VM on ESXi
- On the ProxMox cli move win10/win10-flat.vmdk and win10/win10.vmdk to images/108/ and in there copy win10.vmdk to the previously created vm-108-disk-0.vmdk
- Start VM on ProxMox
So the above works fine. But now I want to move the disk online to the Ceph storage backend. And that fails.
create full clone of drive scsi0 (netapp03-DS1:108/vm-108-disk-0.vmdk)
transferred: 0 bytes remaining: 10240 bytes total: 10240 bytes progression: 0.00 %
qemu-img: output file is smaller than input file
Removing image: 100% complete...done.
TASK ERROR: storage migration failed: copy failed: command '/usr/bin/qemu-img convert -p -n -f vmdk -O raw /mnt/pve/netapp03-DS1/images/108/vm-108-disk-0.vmdk 'zeroinit:rbd:ceph-proxmox-VMs/vm-108-disk-0:conf=/etc/pve/ceph.conf:id=admin:keyring=/etc/pve/priv/ceph/ceph-proxmox-VMs.keyring'' failed: exit code 1
From what I understand it takes the size of the vm.vmdk to create the destination file - which is wrong since that is not the size of the win10-flat.vmdk referenced in the vm-108-disk-0.vmdk.
Is this a possible bug?
Or is there a better way?
Best regards
Rainer
we built a three node ProxMox cluster with Ceph as storage backend for our test VMs. They currently reside on a VMware two node cluster with an old NetApp as storage backend.
Plan is to try to migrate/convert - as preparation for a possible migration of our productive VMs - with minimal downtime. So the current setup/order is like this:
- Mount the NetApp NFS data store share on ProxMox read-write
- Create new empty VM on ProxMox using the NetApp data store for the VMs disk (using IDE0 and VMDK)
- Uninstall VMware tools, run MergeIDE.zip and shutdown the running VM on ESXi
- On the ProxMox cli move win10/win10-flat.vmdk and win10/win10.vmdk to images/108/ and in there copy win10.vmdk to the previously created vm-108-disk-0.vmdk
- Start VM on ProxMox
So the above works fine. But now I want to move the disk online to the Ceph storage backend. And that fails.
create full clone of drive scsi0 (netapp03-DS1:108/vm-108-disk-0.vmdk)
transferred: 0 bytes remaining: 10240 bytes total: 10240 bytes progression: 0.00 %
qemu-img: output file is smaller than input file
Removing image: 100% complete...done.
TASK ERROR: storage migration failed: copy failed: command '/usr/bin/qemu-img convert -p -n -f vmdk -O raw /mnt/pve/netapp03-DS1/images/108/vm-108-disk-0.vmdk 'zeroinit:rbd:ceph-proxmox-VMs/vm-108-disk-0:conf=/etc/pve/ceph.conf:id=admin:keyring=/etc/pve/priv/ceph/ceph-proxmox-VMs.keyring'' failed: exit code 1
From what I understand it takes the size of the vm.vmdk to create the destination file - which is wrong since that is not the size of the win10-flat.vmdk referenced in the vm-108-disk-0.vmdk.
Is this a possible bug?
Or is there a better way?
Best regards
Rainer