andrea15@tin.it
2007-Jun-11 14:21 UTC
[Xen-users] libvir: Xen Daemon error : POST operation failed: (xend.err "Error creating domain: (22, ''Invalid argument'')")
I have xen 3.0.3 on fedora 5.
i''m creating a guest domain trough the
script guest-install.py .
when I try to use an install location I had
an error:
...Starting install...
libvir: Xen
Daemon error : could not
connect to Xen Daemon
Failed to create domain
...
I updated my libvirt
and libvirt-python
and now I get a different kind of error when I try
installing guest domain:
.....
What is the install location? ftp://ftp.
linux.ncsu.edu/pub/fedora/linux/core/5/i386/os/
Starting install...
libvir: Xen Daemon error : POST operation failed: (xend.err "Error
creating domain: (22, ''Invalid argument'')")
Failed to create domain M1
Traceback (most recent call last):
File "/usr/sbin/xenguest-install.
py", line 460, in ?
main()
File "/usr/sbin/xenguest-install.py",
line 451, in main
start_paravirt_install(name, ram, disk, mac,
uuid, src, options.extra)
File "/usr/sbin/xenguest-install.py", line
331, in start_paravirt_install
dom = conn.createLinux(cfgxml, 0)
File "/usr/lib/python2.4/site-packages/libvirt.py", line 249, in
createLinux
if ret is None:raise libvirtError
(''virDomainCreateLinux() failed'')
libvirt.libvirtError:
virDomainCreateLinux() failed
Now I post the xend.log:
[2007-06-11 12:
31:36 xend 3347] INFO (SrvDaemon:283) Xend Daemon started
[2007-06-11
12:31:36 xend 3347] INFO (SrvDaemon:287) Xend changeset: unavailable .
[2007-06-11 12:31:36 xend.XendDomainInfo 3347] DEBUG (XendDomainInfo:
212) XendDomainInfo.recreate({''paused'': 0,
''cpu_time'': 31509831489L,
''ssidref'': 0, ''handle'': [0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0], ''shutdown_reason'': 0, ''dying'': 0,
''dom'': 0, ''mem_kb'': 1939648,
''maxmem_kb'': -4, ''max_vcpu_id'': 1,
''crashed'': 0, ''running'': 1,
''shutdown'': 0, ''online_vcpus'': 2,
''blocked'': 0})
[2007-06-11 12:31:36
xend.XendDomainInfo 3347] INFO (XendDomainInfo:224) Recreating domain
0, UUID 00000000-0000-0000-0000-000000000000.
[2007-06-11 12:31:36 xend.
XendDomainInfo 3347] WARNING (XendDomainInfo:246) No vm path in store
for existing domain 0
[2007-06-11 12:31:36 xend.XendDomainInfo 3347]
DEBUG (XendDomainInfo:712) Storing VM details:
{''shadow_memory'': ''0'',
''uuid'':
''00000000-0000-0000-0000-000000000000'',
''on_reboot'': ''restart'',
''on_poweroff'': ''destroy'',
''name'': ''Domain-0'',
''xend/restart_count'':
''0'', ''vcpus'': ''2'',
''vcpu_avail'': ''3'',
''memory'': ''1895'',
''on_crash'':
''restart'', ''maxmem'':
''1895''}
[2007-06-11 12:31:36 xend.XendDomainInfo
3347] DEBUG (XendDomainInfo:747) Storing domain details:
{''cpu/0/availability'': ''online'',
''memory/target'': ''1940480'',
''cpu/1/availability'': ''online'',
''name'': ''Domain-0'',
''console/limit'':
''1048576'', ''vm'':
''/vm/00000000-0000-0000-0000-000000000000'',
''domid'':
''0''}
[2007-06-11 12:31:36 xend 3347] DEBUG (XendDomain:153) number of
vcpus to use is 0
[2007-06-11 12:31:36 xend 3347] INFO (SrvServer:116)
unix path=/var/lib/xend/xend-socket
[2007-06-11 12:31:36 xend.
XendDomainInfo 3347] DEBUG (XendDomainInfo:933) XendDomainInfo.
handleShutdownWatch
[2007-06-11 13:37:04 xend.XendDomainInfo 3347]
DEBUG (XendDomainInfo:190) XendDomainInfo.create([''vm'',
[''name'', ''M1''],
[''memory'', ''256''],
[''maxmem'', ''256''],
[''vcpus'', ''1''], [''uuid'',
''9452904d-9a3c-4996-83e7-ca9b9d9b41e5''],
[''on_poweroff'', ''destroy''],
[''on_reboot'', ''destroy''],
[''on_crash'', ''destroy''],
[''image'', [''linux'',
[''kernel'', ''/var/lib/xen/vmlinuz.blvT-l''],
[''ramdisk'',
''/var/lib/xen/initrd.img.AVxDst''], [''args'',
'' root=/dev/xvd method=http:
//mirror.aarnet.edu.au/pub/fedora/linux/core/5/i386/os/ '']]],
[''device'', [''vbd'', [''dev'',
''xvda''], [''uname'', ''file:
/home/sibilia/diskM1''], [''mode'',
''w'']]], [''device'', [''vif'',
[''mac'', ''00:
16:3e:1a:40:e0''], [''bridge'',
''xenbr0''], [''script'',
''/etc/xen/scripts/vif-bridge'']]]])
[2007-06-11 13:37:04 xend.
XendDomainInfo 3347] DEBUG (XendDomainInfo:296) parseConfig: config is
[''vm'', [''name'', ''M1''],
[''memory'', ''256''],
[''maxmem'', ''256''],
[''vcpus'',
''1''], [''uuid'',
''9452904d-9a3c-4996-83e7-ca9b9d9b41e5''],
[''on_poweroff'',
''destroy''], [''on_reboot'',
''destroy''], [''on_crash'',
''destroy''],
[''image'', [''linux'',
[''kernel'', ''/var/lib/xen/vmlinuz.blvT-l''],
[''ramdisk'',
''/var/lib/xen/initrd.img.AVxDst''], [''args'',
'' root=/dev/xvd
method=http://mirror.aarnet.edu.au/pub/fedora/linux/core/5/i386/os/
'']]], [''device'', [''vbd'',
[''dev'', ''xvda''], [''uname'',
''file:
/home/sibilia/diskM1''], [''mode'',
''w'']]], [''device'', [''vif'',
[''mac'', ''00:
16:3e:1a:40:e0''], [''bridge'',
''xenbr0''], [''script'',
''/etc/xen/scripts/vif-bridge'']]]]
[2007-06-11 13:37:04 xend.
XendDomainInfo 3347] DEBUG (XendDomainInfo:395) parseConfig: result is
{''shadow_memory'': None, ''uuid'':
''9452904d-9a3c-4996-83e7-ca9b9d9b41e5'',
''on_crash'': ''destroy'',
''on_reboot'': ''destroy'',
''localtime'': None,
''image'': [''linux'',
[''kernel'', ''/var/lib/xen/vmlinuz.blvT-l''],
[''ramdisk'',
''/var/lib/xen/initrd.img.AVxDst''], [''args'',
'' root=/dev/xvd
method=http://mirror.aarnet.edu.au/pub/fedora/linux/core/5/i386/os/
'']], ''on_poweroff'': ''destroy'',
''bootloader_args'': None, ''cpus'': None,
''name'': ''M1'', ''backend'':
[], ''vcpus'': 1, ''cpu_weight'': None,
''features'': None, ''vcpu_avail'': None,
''memory'': 256, ''device'':
[(''vbd'',
[''vbd'', [''dev'', ''xvda''],
[''uname'', ''file:/home/sibilia/diskM1''],
[''mode'', ''w'']]), (''vif'',
[''vif'', [''mac'',
''00:16:3e:1a:40:e0''],
[''bridge'', ''xenbr0''],
[''script'',
''/etc/xen/scripts/vif-bridge'']])],
''bootloader'': None, ''cpu'': None,
''maxmem'': 256}
[2007-06-11 13:37:04
xend.XendDomainInfo 3347] DEBUG (XendDomainInfo:1253) XendDomainInfo.
construct: None
[2007-06-11 13:37:04 xend.XendDomainInfo 3347] DEBUG
(XendDomainInfo:1285) XendDomainInfo.initDomain: 1 1.0
[2007-06-11 13:
37:04 xend 3347] INFO (image:214) configuring linux guest
[2007-06-11
13:37:04 xend 3347] DEBUG (balloon:133) Balloon: 130672 KiB free; 0 to
scrub; need 262144; retries: 20.
[2007-06-11 13:37:04 xend 3347] DEBUG
(balloon:148) Balloon: setting dom0 target to 1765 MiB.
[2007-06-11 13:
37:04 xend.XendDomainInfo 3347] DEBUG (XendDomainInfo:1014) Setting
memory target of domain Domain-0 (0) to 1765 MiB.
[2007-06-11 13:37:04
xend 3347] DEBUG (balloon:127) Balloon: 262960 KiB free; need 262144;
done.
[2007-06-11 13:37:04 xend 3347] INFO (image:138) buildDomain
os=linux dom=1 vcpus=1
[2007-06-11 13:37:04 xend 3347] DEBUG (image:
193) dom = 1
[2007-06-11 13:37:04 xend 3347] DEBUG (image:
194) image = /var/lib/xen/vmlinuz.blvT-l
[2007-06-11 13:37:04
xend 3347] DEBUG (image:195) store_evtchn = 1
[2007-06-11 13:37:04
xend 3347] DEBUG (image:196) console_evtchn = 2
[2007-06-11 13:37:04
xend 3347] DEBUG (image:197) cmdline = root=/dev/xvd
method=http://mirror.aarnet.edu.au/pub/fedora/linux/core/5/i386/os/
[2007-06-11 13:37:04 xend 3347] DEBUG (image:198) ramdisk =
/var/lib/xen/initrd.img.AVxDst
[2007-06-11 13:37:04 xend 3347] DEBUG
(image:199) vcpus = 1
[2007-06-11 13:37:04 xend 3347] DEBUG
(image:200) features =
[2007-06-11 13:37:04 xend.XendDomainInfo
3347] ERROR (XendDomainInfo:202) Domain construction failed
Traceback
(most recent call last):
File "/usr/lib/python2.4/site-
packages/xen/xend/XendDomainInfo.py", line 195, in create
vm.
initDomain()
File "/usr/lib/python2.4/site-
packages/xen/xend/XendDomainInfo.py", line 1363, in initDomain
raise VmError(str(exn))
VmError: (22, ''Invalid argument'')
[2007-06-11
13:37:04 xend.XendDomainInfo 3347] DEBUG (XendDomainInfo:1449)
XendDomainInfo.destroy: domid=1
[2007-06-11 13:37:04 xend.
XendDomainInfo 3347] DEBUG (XendDomainInfo:1457) XendDomainInfo.
destroyDomain(1)
[2007-06-11 13:37:04 xend 3347] ERROR (SrvBase:88)
Request create failed.
Traceback (most recent call last):
File
"/usr/lib/python2.4/site-packages/xen/web/SrvBase.py", line 85, in
perform
return op_method(op, req)
File "/usr/lib/python2.4/site-
packages/xen/xend/server/SrvDomainDir.py", line 82, in op_create
raise XendError("Error creating domain: " + str(ex))
XendError: Error
creating domain: (22, ''Invalid argument'')
What''s wrong?
Andrea
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users