PDA

View Full Version : Error: (22, 'Invalid argument') XEN


namit
21st May 2007, 01:27
in relation to
http://www.howtoforge.com/xen_3.0_ubuntu_dapper_drake?from=10&comments_per_page=10
section 3.2

I can boot up into the master (think you also call this dom) xen image.

So everything working so far. The only difference i had to make to configs was that am using vmlinux-2.6.18.

command i am running:
root@ubunut:/etc/xen# xm create baseimage -c
Using config file "baseimage".
Error: (22, 'Invalid argument')

cat /etc/xen/baseimage
# -*- mode: python; -*-
kernel = "/boot/vmlinuz-2.6.16-2-xen-686"
ramdisk = "/boot/initrd.img-2.6.16-2-xen-686"
memory = 128
name = "baseimage"
vif = ['bridge=xenbr0']
disk = ['file:/xen-images/guest_base.img,hda1,w','file:/xen-images/guest_base-swap.img,hda1,w']
ip = "192.168.0.101"
netmask = "255.255.255.0"
gateway = "192.168.0.1"
hostname = "baseimage"
root = "/dev/hda1 ro"
extra = "4"

cat /var/log/xen/xen.log
[2007-05-20 23:14:46 xend.XendDomainInfo 4935] DEBUG (XendDomainInfo:1458) XendDomainInfo.destroy: domid=None
[2007-05-20 23:14:46 xend 4935] ERROR (__init__:1021) (22, 'Invalid argument')
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/xen/util/xmlrpclib2.py", line 162, in _marshaled_dispatch
response = self._dispatch(method, params)
File "SimpleXMLRPCServer.py", line 415, in _dispatch
return func(*params)
File "/usr/lib/python2.5/site-packages/xen/xend/server/XMLRPCServer.py", line 64, in domain_create
info = XendDomain.instance().domain_create(config)
File "/usr/lib/python2.5/site-packages/xen/xend/XendDomain.py", line 228, in domain_create
dominfo = XendDomainInfo.create(config)
File "/usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py", line 194, in create
vm.construct()
File "/usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py", line 1266, in construct
handle = uuid.fromString(self.info['uuid']))
Error: (22, 'Invalid argument')

cat /boot/grub/menu.list
title Xen 3.0 / XenLinux 2.6
kernel /boot/xen-3.gz
module /boot/vmlinuz-2.6.18-xen root=/dev/hda1 ro
module /boot/initrd.img-2.6.18-xen


Thanks

namit
23rd May 2007, 00:35
anyone anyone at all?

falko
23rd May 2007, 14:21
I'm not sure if
root = "/dev/hda1 ro"
works (in /etc/xen/baseimage). Try
root = "/dev/hda1"
instead.
Also take a look at the configuration files on http://www.howtoforge.com/debian_sarge_xen_3.0.3_p4 .

namit
29th May 2007, 16:19
yes tried that but still same problem

This is what i wrote to xen team but no response yet.

Hey all

i have created a basefile and am doing xm create -c /etc/xen/baseimage and getting this error Error: (22, 'Invalid argument'). Been told it might be to do with kernel version but not sure what version i have or what to use or what version is loading or how to test this?

I went by this tutorial
http://www.howtoforge.com/xen_3.0_ubuntu_dapper_drake
Just changing versions that where there.
and bit of this
http://www.howtoforge.com/debian_sarge_xen_3.0.3_p4

can anyone help me?

Base image file:
# -*- mode: python; -*-
kernel = "/boot/vmlinuz-2.6"
ramdisk = "/boot/initrd.img-2.6.18-xen"
memory = 128
name = "baseimage"
vif = ['bridge=xenbr0']
disk = ['file:/xen-images/guest_base.img,hda1,w','file:/xen-images/guest_base-swap.img,hdb1,w']
hostname = "baseimage"
root = "/dev/hda1"
extra = "4"

namit@ubunut:~$ ls /boot/
-rw-r--r-- 1 root root 414210 2007-04-15 09:07 abi-2.6.20-15-generic
-rw-r--r-- 1 root root 414274 2007-05-23 03:24 abi-2.6.20-16-generic
-rw-rw-r-- 1 root root 65725 2007-05-18 16:11 config-2.6.18-xen
-rw-r--r-- 1 root root 83234 2007-04-15 06:33 config-2.6.20-15-generic
-rw-r--r-- 1 root root 83217 2007-05-23 00:43 config-2.6.20-16-generic
drwxr-xr-x 2 root root 4096 2007-05-28 21:07 grub
-rw-r--r-- 1 root root 6028814 2007-05-20 18:11 initrd.img-2.6.18-xen
-rw-r--r-- 1 root root 7179709 2007-04-28 13:13 initrd.img-2.6.20-15-generic
-rw-r--r-- 1 root root 6842512 2007-04-15 12:56 initrd.img-2.6.20-15-generic.bak
-rw-r--r-- 1 root root 6949019 2007-05-28 21:07 initrd.img-2.6.20-16-generic
-rw-r--r-- 1 root root 94600 2006-10-20 12:44 memtest86+.bin
-rw-rw-r-- 1 root root 789852 2007-05-18 16:11 System.map-2.6.18-xen
-rw-r--r-- 1 root root 806942 2007-04-15 09:08 System.map-2.6.20-15-generic
-rw-r--r-- 1 root root 806970 2007-05-23 03:26 System.map-2.6.20-16-generic
-rw-r--r-- 1 root root 4193863 2007-05-18 16:11 vmlinux-syms-2.6.18-xen
-rw-r--r-- 1 root root 1509667 2007-05-18 16:11 vmlinuz-2.6.18-xen
-rw-r--r-- 1 root root 1745100 2007-04-15 09:07 vmlinuz-2.6.20-15-generic
-rw-r--r-- 1 root root 1745836 2007-05-23 03:24 vmlinuz-2.6.20-16-generic
lrwxrwxrwx 1 root root 18 2007-05-20 18:00 vmlinuz-2.6-xen -> vmlinuz-2.6.18-xen
-rw-r--r-- 1 root root 240567 2007-03-24 16:03 xen-3.0-i386.gz
-rw-r--r-- 1 root root 291304 2007-05-18 15:54 xen-3.1.0.gz
lrwxrwxrwx 1 root root 12 2007-05-20 18:00 xen-3.1.gz -> xen-3.1.0.gz
lrwxrwxrwx 1 root root 12 2007-05-20 18:00 xen-3.gz -> xen-3.1.0.gz
lrwxrwxrwx 1 root root 12 2007-05-20 18:00 xen.gz -> xen-3.1.0.gz
-rw-r--r-- 1 root root 3460518 2007-05-18 15:54 xen-syms-3.1.0



namit@ubunut:~$ sudo xm list
Password:
Name ID Mem(MiB) VCPUs State Time(s)
Domain-0 0 224 1 r----- 1761.2

rajuyogesh
29th May 2007, 23:05
Even I am getting the same error,
Error: (22, 'Invalid argument')

and the xend.log file also contains a similar log message.

I dont think there is any problem with the configuration file, as I was able to start a guest domain with a similar config file in another Fedora machine.