Adding emulated NVME drive to Virtual machine in LVM Disk storage

MattDavies

New Member
Jun 19, 2026
2
0
1
Hi everyone,

We have a piece of software that we need to install that won't install unless it sees a NVME drive as the hardware.

I understand that that is possible to change the drive emulation to be NVME through editing the VM machine config file.

So far I have been unable to get it to work though.

I have a LVM volume setup to store all the Virtual machine disks called VMDatastore

and an unused disk configured on the Virtual machine

I have tried both the following commands in the config file

-drive file=/dev/VMdatasore/vm-108-disk-1,if=none,id=NVME1 -device nvme,drive=NVME1,serial=nvme-1

args: -drive file=/dev/VMDatastore/vm-108-disk-1,if=none,id=nvme1 -device nvme,drive=nvme1,serial=nvme1

Both are reporting they cannot open the disk, with no suck file or directory.

How do I identify the correct path to the disk file on a LVM volume ?

or any other suggestions on how to resolve ?

Thanks
 
sorry that was a typo

lvdisplay shows the disk

--- Logical volume ---
LV Path /dev/VMDatastore/vm-108-disk-1
LV Name vm-108-disk-1
VG Name VMDatastore
LV UUID VmbCT2-oyvF-EmYz-ZJZt-008n-A5FV-55UpXF
LV Write Access read/write
LV Creation host, time PLP-PROXHOST-01, 2026-06-19 14:52:04 +0200
LV Status NOT available
LV Size 3.95 TiB
Current LE 1036288
Segments 1
Allocation inherit
Read ahead sectors auto


But what would be the correct path and file name for the disk ?

as you can't access the path

Thanks
 
LV Status NOT available
That may be the problem. Please post the output of lvs. You may need to manually activate the lvm on each start of the VM. Normally, all volumes are not active unless a VM is started and implicitly activates the volume.

Another approach would be to add the disk as scsi and then also add it as nvme. You have to use only the nvme inside of the guest however.