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

[Xen-users] Problem adding an usb device



I install an XP on xen, and it worked fine, but i want to add a usb
device in the machine. 
so i use the methods in 
http://www.virtuatopia.com/index.php..._domainU_Guest
while, first i wanted to use the dynamic method, which is the second
one, but it failed, because when i get into the machine, ctrl+alt+2
didn't bring me to a console interface other than nothing.
so I tried the first one, while when i add the 

usbdevice=['host:0781:5567']

in the configuration file, and create the machine, and it told me that

sudo xm create xenwin.cfg
Using config file "./xenwin.cfg".
Error: 'list' object has no attribute 'startswith'
why? i totally followed the steps. Hope that you know the answer and
thanks for telling me...or you can tell me how to use a usb in the
virtual machine.

here's something that might be helpful:


lsusb
Bus 006 Device 001: ID 0000:0000  
Bus 003 Device 006: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 003 Device 004: ID 062a:3633 Creative Labs 
Bus 003 Device 001: ID 0000:0000  
Bus 004 Device 001: ID 0000:0000  
Bus 005 Device 001: ID 0000:0000  
Bus 002 Device 002: ID 064e:a116 Suyin Corp. 
Bus 002 Device 001: ID 0000:0000  
Bus 001 Device 007: ID 0781:5567 SanDisk Corp. Cruszer Blade
Bus 001 Device 001: ID 0000:0000


here is my config file


import os, re
arch = os.uname()[4]
if re.search('64', arch):
    arch_libdir = 'lib64'
else:
    arch_libdir = 'lib'

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

builder='hvm'

memory = 512
shadow_memory = 8
name = "xenhvm"
vif = [ 'type=ioemu, bridge=xenbr0' ]
disk = [ 'file:/home/deity/xenwin.img,hda,w', 
'file:/home/deity/Downloads/WinxpSP3.iso,hdc:cdrom,r' ]
device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm'
# boot on floppy (a), hard disk (c) or CD-ROM (d) 
# default: hard disk, cd-rom, floppy
boot="cd"

#monitor=1
sdl=0
vnc=1
vncconsole=1
vncpasswd=''
stdvga=0
serial='pty'
usb=1
usbdevice=[ 'host:067b:2303' ]




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