Getting Xen DomU setup and running for first time

Susan Baur susan at cdl.edu
Thu Jun 19 18:59:08 UTC 2008


I have a fresh install of RHEL 5  fully updated with the  
virutalization software installed. I've gotten xen started and Dom0  
appears to be running correctly. However, whenever I attempt to start  
a guest OS, I get  error 22, invalid argument. No matter what I  
change, I always get this same error. What am I missing? I google for  
this error and the only suggestions that seem to fix the problem for  
others are "uninstall the redhat kernel and install xen from source  
instead.  I've included output from some commands below that I think  
are relevant. Please let me know if any other information would help.


[root at myserver /etc/xen]# rpm -qa | grep xen
xen-libs-3.0.3-64.el5_2.1
kernel-xen-2.6.18-92.1.1.el5
kernel-xen-2.6.18-8.el5

[root at myserver /etc/xen]# xm create webapp.cfg
Using config file "./webapp.cfg".
Error: (22, 'Invalid argument')

[root at myserver /etc/xen]# xm list
Name                                      ID Mem(MiB) VCPUs State    
Time(s)
Domain-0                                   0     3917     8 r-----      
29.8

[root@ myserver /etc/xen]# uname -a
Linux myserver 2.6.18-92.1.1.el5xen #1 SMP Thu May 22 09:31:19 EDT  
2008 i686 i686 i386 GNU/Linux

[root@ myserver /etc/xen]# cat xend-config.sxp | grep -v ^#
(xend-unix-server yes)
(xend-unix-path /var/lib/xend/xend-socket)
(xend-relocation-hosts-allow '^localhost$ ^localhost\\.localdomain$')
(network-script network-bridge)
(vif-script vif-bridge)
(dom0-min-mem 256)
(dom0-cpus 0)
(vncpasswd '')

[root@ myserver /etc/xen]# cat webapp.cfg | grep -v ^#
kernel = "/boot/vmlinuz-2.6.18-92.1.1.el5xen"
ramdisk = "/boot/initrd-2.6.18-92.1.1.el5xen.img"
builder='linux'
memory = 512
name = "WebApp"
uuid = "06ed00fe-1162-4fc4-b5d8-11993ee4a8b9"
vif = [ '' ]
disk = [ 'phy:/dev/mapper/VolGroup00-lv_webapp,hda,w' ]
root = "/dev/hda1 ro"
extra = "4"


[root at myserver /etc/xen]# cat /var/log/xen/xend.log
[2008-06-19 11:55:06 xend.XendDomainInfo 3470] DEBUG (XendDomainInfo: 
190) XendDomainInfo.create(['vm', ['name', 'WebApp'], ['memory', 512],  
['vcpus', 1], ['uuid', '06ed00fe-1162-4fc4-b5d8-11993ee4a8b9'],  
['image', ['linux', ['kernel', '/boot/vmlinuz-2.6.18-92.1.1.el5xen'],  
['ramdisk', '/boot/initrd-2.6.18-92.1.1.el5xen.img'], ['root', '/dev/ 
hda1 ro'], ['args', '4']]], ['device', ['vbd', ['uname', 'phy:/dev/ 
mapper/VolGroup00-lv_webapp'], ['dev', 'hda'], ['mode', 'w']]],  
['device', ['vif']]])
[2008-06-19 11:55:06 xend.XendDomainInfo 3470] DEBUG (XendDomainInfo: 
296) parseConfig: config is ['vm', ['name', 'WebApp'], ['memory',  
512], ['vcpus', 1], ['uuid', '06ed00fe-1162-4fc4-b5d8-11993ee4a8b9'],  
['image', ['linux', ['kernel', '/boot/vmlinuz-2.6.18-92.1.1.el5xen'],  
['ramdisk', '/boot/initrd-2.6.18-92.1.1.el5xen.img'], ['root', '/dev/ 
hda1 ro'], ['args', '4']]], ['device', ['vbd', ['uname', 'phy:/dev/ 
mapper/VolGroup00-lv_webapp'], ['dev', 'hda'], ['mode', 'w']]],  
['device', ['vif']]]
[2008-06-19 11:55:06 xend.XendDomainInfo 3470] DEBUG (XendDomainInfo: 
397) parseConfig: result is {'shadow_memory': None, 'start_time':  
None, 'uuid': '06ed00fe-1162-4fc4-b5d8-11993ee4a8b9', 'on_crash':  
None, 'on_reboot': None, 'localtime': None, 'image': ['linux',  
['kernel', '/boot/vmlinuz-2.6.18-92.1.1.el5xen'], ['ramdisk', '/boot/ 
initrd-2.6.18-92.1.1.el5xen.img'], ['root', '/dev/hda1 ro'], ['args',  
'4']], 'on_poweroff': None, 'bootloader_args': None, 'cpus': None,  
'name': 'WebApp', 'backend': [], 'vcpus': 1, 'cpu_weight': None,  
'features': None, 'vcpu_avail': None, 'memory': 512, 'device':  
[('vbd', ['vbd', ['uname', 'phy:/dev/mapper/VolGroup00-lv_webapp'],  
['dev', 'hda'], ['mode', 'w']]), ('vif', ['vif'])], 'bootloader':  
None, 'cpu': None, 'maxmem': None}
[2008-06-19 11:55:06 xend.XendDomainInfo 3470] DEBUG (XendDomainInfo: 
1264) XendDomainInfo.construct: None
[2008-06-19 11:55:06 xend.XendDomainInfo 3470] ERROR (XendDomainInfo: 
202) Domain construction failed
Traceback (most recent call last):
   File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py",  
line 194, in create
     vm.construct()
   File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py",  
line 1268, in construct
     handle = uuid.fromString(self.info['uuid']))
Error: (22, 'Invalid argument')
[2008-06-19 11:55:06 xend.XendDomainInfo 3470] DEBUG (XendDomainInfo: 
1463) XendDomainInfo.destroy: domid=None
[2008-06-19 11:55:06 xend 3470] ERROR (xmlrpclib2:184) (22, 'Invalid  
argument')
Traceback (most recent call last):
   File "/usr/lib/python2.4/site-packages/xen/util/xmlrpclib2.py",  
line 162, in _marshaled_dispatch
     response = self._dispatch(method, params)
   File "/usr/lib/python2.4/SimpleXMLRPCServer.py", line 406, in  
_dispatch
     return func(*params)
   File "/usr/lib/python2.4/site-packages/xen/xend/server/ 
XMLRPCServer.py", line 64, in domain_create
     info = XendDomain.instance().domain_create(config)
   File "/usr/lib/python2.4/site-packages/xen/xend/XendDomain.py",  
line 228, in domain_create
     dominfo = XendDomainInfo.create(config)
   File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py",  
line 194, in create
     vm.construct()
   File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py",  
line 1268, in construct
     handle = uuid.fromString(self.info['uuid']))
Error: (22, 'Invalid argument')

Thanks,
--
Susan Baur
System Administrator
CSU Center for Distributed Learning
707-664-4408
susan at cdl.edu





More information about the redhat-sysadmin-list mailing list