How to properly migrate a VM from local to NFS storage?

pxmxadm

New Member
Oct 22, 2024
11
0
1
Hi,

I have a local VM with multiple disks (including the efidisk) in raw format. I'd like to migrate the whole VM together to NFS storage. If I migrate the disks one by one, I don't see a way to migrate the efidisk because it does not show in the Web UI. If I migrate at the VM level and select the NFS storage, it does not provide an option to convert it to qcow2 format so it ends up with the raw format on the NFS storage with the following warning:

Code:
WARN: no efidisk configured! Using temporary efivars disk.

Is there a way to migrate all the disks together to the NFS storage and convert it to qcow2 at the same time?

Thanks.
 
I haven't tried it, but from your description it sounds like in GUI you can migrate data disks one by one and then finish with full VM move, which should take care of EFI disk.

You can also use CLI:
qm disk move <vmid> <disk> [<storage>] [OPTIONS]

where one of the options:
--format <qcow2 | raw | vmdk>
Target Format.

good luck


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
  • Like
Reactions: pxmxadm