Вопрос

I am running QEMU and in additional to the OS drive i am connecting it with another SATA disk through a AHCI controller like this:

-drive id=test,file=test_drive.img,if=none
-device ahci,id=ahci_test 
-device ide-drive,drive=test,bus=ahci_test.0

I want to run another VM inside that VM and use direct assignment of this disk to that VM. Is this possible? Do i need nested KVM capabilities? must i have VT-d enabled?

thanks

Это было полезно?

Решение

It doesn't work in nested KVM. The guest will never have VT-d, even if the host has it, because QEMU does not emulate the IOMMU.

Другие советы

You can refer to Redhat's KVM guide: Assigning a PCI device.

I followed the instruction and successfully assigned a PCI device to guest before, but not sure if this works in a nested KVM environment. You can try to assign the same PCI device with identical PCI ID to the guest and nested one.

For your problems, in my memory, KVM supports nested virtualization. And if you want to use direct device assignment, enabling VT-d is a must.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top