LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   Problems with xen in centOS 5.6 (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/problems-with-xen-in-centos-5-6-a-891514/)

dspjm 07-13-2011 11:34 AM

Problems with xen in centOS 5.6
 
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
Code:

usbdevice=['host:0781:5567']
in the configuration file, and create the machine, and it told me that
Code:

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:
Code:

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
Code:

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' ]

thanks again...

karthickk02 08-11-2011 10:57 AM

Hi,

I haven't tried this before. But can you please make sure whether you have enabled usb device in that VM's config file.

usb=1


All times are GMT -5. The time now is 03:44 PM.