Hi there, just a short question: Does someone know if it''s possible to use an USB HDD in one HVM domU? It doesn''t need to be the particular USB device, deligating the whole USB controller to this single domU wouldn''t hurt either. Also reconfiguration isn''t an issue, as - if it''s possible - USB devices would only be used by one domU. Thanks in advance! Stephan -- Stephan Seitz Senior System Administrator *netz-haut* e.K. multimediale kommunikation zweierweg 22 97074 würzburg fon: +49 931 2876247 fax: +49 931 2876248 web: www.netz-haut.de <http://www.netz-haut.de/> registriergericht: amtsgericht würzburg, hra 5054 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hello Stephan, Stephan Seitz schrieb: > Does someone know if it''s possible to use an USB HDD in one HVM domU? As far as I know there is no way to pass through a hidden PCI device to a HVM dom0. And as far as you can''t do that, there is no way using USB-devices/controllers in a HVM domain :-/ Greetz Age_M _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Jason Solan
2007-Aug-02 12:35 UTC
Re: [Xen-users] external USB HDD exclusive for HVM domU?
I think there are actually a couple of ways to achieve this, though i''ve only tested one. Depending on the type of usb device, you can pass it to the HVM. in your config file make sure you have: usb=1 usbdevice="host:xxxx:yyyy" where xxxx:yyyy is the "id" section in lsusb. i.e. [root@pyro xen]# lsusb Bus 007 Device 001: ID 0000:0000 Bus 004 Device 003: ID 05f3:0203 PI Engineering, Inc. Bus 004 Device 001: ID 0000:0000 Bus 003 Device 001: ID 0000:0000 Bus 002 Device 001: ID 0000:0000 Bus 006 Device 001: ID 0000:0000 Bus 001 Device 001: ID 0000:0000 Bus 005 Device 001: ID 0000:0000 ----- i would put usbdevice=host:05f3:0203 ---- ''host'' is the correct word to use, not your actual server host name. This potentially passes the usb device to the domU. However i''ve only gotten it to work with a few usb device (usb drive being one of the successful ones). All the others fail with "usb_host: only one interface supported" ---- Secondly, In theory, the usb drive should show up as a device when you plug it in, i.e. /dev/sdb I would think you should be able to add this to your disk parameter in the config file and the domU will treat it as a normal disk. I''ve not tested that though. ---- Also you can use qemu to add/remove usb devices as long as usb=1 is set in your config. This is the same that option 1 does. If you have access to the qemu monitor, you can use usb_add host:xxxx:yyyy to add new usb devices. I used http://qemu-forum.ipi.fi/viewtopic.php?t=1434 which helped clarify a few things. On Wed, 2007-08-01 at 19:13 +0200, Stephan Seitz wrote:> Hi there, > > just a short question: > > Does someone know if it''s possible to use an USB HDD in one HVM domU? > > It doesn''t need to be the particular USB device, deligating the whole > USB controller to this single domU wouldn''t hurt either. > > Also reconfiguration isn''t an issue, as - if it''s possible - USB devices > would only be used by one domU. > > Thanks in advance! > > Stephan > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users