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

Re: [Xen-users] How do you give USB to a Windows domU?


  • To: James Pifer <jep@xxxxxxxxxxxxxxxx>
  • From: "Mr. Teo En Ming (Zhang Enming)" <space.time.universe@xxxxxxxxx>
  • Date: Mon, 2 Nov 2009 23:53:24 +0800
  • Cc: space.time.universe@xxxxxxxxx, xen-users@xxxxxxxxxxxxxxxxxxx, Nick Couchman <Nick.Couchman@xxxxxxxxx>
  • Delivery-date: Mon, 02 Nov 2009 07:54:28 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=wT/EZTJ3c0RmDEwJVsQa83mBcEf9d9Blz9fO7P/eZp38mBCT2hcRe4tUq6MVnRvv1F GL5lUFIY7YkfNfdN02LoBAEHnC6aS9JQe4Di1UGXLeWC7cnKFYl36BohePwXC45TftFG U/xUgla0VOapMV1PBW+UQonoRb+23G1/qm+bE=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Your Vista configuration looks correct.

Can you add the following lines to your Vista config?

vnclisten=127.0.0.1
vncdisplay=0
vncconsole=1

And then restart your Vista VM?

You should then see a vncviewer.

Then press CTRL+ALT+2 on your keyboard simultaneously to go into QEMU monitor/console.

Then execute the following command in the QEMU console.

(qemu) usb_add host:0951:1607

See if it helps.

--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
My Primary Blog: http://teo-en-ming-aka-zhang-enming.blogspot.com
My Secondary Blog: http://enmingteo.wordpress.com
My Youtube videos: http://www.youtube.com/user/enmingteo
Email: space.time.universe@xxxxxxxxx
Mobile Phone (Starhub Prepaid): +65-8369-2618
Street: Bedok Reservoir Road
Country: Singapore

On Mon, Nov 2, 2009 at 11:35 PM, James Pifer <jep@xxxxxxxxxxxxxxxx> wrote:
On Fri, 2009-10-30 at 13:31 -0600, Nick Couchman wrote:
> On Windows HVMs, the "usbdevice=tablet" takes up the one USB device
> that  you can forward through to the domU.  So, you have to disable
> that, then you can forward through a usb device.  You can use
> "usbdevice=host:xxx.yyy" or "usbdevice=host:aaaa:bbbb" - in the first
> case, it's the bus location where the device is plugged in; in the
> second case it's the vendor ID and device ID of the USB device.
>
> -Nick

I tried to do this and the Vista domU still doesn't see it. Can you tell
what I'm doing wrong? Thanks for all the help.

James


#lsusb
Bus 006 Device 002: ID 03f0:1027 Hewlett-Packard
Bus 006 Device 003: ID 03f0:1327 Hewlett-Packard
Bus 006 Device 001: ID 0000:0000
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 002: ID 0951:1607 Kingston Technology
Bus 001 Device 001: ID 0000:0000




# xm delete Vista;xm new Vista
Using config file "./Vista".
xen03:/etc/xen/vm # cat Vista
name="Vista"
uuid="abf38e32-96d7-dcdd-ac1c-76a0c62adc1b"
memory=1024
maxmem=1024
vcpus=2
> >
> localtime=1

builder="hvm"
extid=0
device_model="/usr/lib/xen/bin/qemu-dm"
kernel="/usr/lib/xen/boot/hvmloader"
boot="c"
disk=[ 'file:/xendata2/images/Vista/disk0,hda,w', ]
vif=[ 'mac=00:16:3e:1a:45:41,model=rtl8139,type=ioemu', ]
stdvga=0
vnc=1
vncunused=1
apic=1
acpi=1
pae=1

usb=1
usbdevice='host:0951:1607'

serial="pty"



# xm list -l Vista
(domain
   (domid 2)
   (on_crash destroy)
   (uuid abf38e32-96d7-dcdd-ac1c-76a0c62adc1b)
   (bootloader_args )
   (vcpus 2)
   (name Vista)
   (on_poweroff destroy)
   (on_reboot restart)
   (bootloader )
   (maxmem 1024)
   (memory 1024)
   (shadow_memory 10)
   (features )
   (on_xend_start ignore)
   (on_xend_stop ignore)
   (start_time 1257175085.02)
   (cpu_time 68.597921547)
   (online_vcpus 2)
   (image
       (hvm
           (kernel /usr/lib/xen/boot/hvmloader)
           (hpet 0)
           (stdvga 0)
           (extid 0)
           (serial pty)
           (vncunused 1)
           (boot c)
           (rtc_timeoffset -21600)
           (pci ())
           (pae 1)
           (hap 1)
           (acpi 1)
           (localtime 1)
           (timer_mode 0)
           (vnc 1)
           (nographic 0)
           (guest_os_type default)
           (apic 1)
           (monitor 0)
           (usbdevice host:0951:1607)
           (device_model /usr/lib/xen/bin/qemu-dm)
           (usb 1)
           (xauthority /root/.Xauthority)
           (isa 0)
           (notes (SUSPEND_CANCEL 1))
       )
   )
   (status 2)
   (state -b----)
   (store_mfn 262142)
   (device
       (vif
           (uuid 64a31e5a-120c-d316-3334-c59ec7eb86c6)
           (script vif-bridge)
           (mac 00:16:3e:1a:45:41)
           (model rtl8139)
           (type ioemu)
           (backend 0)
       )
   )
   (device
       (vbd
           (uname file:/xendata2/images/Vista/disk0)
           (uuid 683331e3-5705-0468-6e8d-0a3fa28a24ad)
           (mode w)
           (dev hda:disk)
           (backend 0)
           (bootable 1)
       )
   )
   (device
       (vfb
           (vncunused 1)
           (type vnc)
           (uuid 391189b0-7e08-1c0a-7388-139af4ecf5a1)
           (location 127.0.0.1:5900)
       )
   )
   (device
       (console
           (protocol vt100)
           (location 4)
           (uuid dbd942ab-e7dd-eebf-c092-b434c1acc64b)
       )
   )
)



_______________________________________________
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®.