Answer the question
In order to leave comments, you need to log in
How can I forward an NVMe disk to KVM so that its VM sees it as a block device and quickly works with it?
There is a KVM hypervisor (in fact, Nutanix CE AHV v.20180501, qemu-kvm --version produces QEMU emulator version 2.6.0 (qemu-kvm-2.6.0-30.20180425.1.45968.el7)), which has a VM with forwarded SATA, SAS, SSD, you name it drives, and you need to forward an NVMe drive into it, mounted in metal on PCI Express, but strictly as a drive, not as a PCI device. I wrote the following in the config:
<disk type='block' device='disk'>
<driver name='qemu' type='raw' cache='none' io='native'/>
<source dev='/dev/nvme0n1'/>
<target dev='sdf' bus='scsi'/>
</disk>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question