[libvirt] how to attach PCI/USB device

Zdenek Styblik stybla at turnovfree.net
Tue Nov 2 10:42:20 UTC 2010


On 11/02/2010 11:31 AM, Daniel P. Berrange wrote:
> On Mon, Nov 01, 2010 at 08:18:30PM +0100, Diego Elio Pettenò wrote:
>> Il giorno lun, 01/11/2010 alle 19.45 +0100, Zdenek Styblik ha scritto:
>>> I'm using virt-managers to add/attach devices. I've failed to attach
>>> PCI
>>> device, but it "does not" matter right now. I can attach USB devices,
>>> but they are not in VM. I've tried to attach USB HUB as well and what
>>> not - nothing. 
>>
>> I'd suggest you to try with the current git head. I had had some trouble
>> with this the past week or so:
>>
>>  - 0.8.4 has a bug when the bus/device pair has a number > 8 (it's
>> loaded as octal by qemu, but passed as decimal by libvirt);
>>  - 0.8.5 release will not allow access to the device if cgroups are
>> enabled.
>>
>> Not sure about the PCI stuff sincerely, but at least USB with the
>> current git head works fine for me (finally).
> 
> Except for the caveat that there are huge numbers of USB devices that simply
> don't work with QEMU at all, due to limitations of QEMU's  USB support
> 
> Daniel.

/me orders another set of DVB-T USB receivers which do actually work
out-of-the-box in Linux and forgets the idea.

note: current dvb-t receivers won't work in a "stable" line I've decided
to use all around the place and I'm sorta unwilling to get back into
using different versions of kernel here and there. Thus, the idea was to
attach devices, PCI and USB, to VM and run another kernel there, yet
retain "stable" kernel beneath resp. Host itself.

Tested HW:
* Kingston DataTraveler 4GB USB flash disk
* Lifeview LV5TDLX DVB-T [RTL2832U] ~ aka uberUnsupportedCrapDevice :)
* Leadtek Winfast DTV1000 S PCI ~ which have gained support in 2.6.33

Thank you all for help and have a nice day :)
Zdenek

PS: could somebody lend me a hammer - a bigger one :D

-- 
Zdenek Styblik
Net/Linux admin
OS TurnovFree.net
email: stybla at turnovfree.net
jabber: stybla at jabber.turnovfree.net




More information about the libvir-list mailing list