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

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



Then he needs VT-d for his Windows Vista HVM domU.

--
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 Wed, Nov 4, 2009 at 1:56 AM, Dustin Henning <Dustin.Henning@xxxxxxxxxxx> wrote:
       I'm a bit late in this discussion, so sorry if this idea has already been axed, but could you buy a PCI card with USB ports and pass it through to the domU instead of trying to pass through a USB device?
       Dustin

-----Original Message-----
From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of James Pifer
Sent: Tuesday, November 03, 2009 12:53
To: xen-users@xxxxxxxxxxxxxxxxxxx
Cc: space.time.universe@xxxxxxxxx; Nick Couchman
Subject: Re: [Xen-users] How do you give USB to a Windows domU?

On Wed, 2009-11-04 at 01:42 +0800, Mr. Teo En Ming (Zhang Enming) wrote:
> brctl show


You mean while it's attempting to start? See below.

I could probably get away with centos in a production environment, but definitely not fedora. SLES10 is our current "standard". Unfortunately I need usb functionality for a production server, whether that is or is not recommended.

Thanks,
James


# xm start Vista
Error: Device 0 (vif) could not be connected. Hotplug scripts not working.
Usage: xm start <DomainName>

Start a Xend managed domain
 -p, --paused                   Do not unpause domain after starting it
 -c, --console_autoconnect      Connect to the console after the domain
                                is created
 --vncviewer                    Connect to display via VNC after the
                                domain is created
 --vncviewer-autopass           Pass VNC password to viewer via stdin and
                                -autopass



# brctl show
bridge name     bridge id               STP enabled     interfaces
eth4            8000.002655827dd4       no              peth4
                                                       tap13.0




[2009-11-03 11:47:41 5603] DEBUG (XendDomainInfo:2304) XendDomainInfo.constructDomain
[2009-11-03 11:47:41 5603] DEBUG (balloon:166) Balloon: 32122132 KiB free; need 4096; done.
[2009-11-03 11:47:41 5603] DEBUG (XendDomain:453) Adding Domain: 13
[2009-11-03 11:47:41 5603] DEBUG (XendDomainInfo:2505) XendDomainInfo.initDomain: 13 256
[2009-11-03 11:47:41 5603] DEBUG (image:322) No VNC passwd configured for vfb access
[2009-11-03 11:47:41 5603] DEBUG (image:813) args: boot, val: c
[2009-11-03 11:47:41 5603] DEBUG (image:813) args: fda, val: None
[2009-11-03 11:47:41 5603] DEBUG (image:813) args: fdb, val: None
[2009-11-03 11:47:41 5603] DEBUG (image:813) args: soundhw, val: None
[2009-11-03 11:47:41 5603] DEBUG (image:813) args: localtime, val: 1
[2009-11-03 11:47:41 5603] DEBUG (image:813) args: serial, val: ['pty']
[2009-11-03 11:47:41 5603] DEBUG (image:813) args: std-vga, val: 0
[2009-11-03 11:47:41 5603] DEBUG (image:813) args: isa, val: 0
[2009-11-03 11:47:41 5603] DEBUG (image:813) args: acpi, val: 1
[2009-11-03 11:47:41 5603] DEBUG (image:813) args: usb, val: 1
[2009-11-03 11:47:41 5603] DEBUG (image:813) args: usbdevice, val: host:0951:1607
[2009-11-03 11:47:41 5603] INFO (image:749) Need to create platform device.[domid:13]
[2009-11-03 11:47:41 5603] DEBUG (XendDomainInfo:2529) _initDomain:shadow_memory=0xa, memory_static_max=0x40000000, memory_static_min=0x0.
[2009-11-03 11:47:41 5603] DEBUG (balloon:166) Balloon: 32120700 KiB free; need 1067008; done.
[2009-11-03 11:47:41 5603] INFO (image:173) buildDomain os=hvm dom=13 vcpus=2
[2009-11-03 11:47:41 5603] DEBUG (image:866) domid          = 13
[2009-11-03 11:47:41 5603] DEBUG (image:867) image          = /usr/lib/xen/boot/hvmloader
[2009-11-03 11:47:41 5603] DEBUG (image:868) store_evtchn   = 3
[2009-11-03 11:47:41 5603] DEBUG (image:869) memsize        = 1024
[2009-11-03 11:47:41 5603] DEBUG (image:870) target         = 1024
[2009-11-03 11:47:41 5603] DEBUG (image:871) vcpus          = 2
[2009-11-03 11:47:41 5603] DEBUG (image:872) acpi           = 1
[2009-11-03 11:47:41 5603] DEBUG (image:873) apic           = 1
[2009-11-03 11:47:41 5603] INFO (XendDomainInfo:2168) createDevice: vfb : {'vncunused': 1, 'other_config': {'vncunused': 1, 'vnc': '1'}, 'vnc': '1', 'uuid': 'ecf80d39-153a-f383-f43b-85c6cb4fe3d0', 'devid': 0, 'location': '127.0.0.1:5900'}
[2009-11-03 11:47:41 5603] DEBUG (DevController:95) DevController: writing {'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/vfb/13/0'} to /local/domain/13/device/vfb/0.
[2009-11-03 11:47:41 5603] DEBUG (DevController:97) DevController: writing {'vncunused': '1', 'domain': 'Vista', 'frontend': '/local/domain/13/device/vfb/0', 'uuid': 'ecf80d39-153a-f383-f43b-85c6cb4fe3d0', 'frontend-id': '13', 'state': '1', 'location': '127.0.0.1:5900', 'online': '1', 'vnc': '1'} to /local/domain/0/backend/vfb/13/0.
[2009-11-03 11:47:41 5603] INFO (XendDomainInfo:2168) createDevice: console : {'other_config': {}, 'protocol': 'vt100', 'uuid': '12f0151f-6f80-887e-ff47-f98302e69222', 'location': '4'}
[2009-11-03 11:47:41 5603] DEBUG (DevController:95) DevController: writing {'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/console/13/0'} to /local/domain/13/device/console/0.
[2009-11-03 11:47:41 5603] DEBUG (DevController:97) DevController: writing {'domain': 'Vista', 'frontend': '/local/domain/13/device/console/0', 'uuid': '12f0151f-6f80-887e-ff47-f98302e69222', 'frontend-id': '13', 'state': '1', 'location': '4', 'online': '1', 'protocol': 'vt100'} to /local/domain/0/backend/console/13/0.
[2009-11-03 11:47:41 5603] INFO (XendDomainInfo:2168) createDevice: vbd : {'uuid': 'bb26be09-2e6d-602a-9d6c-98f7aa8d1b5f', 'bootable': 1, 'devid': 768, 'driver': 'paravirtualised', 'dev': 'hda', 'uname': 'file:/xendata2/images/Vista/disk0', 'mode': 'w'}
[2009-11-03 11:47:41 5603] DEBUG (DevController:95) DevController: writing {'backend-id': '0', 'virtual-device': '768', 'device-type': 'disk', 'state': '1', 'backend': '/local/domain/0/backend/vbd/13/768'} to /local/domain/13/device/vbd/768.
[2009-11-03 11:47:41 5603] DEBUG (DevController:97) DevController: writing {'domain': 'Vista', 'frontend': '/local/domain/13/device/vbd/768', 'uuid': 'bb26be09-2e6d-602a-9d6c-98f7aa8d1b5f', 'bootable': '1', 'dev': 'hda', 'state': '1', 'params': '/xendata2/images/Vista/disk0', 'mode': 'w', 'online': '1', 'frontend-id': '13', 'type': 'file'} to /local/domain/0/backend/vbd/13/768.
[2009-11-03 11:47:41 5603] INFO (XendDomainInfo:2168) createDevice: vif : {'bridge': 'eth4', 'mac': '00:16:3e:1a:45:41', 'devid': 0, 'uuid': '10b23fcd-acbe-c507-3593-640c6131f533'}
[2009-11-03 11:47:41 5603] DEBUG (DevController:95) DevController: writing {'backend-id': '0', 'mac': '00:16:3e:1a:45:41', 'handle': '0', 'state': '1', 'backend': '/local/domain/0/backend/vif/13/0'} to /local/domain/13/device/vif/0.
[2009-11-03 11:47:41 5603] DEBUG (DevController:97) DevController: writing {'bridge': 'eth4', 'domain': 'Vista', 'handle': '0', 'uuid': '10b23fcd-acbe-c507-3593-640c6131f533', 'script': '/etc/xen/scripts/vif-bridge', 'mac': '00:16:3e:1a:45:41', 'frontend-id': '13', 'state': '1', 'online': '1', 'frontend': '/local/domain/13/device/vif/0'} to /local/domain/0/backend/vif/13/0.
[2009-11-03 11:47:41 5603] INFO (image:394) spawning device models: /usr/lib/xen/bin/qemu-dm ['/usr/lib/xen/bin/qemu-dm', '-d', '13', '-domain-name', 'Vista', '-videoram', '4', '-vnc', '127.0.0.1:0', '-vncunused', '-vcpus', '2', '-boot', 'c', '-localtime', '-serial', 'pty', '-acpi', '-usb', '-usbdevice', 'host:0951:1607', '-net', 'nic,vlan=1,macaddr=00:16:3e:1a:45:41,model=rtl8139', '-net', 'tap,vlan=1,ifname=tap13.0,bridge=eth4', '-M', 'xenfv']
[2009-11-03 11:47:41 5603] INFO (image:443) device model pid: 24518
[2009-11-03 11:47:41 5603] INFO (image:531) waiting for sentinel_fifo
[2009-11-03 11:47:41 5603] DEBUG (XendDomainInfo:3060) Storing VM details: {'on_xend_stop': 'ignore', 'shadow_memory': '10', 'uuid': 'abf38e32-96d7-dcdd-ac1c-76a0c62adc1b', 'on_reboot': 'restart', 'start_time': '1257270461.49', 'on_poweroff': 'destroy', 'bootloader_args': '', 'on_xend_start': 'ignore', 'on_crash': 'destroy', 'xend/restart_count': '0', 'vcpus': '2', 'vcpu_avail': '3', 'bootloader': '', 'image': '(hvm (kernel ) (videoram 4) (hpet 0) (stdvga 0) (loader /usr/lib/xen/boot/hvmloader) (serial pty) (vncunused 1) (xen_platform_pci 1) (boot c) (rtc_timeoffset 0) (pci ()) (pae 1) (vpt_align 1) (hap 1) (viridian 0) (acpi 1) (localtime 1) (timer_mode 1) (vnc 1) (nographic 0) (guest_os_type default) (pci_msitranslate 1) (apic 1) (monitor 0) (usbdevice host:0951:1607) (device_model /usr/lib/xen/bin/qemu-dm) (pci_power_mgmt 0) (usb 1) (xauthority /root/.Xauthority) (isa 0) (notes (SUSPEND_CANCEL 1)))', 'name': 'Vista'}
[2009-11-03 11:47:41 5603] DEBUG (XendDomainInfo:1622) Storing domain details: {'console/port': '4', 'name': 'Vista', 'console/limit': '1048576', 'store/port': '3', 'vm': '/vm/abf38e32-96d7-dcdd-ac1c-76a0c62adc1b', 'domid': '13', 'image/suspend-cancel': '1', 'cpu/0/availability': 'online', 'memory/target': '1048576', 'control/platform-feature-multiprocessor-suspend': '1', 'store/ring-ref': '1044476', 'cpu/1/availability': 'online', 'console/type': 'ioemu'}
[2009-11-03 11:47:41 5603] DEBUG (DevController:139) Waiting for devices vif.
[2009-11-03 11:47:41 5603] DEBUG (DevController:144) Waiting for 0.
[2009-11-03 11:47:41 5603] DEBUG (XendDomainInfo:1709) XendDomainInfo.handleShutdownWatch
[2009-11-03 11:47:41 5603] DEBUG (DevController:629) hotplugStatusCallback /local/domain/0/backend/vif/13/0/hotplug-status.
[2009-11-03 11:49:21 5603] WARNING (XendDomain:1048) Failed to setup devices for <domain id=13 name=Vista memory=1073741824 state=paused>: Device 0 (vif) could not be connected. Hotplug scripts not working.
[2009-11-03 11:49:21 5603] DEBUG (XendDomainInfo:2732) XendDomainInfo.destroy: domid=13
[2009-11-03 11:49:21 5603] DEBUG (XendDomainInfo:2207) Destroying device model
[2009-11-03 11:49:21 5603] INFO (image:556) Vista device model terminated
[2009-11-03 11:49:21 5603] DEBUG (XendDomainInfo:2214) Releasing devices
[2009-11-03 11:49:21 5603] DEBUG (XendDomainInfo:2227) Removing vif/0
[2009-11-03 11:49:21 5603] DEBUG (XendDomainInfo:1134) XendDomainInfo.destroyDevice: deviceClass = vif, device = vif/0
[2009-11-03 11:49:21 5603] DEBUG (XendDomainInfo:2227) Removing vbd/768
[2009-11-03 11:49:21 5603] DEBUG (XendDomainInfo:1134) XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/768
[2009-11-03 11:49:22 5603] DEBUG (XendDomainInfo:2227) Removing vfb/0
[2009-11-03 11:49:22 5603] DEBUG (XendDomainInfo:1134) XendDomainInfo.destroyDevice: deviceClass = vfb, device = vfb/0
[2009-11-03 11:49:22 5603] DEBUG (XendDomainInfo:2227) Removing console/0
[2009-11-03 11:49:22 5603] DEBUG (XendDomainInfo:1134) XendDomainInfo.destroyDevice: deviceClass = console, device = console/0
[2009-11-03 11:49:22 5603] DEBUG (XendDomainInfo:2212) No device model
[2009-11-03 11:49:22 5603] DEBUG (XendDomainInfo:2214) Releasing devices



_______________________________________________
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




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