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

2015-05-19 Thread Gabriel Laupre
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-0034 comm

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

2015-05-19 Thread Gabriel Laupre
ev/vfio/ [root@peryn5 vfio]# ls -la | grep vfio crw-rw-rw- 1 root root 10, 196 May 18 11:54 vfio The right should be okay I guess. 2015-05-19 18:54 GMT-08:00 Bandan Das : > > Hello Gabriel, > > > On May 19, 2015, at 8:03 PM, Gabriel Laupre wrote: > > > > Hello everyone

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

2015-05-19 Thread Gabriel Laupre
,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 2015-05-19 21:17 GMT-08:00 Bandan Das : > > > On May 20, 2015, at 12

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

2015-05-20 Thread Gabriel Laupre
running, right ? > > Bandan Das writes: > > > Gabriel Laupre writes: > > > >>> Yes, indeed it is. What distro is this ? Do you have SELinux or any > other > >> security feature enabled ? Can you please verify that the file has a > >> appropriate l

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

2015-05-21 Thread Gabriel Laupre
apparmor > > On 05/20/2015 02:56 PM, Bandan Das wrote: > > Gabriel Laupre writes: > > > >> Mmmhh, > >> My SELinux is disabled. Is Apparmor not only on debian/ubuntu and suse, > am > >> I wrong? I have no idea on that :) > > > > Yeah, me neith

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

2015-05-22 Thread Gabriel Laupre
> Thanks for the update. Did you get a chance to run qemu standalone without libvirt? How can I do that, what are the purpose to do so and why to try that? (thank you ^^) 2015-05-21 13:32 GMT-07:00 Bandan Das : > Gabriel Laupre writes: > > >> AppArmor is Debian based, but tha

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

2015-05-22 Thread Gabriel Laupre
>To rule out if it's a problem with your guest xml. Let me know if you are interested and I will write down the steps. I am way more than interested to try that :) Thanks a lot 2015-05-22 10:46 GMT-07:00 Bandan Das : > Gabriel Laupre writes: > > >> Thanks for the updat

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

2015-05-22 Thread Gabriel Laupre
0x3? I don't understand what it is actually. Thank you Bandan :) 2015-05-22 12:00 GMT-07:00 Bandan Das : > Gabriel Laupre writes: > > >>To rule out if it's a problem with your guest xml. Let me know if you are > > interested and I will write down the steps. > &g

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

2015-05-22 Thread Gabriel Laupre
Actually, I get the same error if I enter a PCI address completely random (for example 04.01.5, which doesn't exist in my system) 2015-05-22 12:00 GMT-07:00 Bandan Das : > Gabriel Laupre writes: > > >>To rule out if it's a problem with your guest xml. Let me know if you

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

2015-05-22 Thread Gabriel Laupre
2 13:14 GMT-07:00 Bandan Das : > Gabriel Laupre writes: > > > Actually, I get the same error if I enter a PCI address completely random > > (for example 04.01.5, which doesn't exist in my system) > > No, that has nothing to do with the pci address of the host device yo

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

2015-05-22 Thread Gabriel Laupre
qemu-kvm: -device vfio-pci,host=04:01.4,id=hostdev0,bus=pci.0,addr=0x4: Device 'vfio-pci' could not be initialized and in my dmesg I have the new entry: [14346.555141] vfio-pci :04:01.4: enabling device ( -> 0002) 2015-05-22 13:37 GMT-07:00 Bandan Das : > Gabriel Laupre

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

2015-05-22 Thread Gabriel Laupre
I have something new to investigate now :) 2015-05-22 13:50 GMT-07:00 Gabriel Laupre : > > You may need to detach all VFs if they are in the same iommu group. > All my VFs are in different iommu group > > Also, check if dmesg has any relevant messages when this error occurs.

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

2015-06-05 Thread Gabriel Laupre
-pci' could not be initialized' I am out of ideas :P Thank you 2015-05-27 18:38 GMT-07:00 Bandan Das : > > > On May 22, 2015, at 4:50 PM, Gabriel Laupre wrote: > > > > I have something new to investigate now :) > > > Sorry for not following up earl

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

2015-06-08 Thread Gabriel Laupre
04:02.4 I will try to do the same things with another computer, maybe it is my kernel or HW that are too old. I'll give updates.. tks Bandan 2015-06-08 14:57 GMT-07:00 Bandan Das : > Gabriel Laupre writes: > > > Hello, > > > > I tried to use the "macvtap&

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

2015-06-22 Thread Gabriel Laupre
omething in the dev mailing list afterwards. Thank a lot Bandan :) Gabriel 2015-06-08 15:43 GMT-07:00 Gabriel Laupre : > >> I tried to assign the PF0 where my VF are attached to and I have the > >> following errors: > > Just try attaching the PF. Don't create any VFs

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

2015-06-24 Thread Gabriel Laupre
ut of the box with the current hardware series. I will send out a patch regarding the same if no one has any objections. Gabriel 2015-06-22 19:08 GMT-07:00 Jakob Bohm : > On 23-06-2015 03:20, Gabriel Laupre wrote: > >> ... >> I noticed that the pba_offset was wrong an