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

Re: [Xen-users] xm usb-add syntax

Hi Dieter and thanks.

I found some docs explaining that on my guest VM, I should run "modprobe xen-hcd" which returns;

FATAL: Module xen_hcd not found.

The kernel on this PVM is 2.6.18-53.

At any rate, after I run the command;

xm usb-attach domU 0 1  2-4

I get this;

Unexpected error: xen.util.vusb_util.UsbDeviceParseError

Please report to xen-devel@xxxxxxxxxxxxxxxxxxx
Traceback (most recent call last):
  File "/usr/sbin/xm", line 7, in ?
File "/usr/lib64/python2.4/site-packages/xen/xm/main.py", line 3620, in main
    _, rc = _run_cmd(cmd, cmd_name, args)
File "/usr/lib64/python2.4/site-packages/xen/xm/main.py", line 3644, in _run_cmd
    return True, cmd(args)
File "/usr/lib64/python2.4/site-packages/xen/xm/main.py", line 2868, in xm_usb_attach
    if vusb_util.bus_is_assigned(bus):
File "/usr/lib64/python2.4/site-packages/xen/util/vusb_util.py", line 275, in bus_is_assigned raise UsbDeviceParseError("Can't get assignment status: (%s)." % bus) xen.util.vusb_util.UsbDeviceParseError: vusb: Error parsing USB device info: Can't get assignment status: (2-7).

Should I post this to xen-devel?

- Brian

On Jan 17, 2011, at 11:45 PM, Dieter Bloms wrote:


On Mon, Jan 17, Brian Krusic wrote:

Do any of you know what the syntax would be is I wanted to add the first
device listed using lsusb on my dom0 to my domU?


Bus 002 Device 004: ID 064f:0bd8 Some-Systems AB ABC/DE

xm usb-add;

Usage: xm usb-add <domain> <[host:bus.addr] [host:vendor_id:product_id]>

Unsure what combo works, other then what doesn't work.

what is the output of "xm usb-list-assignable-devices"

maybe this is what you need:

o first you have to create a host bus adapter like:
 xm usb-hc-create domU 2 2

o and than you can attach an usb-device like:
 xm usb-attach domU 0 1  2-4

where domU is the name of your guest.

You can add this to the domU config file like:

vusb=[ 'usbver=2, num-ports=2, port_1=2-4', ]

Best regards

 Dieter Bloms

I do not get viruses because I do not use MS software.
If you use Outlook then please do not put my email address in your
address-book so that WHEN you get a virus it won't use my address in the
From field.

Xen-users mailing list

Xen-users mailing list



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