WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Xen

xen-users

[Top] [All Lists]

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

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Error: (22, 'Invalid argument')
From: Bryan Brown <kasper22@xxxxxxxxxxxxxxx>
Date: 2007年9月21日 22:09:39 -0400
Delivery-date: 2007年9月21日 19:10:30 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <67f718cf0709191524m1b7005ffm2272a584f2483b4f@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <67f718cf0709191524m1b7005ffm2272a584f2483b4f@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.6
Hi Ashutosh,
I've been suffering the same problems for the last week. After building 
everything from source it is now working like a charm.
here are a few sources that helped me out:
http://www.nabble.com/Compiling-Xen-3.1.0-src-on-Debian-AMD64-Machine-t4271223.html
 - list of packages add gettext to that list
http://wiki.kartbuilding.net/index.php/Xen_Source_and_Compiling - another list 
of packages to use as refernce
http://www.howtoforge.com/xen_3.0_ubuntu_dapper_drake - dated but a few little 
nuggets (depmod and mkinitramfs)
hopefully that will help you on your path to xen. Make sure if you have any 
Ubuntu packages install you purge them, as they may end up
causing problems if left in place.
Bryan
On Wednesday 19 September 2007, ashutosh mehra wrote:
> 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
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: Re: [Xen-users] xm create random error , jim burns
Next by Date: By Rolex for 250$ or less 8bnz , Santiago Murray
Previous by Thread: [Xen-users] Error: (22, 'Invalid argument') , ashutosh mehra
Next by Thread: Re: [Xen-users] Error: (22, 'Invalid argument') , Steven Timm
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /