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

Re: [Xen-users] Need help with passing through USB hub or devices



Hello Marc,

On Sep 21, 2012, at 12:58 AM, Marc Tousignant <myrdhn@xxxxxxxxx> wrote:

So, I?m getting further and further to completing my setup following the guides written about passthrough of PCIe video.

I have the video display from the domU client going to the physical display, but I cannot get the keyboard to work, I haven?t even connected a mouse yet.

 

I attempted to pass through the USB hubs outright, but that failed as the keyboard just stopped working. It would not respond in the domU and I could nolonger get the caps lock to light up. Reconnecting or changing ports had no effect.

Attempting to add the usb hub afterwards using xl pci-attach failed as well. But this time, it did not even attach the device.

TheOldMan ~ # xl pci-assignable-list

0000:00:0b.0

TheOldMan ~ # xl pci-attach 1 0000:00:0b.0

libxl: error: libxl_pci.c:960:do_pci_add: xc_assign_device failed

TheOldMan ~ # xl pci-assignable-list

0000:00:0b.0

TheOldMan ~ # xl pci-list 1

Vdev Device

05.0 0000:01:00.0

06.0 0000:00:0f.1

 

The reason I am trying to pass through the usb hub is 2 fold:

                First off, I would prefer not having to go into the console to add my keyboard/mouse each time I start.

                Second, I cannot seem to get into the console to save my life.

 

I have vnc setup for console, however after connecting, I can?t type anything. That?s not to say that the keyboard is useless. Ctrl+alt+1 and ctrl+alt+2 switch between ?serial0 console? and ?parallel0 console? in the vnc window. In the hopes that all it was that the echo was off, I attempted to enter the usb_add line for my keyboard to no effect.

 

Trying to access the console from a ssh connection in putty also fails.

TheOldMan ~ # xl console Office

xenconsole: Could not read tty from store: No such file or directory

The standard fix I found searching for this error was ?start xenconsoled?. Well here is what I say about that.

TheOldMan ~ # ps augx | grep xenconsoled

root      6146  0.0  0.0  25168  1052 ?        SLl  20:08   0:00 /usr/sbin/xenconsoled --pid-file=/var/run/xenconsoled.pid

root      6888  0.0  0.0   8148   880 pts/0    S+   20:53   0:00 grep --colour=auto xenconsoled

 

Here is my config:

 

name="Office"

 

firmware_override = "/usr/lib/xen/boot/hvmloader"

builder="hvm"

 

vcpus=2

 

memory=2048

 

>

>

>

 

disk = [ 'tap:aio://images/xen_images/Office.img,hda,w', 'tap:aio://images/iso_images/en_windows_7_enterprise_with_sp1_x64_dvd_u_677651.iso,hdc:cdrom,r' ]

#disk = [ 'tap:aio://images/xen_images/Office.img,hda,w' ]

 

vif = [ 'mac=00:16:3E:33:5E:F9, bridge=xenbr0' ]

#vif = [ 'bridge=xenbr0,type=ioemu,model=e1000' ]

 

boot="dc"

 

acpi=1

 

xen_platform_pci=1

 

viridian=1

 

stdvga=1

 

vnc=1

vnclisten="192.168.1.102"

vncconsole=1

vncconsole=1

vncdisplay=0

vncunused=1

vncpasswd=""

sdl=0

 

usb=1

usbdevice="tablet"

 

gfx_passthru=1

audio=1

 

pci = [ '01:00.0','00:0f.1' ]

 

I can get more info if needed. I really want to get this project done.

 

MarcT

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

Would you mind pasting us the contents of your Dom0's "lspci" output?

It won't quite help me troubleshoot your inability to use the console, but you may need to pass multiple PCI devices to get USB to work.  It's a bit of a maze of different controller devices, and you need to pass several in many scenarios. 

Cheers,
Andrew Bobulsky
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

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