[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.