qemu-discuss
[Top][All Lists]
Advanced

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

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


From: Bandan Das
Subject: Re: [Qemu-discuss] Error starting domain: vfio-pci
Date: Tue, 19 May 2015 22:54:24 -0400

Hello Gabriel,

> On May 19, 2015, at 8:03 PM, Gabriel Laupre <address@hidden> wrote:
> 
> 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.
…
Assuming you are on an intel box, have you booted your kernel with 
intel_iommu=on ?
Please paste the output of dmesg | grep -e DMAR -e IOMMU ?

> 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
Why does opening /dev/vfio/vfio fail ? Can you please confirm that you have 
read/write permissions as the user you are trying to run ?

> 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]