Re: [libvirt] how to attach PCI/USB device
On 11/01/2010 08:50 PM, Zdenek Styblik wrote: On 11/01/10 20:18, 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: Ok, I'm going to try it tomorrow. - 0.8.5 release will not allow access to the device if cgroups are enabled. I've commented cgroups out in qemu.conf and - it didn't help. :| Not sure about the PCI stuff sincerely, but at least USB with the current git head works fine for me (finally). Zdenek Well, tested with your patch and - it works only half-way, or I'm doing something wrong(I'm sure I do, but I don't know what). I can see device(s) in % lsusb; in guest, however eg. USB flash disk can be seen, but - that's all. Like it doesn't exist. It's just not there. I've tried to comment in/out cgroups and it doesn't matter. What I'm getting is: usb X: reset full speed USB device using uhci_hcd and address Y That can't be good :) Damn, this is harder than I thought. Thanks, Zdenek -- Zdenek Styblik Net/Linux admin OS TurnovFree.net email: sty...@turnovfree.net jabber: sty...@jabber.turnovfree.net -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] how to attach PCI/USB device
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. -- |: Red Hat, Engineering, London-o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://deltacloud.org :| |: http://autobuild.org-o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :| -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] how to attach PCI/USB device
Il giorno mar, 02/11/2010 alle 10.31 +, Daniel P. Berrange ha scritto: 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 Lucky me that smartcards and tokens work then :) Doubtful I'd be able to test login with that stuff without them ;) -- Diego Elio Pettenò — “Flameeyes” http://blog.flameeyes.eu/ If you found a .asc file in this mail and know not what it is, it's a GnuPG digital signature: http://www.gnupg.org/ -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] how to attach PCI/USB device
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: sty...@turnovfree.net jabber: sty...@jabber.turnovfree.net -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] how to attach PCI/USB device
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). -- Diego Elio Pettenò — Flameeyes http://blog.flameeyes.eu/ -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] how to attach PCI/USB device
On 11/01/10 20:18, 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: Ok, I'm going to try it tomorrow. - 0.8.5 release will not allow access to the device if cgroups are enabled. I've commented cgroups out in qemu.conf and - it didn't help. :| Not sure about the PCI stuff sincerely, but at least USB with the current git head works fine for me (finally). Zdenek -- Zdenek Styblik Net/Linux admin OS TurnovFree.net email: sty...@turnovfree.net jabber: sty...@jabber.turnovfree.net -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list