Hi,
Today I had to migrate a physical machine running Fedora Core 32 with NVME root disk and UEFI boot to a virtual machine (OVMF) under PVE 6.3.
Unsurprisingly Fedora boot failed if I just copied (offline using an adapter) the whole /dev/nvme0n1 original block device to a ZFS volume and used that with volume as a default virtio-scsi disk.
After some searching about KVM and NVME I added to the VMID.conf the following line:
And edited VMID.conf a bit more :
- removed the scsi0: line entirely
- removed the scsihw: virtio-scsi-pci line entirely
- removed scsi0 from boot: order=...
After going into the OVMF BIOS to select the right boot device the machine booted successfully FC32.
Now I want to add a regular virtio-scsi disk to this VM and since PVE doesn't know about "vm-10000-disk-0" (only mentionned in args) it looks like I could be in trouble with same name disk volumes.
I'm also wondering about future backups with this "hidden from PVE" disk.
What should I do to make PVE aware of this NVME device and associated volume and not risk issue during lifetime of this VM?
Thanks for your help!
PS: may be a "nvme" flag will be added at some point to PVE just like "SSD" currently is.
Today I had to migrate a physical machine running Fedora Core 32 with NVME root disk and UEFI boot to a virtual machine (OVMF) under PVE 6.3.
Unsurprisingly Fedora boot failed if I just copied (offline using an adapter) the whole /dev/nvme0n1 original block device to a ZFS volume and used that with volume as a default virtio-scsi disk.
After some searching about KVM and NVME I added to the VMID.conf the following line:
Code:
args: -drive file=/dev/mypool/vm-10000-disk-0,format=raw,if=none,id=NVME1 -device nvme,drive=NVME1,serial=nvme-1
And edited VMID.conf a bit more :
- removed the scsi0: line entirely
- removed the scsihw: virtio-scsi-pci line entirely
- removed scsi0 from boot: order=...
After going into the OVMF BIOS to select the right boot device the machine booted successfully FC32.
Now I want to add a regular virtio-scsi disk to this VM and since PVE doesn't know about "vm-10000-disk-0" (only mentionned in args) it looks like I could be in trouble with same name disk volumes.
I'm also wondering about future backups with this "hidden from PVE" disk.
What should I do to make PVE aware of this NVME device and associated volume and not risk issue during lifetime of this VM?
Thanks for your help!
PS: may be a "nvme" flag will be added at some point to PVE just like "SSD" currently is.
Last edited: