Subject: port-xen/34947: NetBSD domU fails to create with xen 3.0.3 Ubuntu/Frugalware-current dom0
To: None <port-xen-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <e66@citromail.hu>
List: netbsd-bugs
Date: 10/30/2006 10:25:02
>Number: 34947
>Category: port-xen
>Synopsis: NetBSD domU fails to create with xen 3.0.3 Ubuntu/Frugalware-current dom0
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: port-xen-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Oct 30 10:25:01 +0000 2006
>Originator: Gábris Gábor
>Release: 3.1RC3
>Organization:
>Environment:
Linux SGC 2.6.17-6-generic-xen0
>Description:
I tried to boot NetBSD as domU with Ubuntu Edgy as dom0, with xen 3.0.3 from Ubuntu Edgy repo and Frugalware-current as dom0, with xen 3.0.2_20060930-5 from Frugalware repo.
My xen config file (netbsd.cfg to boot NetBSD domU):
kernel = "/home/gabor/xen/netbsd-INSTALL_XEN3_DOMU"
memory = 384
name = "netbsd3.1_RC3"
#cpu = ""
disk = [ 'tap:aio:/media/hda6/home/gabor/Ez-az/xen/netbsd.img,0x3,w' ]
vif = ['mac=aa:00:00:00:00:11']
dhcp = "dhcp"
The netbsd-INSTALL_XEN3_DOMU is a NetBSD 3.1RC3 kernel.
Running
xm create -c /etc/xen/netbsd.cfg
gives the following:
Using config file "/media/hda6/etc/xen/netbsd.cfg".
Error: (22, 'Invalid argument')
My /var/log/xen/xend-debug.log is:
ERROR: Initial guest OS requires too much space
(0xc0cMB is greater than 384MB limit)
(0 = Success)
ERROR: Error constructing guest OS
My /var/log/xen/xend.log is:
[2006-10-30 12:03:24 xend.XendDomainInfo 4601] DEBUG (__init__:1072) XendDomainInfo.create(['vm', ['name', 'netbsd3.1_RC3'], ['memory', 384], ['vcpus', 1], ['image', ['linux', ['kernel', '/home/gabor/xen/netbsd-INSTALL_XEN3_DOMU'], ['ip', ':1.2.3.4::::eth0:dhcp']]], ['device', ['tap', ['uname', 'tap:aio:/media/hda6/home/gabor/Ez-az/xen/netbsd.img'], ['dev', '0x3'], ['mode', 'w']]], ['device', ['vif', ['mac', 'aa:00:00:00:00:11']]]])
[2006-10-30 12:03:24 xend.XendDomainInfo 4601] DEBUG (__init__:1072) parseConfig: config is ['vm', ['name', 'netbsd3.1_RC3'], ['memory', 384], ['vcpus', 1], ['image', ['linux', ['kernel', '/home/gabor/xen/netbsd-INSTALL_XEN3_DOMU'], ['ip', ':1.2.3.4::::eth0:dhcp']]], ['device', ['tap', ['uname', 'tap:aio:/media/hda6/home/gabor/Ez-az/xen/netbsd.img'], ['dev', '0x3'], ['mode', 'w']]], ['device', ['vif', ['mac', 'aa:00:00:00:00:11']]]]
[2006-10-30 12:03:24 xend.XendDomainInfo 4601] DEBUG (__init__:1072) parseConfig: result is {'shadow_memory': None, 'uuid': None, 'on_crash': None, 'on_reboot': None, 'localtime': None, 'image': ['linux', ['kernel', '/home/gabor/xen/netbsd-INSTALL_XEN3_DOMU'], ['ip', ':1.2.3.4::::eth0:dhcp']], 'on_poweroff': None, 'bootloader_args': None, 'cpus': None, 'name': 'netbsd3.1_RC3', 'backend': [], 'vcpus': 1, 'cpu_weight': None, 'features': None, 'vcpu_avail': None, 'memory': 384, 'device': [('tap', ['tap', ['uname', 'tap:aio:/media/hda6/home/gabor/Ez-az/xen/netbsd.img'], ['dev', '0x3'], ['mode', 'w']]), ('vif', ['vif', ['mac', 'aa:00:00:00:00:11']])], 'bootloader': None, 'cpu': None, 'maxmem': None}
[2006-10-30 12:03:24 xend.XendDomainInfo 4601] DEBUG (__init__:1072) XendDomainInfo.construct: None
[2006-10-30 12:03:24 xend.XendDomainInfo 4601] DEBUG (__init__:1072) XendDomainInfo.initDomain: 4 1.0
[2006-10-30 12:03:24 xend 4601] DEBUG (__init__:1072) Balloon: 393664 KiB free; need 393216; done.
[2006-10-30 12:03:24 xend 4601] INFO (__init__:1072) buildDomain os=linux dom=4 vcpus=1
[2006-10-30 12:03:24 xend 4601] DEBUG (__init__:1072) dom = 4
[2006-10-30 12:03:24 xend 4601] DEBUG (__init__:1072) image = /home/gabor/xen/netbsd-INSTALL_XEN3_DOMU
[2006-10-30 12:03:24 xend 4601] DEBUG (__init__:1072) store_evtchn = 1
[2006-10-30 12:03:24 xend 4601] DEBUG (__init__:1072) console_evtchn = 2
[2006-10-30 12:03:24 xend 4601] DEBUG (__init__:1072) cmdline = ip=:1.2.3.4::::eth0:dhcp
[2006-10-30 12:03:24 xend 4601] DEBUG (__init__:1072) ramdisk =
[2006-10-30 12:03:24 xend 4601] DEBUG (__init__:1072) vcpus = 1
[2006-10-30 12:03:24 xend 4601] DEBUG (__init__:1072) features =
[2006-10-30 12:03:24 xend.XendDomainInfo 4601] 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')
[2006-10-30 12:03:24 xend.XendDomainInfo 4601] DEBUG (__init__:1072) XendDomainInfo.destroy: domid=4
[2006-10-30 12:03:24 xend.XendDomainInfo 4601] DEBUG (__init__:1072) XendDomainInfo.destroyDomain(4)
(NOTE:The creation of Linux domUs works.)
I also posted it as a xen bug.
>How-To-Repeat:
>Fix: