qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-discuss] Error starting domain: vfio-pci


From: Gabriel Laupre
Subject: [Qemu-discuss] Error starting domain: vfio-pci
Date: Tue, 19 May 2015 17:03:15 -0700

Hello everyone,

I am using a Centos 7.1 machine with the kernel 3.10.229. I want to use my host with SR-IOV to use a virtual function on my NIC as the vNIC in my new VM.

I have an instance started with a old NIC using macvtap that I want to change. I am using the
virsh edit instance-00000034
command to edit the XML configuration to add the new device I want to attach.

I added:
<hostdev mode='subsystem' type='pci' managed='yes'>
      <source>
        <address bus='0x04' slot='0x10' function='0x04'/>
      </source>
</hostdev>

instead of the old device which is describe bellow:

<interface type='direct'>
  <mac address='fa:16:3e:d2:40:53'/>
  <source dev='enp4s16f2' mode='passthrough'/>
  <model type='virtio'/>
  <driver name='vhost'/>
  <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>

When I try to reboot the VM I get this error:
Error starting domain: internal error: process exited while connecting to monitor: 2015-05-19T21:46:21.935043Z qemu-kvm: -device vfio-pci,host=04:10.4,id=hostdev0,bus=pci.0,addr=0x3: vfio: failed to open /dev/vfio/vfio: Operation not permitted
2015-05-19T21:46:21.935091Z qemu-kvm: -device vfio-pci,host=04:10.4,id=hostdev0,bus=pci.0,addr=0x3: vfio: failed to setup container for group 24
2015-05-19T21:46:21.935107Z qemu-kvm: -device vfio-pci,host=04:10.4,id=hostdev0,bus=pci.0,addr=0x3: vfio: failed to get group 24
2015-05-19T21:46:21.935135Z qemu-kvm: -device vfio-pci,host=04:10.4,id=hostdev0,bus=pci.0,addr=0x3: Device initialization failed.
2015-05-19T21:46:21.935157Z qemu-kvm: -device vfio-pci,host=04:10.4,id=hostdev0,bus=pci.0,addr=0x3: Device 'vfio-pci' could not be initialized

total Trace here: http://sprunge.us/XZFB

Any idea how to fix that?

Thank you very much :)

Gabriel


reply via email to

[Prev in Thread] Current Thread [Next in Thread]