PCI hotplug doesn't seem to work
Posted
by
user245454
on Ask Ubuntu
See other posts from Ask Ubuntu
or by user245454
Published on 2014-02-06T20:11:51Z
Indexed on
2014/06/06
3:41 UTC
Read the original article
Hit count: 199
virtualization
|pci
In virsh I detach a PCI bus from host and attach it to a VM. I don't see any errors in these steps. But I don't see the PCI device listed in the VM.
virsh # nodedev-dettach pci_0000_01_00_0
Device pci_0000_01_00_0 dettached
virsh # attach-device VM1 pci_add.xml
Device attached successfully
$ cat pci_add.xml
<hostdev mode='subsystem' type='pci' managed='yes'>
<source>
<address domain='0x000' bus='0x01' slot='0x00' function='0x0'/>
</source>
</hostdev>
Is PCI hot plug not supported? I am using Ubuntu 12.04.3(kernel 3.8.0-34).
I can add the same PCI device through virsh edit VM1
and start the VM1. This way I am able to see the device.
© Ask Ubuntu or respective owner