Public bug reported:

Binary package hint: xen-tools

The following shows the steps needed to recreate the bug, on Edgy.
xenbase:/etc/xen# xen-create-image --hostname=xen1 --ip=172.28.150.201

General Infomation
--------------------
Hostname       :  xen1
Distribution   :  sarge
Fileystem Type :  ext3

Size Information
----------------
Image size     :  2Gb
Swap size      :  128Mb
Image type     :  sparse
Memory size    :  64Mb
Kernel path    :  /boot/xen-3.0-i386-pae.gz
initrd path    :  /boot/xen0-linux-2.6.17-6-server-xen0.initrd.img

Networking Information
----------------------
IP Address 1   : 172.28.150.201


Creating swap image: /opt/domains/xen1/swap.img
Done

Creating disk image: /opt/domains/xen1/disk.img
Done

Creating ext3 filesystem on /opt/domains/xen1/disk.img
Done

Installing your system with debootstrap mirror http://ftp.us.debian.org/debian/
Done

Running hooks
Done

No role script specified.  Skipping

Creating Xen configuration file
Done
All done
xenbase:/etc/xen# 

The following is an excerpt from /etc/xen/xend.log:
[2007-01-04 00:36:20 xend.XendDomainInfo 5396] DEBUG (__init__:1072) 
XendDomainInfo.create(['vm', ['name', 'xen1'], ['memory', '64'], 
['on_poweroff', 'destroy'], ['on_reboot', 'restart'], ['on_crash', 'restart'], 
['vcpus', 1], ['image', ['linux', ['kernel', '/boot/xen-3.0-i386-pae.gz'], 
['ramdisk', '/boot/xen0-linux-2.6.17-6-server-xen0.initrd.img'], ['root', 
'/dev/sda1 ro']]], ['device', ['vbd', ['uname', 
'file:/opt/domains/xen1/disk.img'], ['dev', 'sda1'], ['mode', 'w']]], 
['device', ['vbd', ['uname', 'file:/opt/domains/xen1/swap.img'], ['dev', 
'sda2'], ['mode', 'w']]], ['device', ['vif', ['ip', '172.28.150.201']]]])
[2007-01-04 00:36:20 xend.XendDomainInfo 5396] DEBUG (__init__:1072) 
parseConfig: config is ['vm', ['name', 'xen1'], ['memory', '64'], 
['on_poweroff', 'destroy'], ['on_reboot', 'restart'], ['on_crash', 'restart'], 
['vcpus', 1], ['image', ['linux', ['kernel', '/boot/xen-3.0-i386-pae.gz'], 
['ramdisk', '/boot/xen0-linux-2.6.17-6-server-xen0.initrd.img'], ['root', 
'/dev/sda1 ro']]], ['device', ['vbd', ['uname', 
'file:/opt/domains/xen1/disk.img'], ['dev', 'sda1'], ['mode', 'w']]], 
['device', ['vbd', ['uname', 'file:/opt/domains/xen1/swap.img'], ['dev', 
'sda2'], ['mode', 'w']]], ['device', ['vif', ['ip', '172.28.150.201']]]]
[2007-01-04 00:36:20 xend.XendDomainInfo 5396] DEBUG (__init__:1072) 
parseConfig: result is {'shadow_memory': None, 'uuid': None, 'on_crash': 
'restart', 'on_reboot': 'restart', 'localtime': None, 'image': ['linux', 
['kernel', '/boot/xen-3.0-i386-pae.gz'], ['ramdisk', 
'/boot/xen0-linux-2.6.17-6-server-xen0.initrd.img'], ['root', '/dev/sda1 ro']], 
'on_poweroff': 'destroy', 'bootloader_args': None, 'cpus': None, 'name': 
'xen1', 'backend': [], 'vcpus': 1, 'cpu_weight': None, 'features': None, 
'vcpu_avail': None, 'memory': 64, 'device': [('vbd', ['vbd', ['uname', 
'file:/opt/domains/xen1/disk.img'], ['dev', 'sda1'], ['mode', 'w']]), ('vbd', 
['vbd', ['uname', 'file:/opt/domains/xen1/swap.img'], ['dev', 'sda2'], ['mode', 
'w']]), ('vif', ['vif', ['ip', '172.28.150.201']])], 'bootloader': None, 'cpu': 
None, 'maxmem': None}
[2007-01-04 00:36:20 xend.XendDomainInfo 5396] DEBUG (__init__:1072) 
XendDomainInfo.construct: None
[2007-01-04 00:36:20 xend.XendDomainInfo 5396] DEBUG (__init__:1072) 
XendDomainInfo.initDomain: 18 1.0
[2007-01-04 00:36:20 xend 5396] DEBUG (__init__:1072) Balloon: 66432 KiB free; 
need 65536; done.
[2007-01-04 00:36:20 xend 5396] INFO (__init__:1072) buildDomain os=linux 
dom=18 vcpus=1
[2007-01-04 00:36:20 xend 5396] DEBUG (__init__:1072) dom            = 18
[2007-01-04 00:36:20 xend 5396] DEBUG (__init__:1072) image          = 
/boot/xen-3.0-i386-pae.gz
[2007-01-04 00:36:20 xend 5396] DEBUG (__init__:1072) store_evtchn   = 1
[2007-01-04 00:36:20 xend 5396] DEBUG (__init__:1072) console_evtchn = 2
[2007-01-04 00:36:20 xend 5396] DEBUG (__init__:1072) cmdline        =  
root=/dev/sda1 ro
[2007-01-04 00:36:20 xend 5396] DEBUG (__init__:1072) ramdisk        = 
/boot/xen0-linux-2.6.17-6-server-xen0.initrd.img
[2007-01-04 00:36:20 xend 5396] DEBUG (__init__:1072) vcpus          = 1
[2007-01-04 00:36:20 xend 5396] DEBUG (__init__:1072) features       = 
[2007-01-04 00:36:20 xend.XendDomainInfo 5396] ERROR (__init__:1072) 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-01-04 00:36:20 xend.XendDomainInfo 5396] DEBUG (__init__:1072) 
XendDomainInfo.destroy: domid=18
[2007-01-04 00:36:20 xend.XendDomainInfo 5396] DEBUG (__init__:1072) 
XendDomainInfo.destroyDomain(18)

[EMAIL PROTECTED]:/var/log/xen$ xen-list-images 
Name: xen1
Memory: 64
IP: 172.28.150.201

[EMAIL PROTECTED]:/var/log/xen$ sudo xm console xen1
Error: Domain 'xen1' does not exist.


Both dom0 and domU use the same kernel image/initrd map.

** Affects: xen-tools (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
xen-image-create fails to boot image.
https://launchpad.net/bugs/77916

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to