LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
Search this Thread
Old 07-13-2011, 11:34 AM   #1
dspjm
Member
 
Registered: Dec 2010
Distribution: Scientific Linux Slackware
Posts: 91

Rep: Reputation: 2
Smile 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...
 
Old 08-11-2011, 10:57 AM   #2
karthickk02
Member
 
Registered: Sep 2010
Posts: 46

Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XEN\Centos\Networking Martin_H Linux - Virtualization and Cloud 1 06-30-2010 08:18 AM
Xen and KDE 4.4 in CentOS shadowers Linux - Software 2 03-22-2010 07:34 PM
configure Xen on centOS sunils1973 Linux - Virtualization and Cloud 11 01-19-2010 08:00 AM
LXer: Install Fedora 10 PV DomU at Xen 3.3.1 CentOS 5.2 & Xen 3.3.0 Intrepid Server v LXer Syndicated Linux News 0 01-10-2009 11:40 AM
LXer: PV-Grub on CentOS 5.2 PV DomU at Xen 3.3 CentOS 5.2 Dom0 (all 64-bit) LXer Syndicated Linux News 0 10-05-2008 10:12 PM


All times are GMT -5. The time now is 12:23 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration