WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] Problem adding an usb device

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Problem adding an usb device
From: deity <dspjm@xxxxxxx>
Date: Thu, 14 Jul 2011 00:46:28 +0800
Delivery-date: Thu, 14 Jul 2011 06:17:00 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=Received:Subject:From:To:Content-Type:Date: Message-Id:Mime-Version:Content-Transfer-Encoding; bh=9ujrJkW7vC ssN3zQXc/J7NYmR3VWgDDWCKzy5803YFI=; b=HPl4Ovs4ybe4AC0ja0dDuNfiQm 5sIkA2fH1ahtRYNGItikwWQZ06pCVelbA13zzgv+Br7PJDt5Te6NtOYTlakRt5aq rDpRKpBsuwJpJ3tE1HFi1UdGTo7v+QJC/LbbZD/O+cHUXUP59FPU/l6hfAYKJR29 cZMWAqr/Xd5qvlqlo=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>