[libvirt] Problem with libvirt and pci passthrough
Mirko Raasch
Mirko76 at serv4u.de
Fri Jul 17 08:58:33 UTC 2009
Mark McLoughlin schrieb:
> On Thu, 2009-07-16 at 13:20 +0200, Mirko Raasch wrote:
>
>> On Thu, 2009-07-16 at 11:06 +0200, Mirko Raasch wrote:
>>
>>>> Hi,
>>>>
>>>> i´m still having problem with libvirt and pci passthrough, if i use more
>>>> then one pci card in the guest.
>>>>
>>>> If i start qemu 0.10.5 manualy, i can use all of the pci devices in the
>>>> guest, here is the log: http://nopaste.info/610fa81fb5.html
>>>>
>>>> If i use libvirt to start the guest and passthrough three pci device,
>>>> none of the device is usable in the guest:
>>>> http://nopaste.info/ccfbfcf9a0.html
>>>>
>>>>
>>> What does /var/log/libvirt/qemu/vdr.log say?
>>>
>>> Cheers,
>>> Mark.
>>>
>>>
>>>
>> The log says:
>>
>> LC_ALL=C
>> PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
>> HOME=/root USER=root LOGNAME=root /usr/bin/qemu-system-x86_64 -S -M pc
>> -m 512 -smp 1 -name vdr -uuid 87e7c782-73c4-c0e0-2396-8514b3701a4a
>> -monitor pty -localtime -boot c -drive
>> file=/media/vm/vdr.img,if=ide,index=0,boot=on -net
>> nic,macaddr=54:52:00:49:d0:64,vlan=0,model=virtio -net tap,fd=15,vlan=0
>> -serial pty -parallel none -usb -vnc 0.0.0.0:2 -k de -pcidevice
>> host=05:00.0 -pcidevice host=05:01.0 -pcidevice host=05:02.0
>> char device redirected to /dev/pts/1
>> char device redirected to /dev/pts/2
>>
>
> It looks like libvirt is doing its job correctly.
>
> Try with managed='no' perhaps?
>
> Cheers,
> Mark.
>
>
I compiled libvirt from cvs: ./autogen.sh --prefix=/usr --without-xen
--without-sasl
configure: Configuration summary
configure: =====================
configure:
configure: Drivers
configure:
configure: Xen: no
configure: Proxy: no
configure: QEMU: yes
configure: UML: yes
configure: OpenVZ: yes
configure: VBox: yes
configure: LXC: yes
configure: ONE: no
configure: Test: yes
configure: Remote: yes
configure: Network: yes
configure: Libvirtd: yes
configure: netcf: no
configure:
configure: Storage Drivers
configure:
configure: Dir: yes
configure: FS: yes
configure: NetFS: yes
configure: LVM: yes
configure: iSCSI: no
configure: SCSI: yes
configure: Disk: no
configure:
configure: Security Drivers
configure:
configure: SELinux: no
configure:
configure: Driver Loadable Modules
configure:
configure: dlopen: no
configure:
configure: Libraries
configure:
configure: libxml: -I/usr/include/libxml2 -lxml2
configure: gnutls: -lgnutls -lpthread
configure: sasl: no
configure: avahi: no
configure: polkit: no
configure: selinux: no
configure: numactl: no
configure: capng: no
configure: xen: no
configure: hal: no
configure: devkit: no
configure: netcf: no
configure: xmlrpc: no
configure:
configure: Test suite
configure:
configure: Coverage: no
configure: Alloc OOM: no
configure:
configure: Miscellaneous
configure:
configure: Debug: yes
configure: Warnings: maximum
configure: Readline: no
configure:
Is this correct or is there a mistake?
More information about the libvir-list
mailing list