[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] Error: (22, 'Invalid argument')


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: "ashutosh mehra" <mehra.ashutosh@xxxxxxxxx>
  • Date: Thu, 20 Sep 2007 03:54:26 +0530
  • Delivery-date: Wed, 19 Sep 2007 15:25:20 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=hiw2EWsi6X880gPqEXCIKbfvG7rKsJ30HQx6VOhYX0P5OtrOJrHdpHbe9jiqxRRQl6Hp96Fotrsuj2o8UU3QSbWmRDJjcKA10OGd0vfulnNhLWgViszZi7WExjPjPlhhhX/UDGiDAFnUPjGNzEmHk+tf9QXUkls8i/oH0BR12A8=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hi,

I have set up an ubuntu edgy guest domain on a fiesty host domain. The installation was successful but on running xm create -c baseimage, I get the following error message:
Error: (22, 'Invalid argument')

The problem seems very similar to the one here: http://lists.xensource.com/archives/html/xen-users/2007-07/msg00361.html but I'm not able to figure out what the post means by "There was an old binary installation of the tools"

The log contents (xm log):
[2007-09-20 15:43:33 xend.XendDomainInfo 29373] DEBUG (XendDomainInfo:190) XendDomainInfo.create(['vm', ['name', 'xen1.example.com '], ['memory', '128'], ['on_poweroff', 'destroy'], ['on_reboot', 'restart'], ['on_crash', 'restart'], ['vcpus', 1], ['image', ['linux', ['kernel', '/boot/xen- 3.gz'], ['ramdisk', '/boot/initrd.img-2.6.18-xen'], ['root', '/dev/sda1 ro']]], ['device', ['vbd', ['uname', 'file:/home/xen/domains/xen1.example.com/disk.img'], ['dev', 'sda1'], ['mode', 'w']]], ['device', ['vbd', ['uname', 'file:/home/xen/domains/xen1.example.com/swap.img'], ['dev', 'sda2'], ['mode', 'w']]], ['device', ['vif', ['ip', ' 192.168.12.150']]]])
[2007-09-20 15:43:33 xend.XendDomainInfo 29373] DEBUG (XendDomainInfo:296) parseConfig: config is ['vm', ['name', ' xen1.example.com'], ['memory', '128'], ['on_poweroff', 'destroy'], ['on_reboot', 'restart'], ['on_crash', 'restart'], ['vcpus', 1], ['image', ['linux', ['kernel', '/boot/xen- 3.gz'], ['ramdisk', '/boot/initrd.img-2.6.18-xen'], ['root', '/dev/sda1 ro']]], ['device', ['vbd', ['uname', 'file:/home/xen/domains/xen1.example.com/disk.img'], ['dev', 'sda1'], ['mode', 'w']]], ['device', ['vbd', ['uname', 'file:/home/xen/domains/xen1.example.com/swap.img'], ['dev', 'sda2'], ['mode', 'w']]], ['device', ['vif', ['ip', ' 192.168.12.150']]]]
[2007-09-20 15:43:33 xend.XendDomainInfo 29373] DEBUG (XendDomainInfo:395) parseConfig: result is {'shadow_memory': None, 'uuid': None, 'on_crash': 'restart', 'on_reboot': 'restart', 'localtime': None, 'image': ['linux', ['kernel', '/boot/xen- 3.gz'], ['ramdisk', '/boot/initrd.img-2.6.18-xen'], ['root', '/dev/sda1 ro']], 'on_poweroff': 'destroy', 'bootloader_args': None, 'cpus': None, 'name': ' xen1.example.com', 'backend': [], 'vcpus': 1, 'cpu_weight': None, 'features': None, 'vcpu_avail': None, 'memory': 128, 'device': [('vbd', ['vbd', ['uname', 'file:/home/xen/domains/xen1.example.com/disk.img'], ['dev', 'sda1'], ['mode', 'w']]), ('vbd', ['vbd', ['uname', 'file:/home/xen/domains/xen1.example.com/swap.img'], ['dev', 'sda2'], ['mode', 'w']]), ('vif', ['vif', ['ip', ' 192.168.12.150']])], 'bootloader': None, 'cpu': None, 'maxmem': None}
[2007-09-20 15:43:33 xend.XendDomainInfo 29373] DEBUG (XendDomainInfo:1262) XendDomainInfo.construct : None
[2007-09-20 15:43:33 xend.XendDomainInfo 29373] ERROR (__init__:1021) Domain construction failed
Traceback (most recent call last):
  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')
[2007-09-20 15:43:33 xend.XendDomainInfo 29373] DEBUG (XendDomainInfo:1458) XendDomainInfo.destroy: domid=None
[2007-09-20 15:43:33 xend 29373] 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')
[2007-09-20 15:43:54 xend.XendDomainInfo 29373] DEBUG (XendDomainInfo:190) XendDomainInfo.create(['vm', ['name', ' xen1.example.com'], ['memory', '128'], ['on_poweroff', 'destroy'], ['on_reboot', 'restart'], ['on_crash', 'restart'], ['vcpus', 1], ['image', ['linux', ['kernel', '/boot/xen- 3.gz'], ['ramdisk', '/boot/initrd.img-2.6.18-xen'], ['root', '/dev/sda1 ro']]], ['device', ['vbd', ['uname', 'file:/home/xen/domains/xen1.example.com/disk.img'], ['dev', 'sda1'], ['mode', 'w']]], ['device', ['vbd', ['uname', 'file:/home/xen/domains/xen1.example.com/swap.img'], ['dev', 'sda2'], ['mode', 'w']]], ['device', ['vif', ['ip', ' 192.168.12.150']]]])
[2007-09-20 15:43:54 xend.XendDomainInfo 29373] DEBUG (XendDomainInfo:296) parseConfig: config is ['vm', ['name', ' xen1.example.com'], ['memory', '128'], ['on_poweroff', 'destroy'], ['on_reboot', 'restart'], ['on_crash', 'restart'], ['vcpus', 1], ['image', ['linux', ['kernel', '/boot/xen- 3.gz'], ['ramdisk', '/boot/initrd.img-2.6.18-xen'], ['root', '/dev/sda1 ro']]], ['device', ['vbd', ['uname', 'file:/home/xen/domains/xen1.example.com/disk.img'], ['dev', 'sda1'], ['mode', 'w']]], ['device', ['vbd', ['uname', 'file:/home/xen/domains/xen1.example.com/swap.img'], ['dev', 'sda2'], ['mode', 'w']]], ['device', ['vif', ['ip', ' 192.168.12.150']]]]
[2007-09-20 15:43:54 xend.XendDomainInfo 29373] DEBUG (XendDomainInfo:395) parseConfig: result is {'shadow_memory': None, 'uuid': None, 'on_crash': 'restart', 'on_reboot': 'restart', 'localtime': None, 'image': ['linux', ['kernel', '/boot/xen- 3.gz'], ['ramdisk', '/boot/initrd.img-2.6.18-xen'], ['root', '/dev/sda1 ro']], 'on_poweroff': 'destroy', 'bootloader_args': None, 'cpus': None, 'name': ' xen1.example.com', 'backend': [], 'vcpus': 1, 'cpu_weight': None, 'features': None, 'vcpu_avail': None, 'memory': 128, 'device': [('vbd', ['vbd', ['uname', 'file:/home/xen/domains/xen1.example.com/disk.img'], ['dev', 'sda1'], ['mode', 'w']]), ('vbd', ['vbd', ['uname', 'file:/home/xen/domains/xen1.example.com/swap.img'], ['dev', 'sda2'], ['mode', 'w']]), ('vif', ['vif', ['ip', ' 192.168.12.150']])], 'bootloader': None, 'cpu': None, 'maxmem': None}
[2007-09-20 15:43:54 xend.XendDomainInfo 29373] DEBUG (XendDomainInfo:1262) XendDomainInfo.construct : None
[2007-09-20 15:43:54 xend.XendDomainInfo 29373] ERROR (__init__:1021) Domain construction failed
Traceback (most recent call last):
  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')
[2007-09-20 15:43:54 xend.XendDomainInfo 29373] DEBUG (XendDomainInfo:1458) XendDomainInfo.destroy: domid=None
[2007-09-20 15:43:54 xend 29373] 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')

***************************************************************************************************************

Contents of baseimage (config file for guest domain):

#  -*- mode: python; -*-
kernel = "/boot/vmlinuz-2.6.18-xen"
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,hda2,w']
ip = "192.168.0.101"
netmask = "255.255.255.0"
gateway = "192.168.0.1"
hostname = "baseimage"
root = "/dev/hda1 ro"
extra = "4"

**************************************************************************************************************

The IP address of the guest domain is not same as that of host domain. Host domain network config is:
IP address: 192.168.12.18
netmask: 255.255.0.0
gateway: 192.168.3.254

If anyone has any suggestions regarding this issue...plz share them with us.
Thanks



_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.