Subject: Creation of NetBSD domU fails under Linux dom0
To: None <netbsd-users@netbsd.org, port-xen@NetBSD.org>
From: =?ISO-8859-1?Q?G=E1bor_G=E1bris?= <gabrisgabor@gmail.com>
List: port-xen
Date: 10/30/2006 20:56:49
------=_Part_114968_5279614.1162238209537
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hi!
I have a problem with NetBSD/xen:
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-5from
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)
Interestingly the creation of Linux domUs works.
Maybe somebody smarter than me can help at least with a clue...
------=_Part_114968_5279614.1162238209537
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
<span class="gmail_quote"></span>Hi!<br><br>I have a problem with NetBSD/xen:<br>I tried to boot NetBSD as domU with Ubuntu Edgy as dom0, with xen 3.0.3 from<br>Ubuntu Edgy repo and Frugalware-current as dom0, with xen 3.0.2_20060930-5
from<br>Frugalware repo.
<br><br>My xen config file (netbsd.cfg to boot NetBSD domU):<br><br><span style="font-weight: bold;">kernel = "/home/gabor/xen/netbsd-INSTALL_XEN3_DOMU"</span><br style="font-weight: bold;"><span style="font-weight: bold;">
memory = 384</span><br style="font-weight: bold;"><span style="font-weight: bold;">name = "netbsd3.1_RC3"</span><br style="font-weight: bold;"><span style="font-weight: bold;">#cpu = "" </span><br style="font-weight: bold;">
<span style="font-weight: bold;">disk = [ 'tap:aio:/media/hda6/home/gabor/Ez-az/xen/netbsd.img,0x3,w' ]</span><br style="font-weight: bold;"><span style="font-weight: bold;">vif = ['mac=aa:00:00:00:00:11']</span><br style="font-weight: bold;">
<span style="font-weight: bold;">dhcp = "dhcp"</span><br><br>The netbsd-INSTALL_XEN3_DOMU is a NetBSD 3.1RC3 kernel.<br><br>Running <br><br><span style="font-weight: bold;">xm create -c /etc/xen/netbsd.cfg</span>
<br><br>gives the following:<br><br><span style="font-weight: bold;">Using config file "/media/hda6/etc/xen/netbsd.cfg".</span><br style="font-weight: bold;"><span style="font-weight: bold;">Error: (22, 'Invalid argument')
</span><br><br>My /var/log/xen/xend-debug.log is:<br><br><span style="font-weight: bold;">ERROR: Initial guest OS requires too much space</span><br style="font-weight: bold;"><span style="font-weight: bold;">(0xc0cMB is greater than 384MB limit)
</span><br style="font-weight: bold;"><span style="font-weight: bold;"> (0 = Success)</span><br style="font-weight: bold;"><span style="font-weight: bold;">ERROR: Error constructing guest OS</span><br><br>My /var/log/xen/xend.log is:
<br><br><span style="font-weight: bold;">[2006-10-30 12:03:24 xend.XendDomainInfo 4601] DEBUG (__init__:1072)</span><br style="font-weight: bold;"><span style="font-weight: bold;">XendDomainInfo.create(['vm', ['name', 'netbsd3.1_RC3
'
], ['memory', 384],</span><br style="font-weight: bold;"><span style="font-weight: bold;">['vcpus', 1], ['image', ['linux', ['kernel',</span><br style="font-weight: bold;"><span style="font-weight: bold;">'/home/gabor/xen/netbsd-INSTALL_XEN3_DOMU'], ['ip', ':
1.2.3.4::::eth0:dhcp']]],</span><br style="font-weight: bold;"><span style="font-weight: bold;">['device', ['tap', ['uname',</span><br style="font-weight: bold;"><span style="font-weight: bold;">'tap:aio:/media/hda6/home/gabor/Ez-az/xen/netbsd.img'], ['dev', '0x3'],
</span><br style="font-weight: bold;"><span style="font-weight: bold;">['mode', 'w']]], ['device', ['vif', ['mac', 'aa:00:00:00:00:11']]]])</span><br style="font-weight: bold;"><span style="font-weight: bold;">[2006-10-30 12:03:24
xend.XendDomainInfo 4601] DEBUG (__init__:1072)</span><br style="font-weight: bold;"><span style="font-weight: bold;">parseConfig: config is ['vm', ['name', 'netbsd3.1_RC3'], ['memory', 384],</span><br style="font-weight: bold;">
<span style="font-weight: bold;">['vcpus', 1], ['image', ['linux', ['kernel',</span><br style="font-weight: bold;"><span style="font-weight: bold;">'/home/gabor/xen/netbsd-INSTALL_XEN3_DOMU'], ['ip', ':1.2.3.4::::eth0:dhcp
'
]]],</span><br style="font-weight: bold;"><span style="font-weight: bold;">['device', ['tap', ['uname',</span><br style="font-weight: bold;"><span style="font-weight: bold;">'tap:aio:/media/hda6/home/gabor/Ez-az/xen/netbsd.img'], ['dev', '0x3'],
</span><br style="font-weight: bold;"><span style="font-weight: bold;">['mode', 'w']]], ['device', ['vif', ['mac', 'aa:00:00:00:00:11']]]]</span><br style="font-weight: bold;"><span style="font-weight: bold;">[2006-10-30 12:03:24
xend.XendDomainInfo 4601] DEBUG (__init__:1072)</span><br style="font-weight: bold;"><span style="font-weight: bold;">parseConfig: result is {'shadow_memory': None, 'uuid': None, 'on_crash': None,</span><br style="font-weight: bold;">
<span style="font-weight: bold;">'on_reboot': None, 'localtime': None, 'image': ['linux', ['kernel',</span><br style="font-weight: bold;"><span style="font-weight: bold;">'/home/gabor/xen/netbsd-INSTALL_XEN3_DOMU'], ['ip', ':
1.2.3.4::::eth0:dhcp']],</span><br style="font-weight: bold;"><span style="font-weight: bold;">'on_poweroff': None, 'bootloader_args': None, 'cpus': None, 'name':</span><br style="font-weight: bold;"><span style="font-weight: bold;">
'netbsd3.1_RC3', 'backend': [], 'vcpus': 1, 'cpu_weight': None, 'features':</span><br style="font-weight: bold;"><span style="font-weight: bold;">None, 'vcpu_avail': None, 'memory': 384, 'device': [('tap', ['tap', ['uname',
</span><br style="font-weight: bold;"><span style="font-weight: bold;">'tap:aio:/media/hda6/home/gabor/Ez-az/xen/netbsd.img'], ['dev', '0x3'],</span><br style="font-weight: bold;"><span style="font-weight: bold;">['mode', 'w']]), ('vif', ['vif', ['mac', 'aa:00:00:00:00:11']])], 'bootloader':
</span><br style="font-weight: bold;"><span style="font-weight: bold;">None, 'cpu': None, 'maxmem': None}</span><br style="font-weight: bold;"><span style="font-weight: bold;">[2006-10-30 12:03:24 xend.XendDomainInfo 4601] DEBUG (__init__:1072)
</span><br style="font-weight: bold;"><span style="font-weight: bold;">XendDomainInfo.construct: None</span><br style="font-weight: bold;"><span style="font-weight: bold;">[2006-10-30 12:03:24 xend.XendDomainInfo 4601] DEBUG (__init__:1072)
</span><br style="font-weight: bold;"><span style="font-weight: bold;">XendDomainInfo.initDomain: 4 1.0</span><br style="font-weight: bold;"><span style="font-weight: bold;">[2006-10-30 12:03:24 xend 4601] DEBUG (__init__:1072) Balloon: 393664 KiB free;
</span><br style="font-weight: bold;"><span style="font-weight: bold;">need 393216; done.</span><br style="font-weight: bold;"><span style="font-weight: bold;">[2006-10-30 12:03:24 xend 4601] INFO (__init__:1072) buildDomain os=linux dom=4
</span><br style="font-weight: bold;"><span style="font-weight: bold;">vcpus=1</span><br style="font-weight: bold;"><span style="font-weight: bold;">[2006-10-30 12:03:24 xend 4601] DEBUG (__init__:1072) dom = 4
</span><br style="font-weight: bold;"><span style="font-weight: bold;">[2006-10-30 12:03:24 xend 4601] DEBUG (__init__:1072) image =</span><br style="font-weight: bold;"><span style="font-weight: bold;">/home/gabor/xen/netbsd-INSTALL_XEN3_DOMU
</span><br style="font-weight: bold;"><span style="font-weight: bold;">[2006-10-30 12:03:24 xend 4601] DEBUG (__init__:1072) store_evtchn = 1</span><br style="font-weight: bold;"><span style="font-weight: bold;">[2006-10-30 12:03:24 xend 4601] DEBUG (__init__:1072) console_evtchn = 2
</span><br style="font-weight: bold;"><span style="font-weight: bold;">[2006-10-30 12:03:24 xend 4601] DEBUG (__init__:1072) cmdline = </span><br style="font-weight: bold;"><span style="font-weight: bold;">ip=:1.2.3.4::::eth0:dhcp
</span><br style="font-weight: bold;"><span style="font-weight: bold;">[2006-10-30 12:03:24 xend 4601] DEBUG (__init__:1072) ramdisk =</span><br style="font-weight: bold;"><span style="font-weight: bold;">[2006-10-30 12:03:24 xend 4601] DEBUG (__init__:1072) vcpus = 1
</span><br style="font-weight: bold;"><span style="font-weight: bold;">[2006-10-30 12:03:24 xend 4601] DEBUG (__init__:1072) features =</span><br style="font-weight: bold;"><span style="font-weight: bold;">[2006-10-30 12:03:24
xend.XendDomainInfo 4601] ERROR (__init__:1072) Domain</span><br style="font-weight: bold;"><span style="font-weight: bold;">construction failed</span><br style="font-weight: bold;"><span style="font-weight: bold;">Traceback (most recent call last):
</span><br style="font-weight: bold;"><span style="font-weight: bold;"> File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 195,</span><br style="font-weight: bold;"><span style="font-weight: bold;">
in create</span><br style="font-weight: bold;"><span style="font-weight: bold;"> vm.initDomain()</span><br style="font-weight: bold;"><span style="font-weight: bold;"> File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line
</span><br style="font-weight: bold;"><span style="font-weight: bold;">1363, in initDomain</span><br style="font-weight: bold;"><span style="font-weight: bold;"> raise VmError(str(exn))</span><br style="font-weight: bold;">
<span style="font-weight: bold;">VmError: (22, 'Invalid argument')</span><br style="font-weight: bold;"><span style="font-weight: bold;">[2006-10-30 12:03:24 xend.XendDomainInfo 4601] DEBUG (__init__:1072)</span><br style="font-weight: bold;">
<span style="font-weight: bold;">XendDomainInfo.destroy: domid=4</span><br style="font-weight: bold;"><span style="font-weight: bold;">[2006-10-30 12:03:24 xend.XendDomainInfo 4601] DEBUG (__init__:1072)</span><br style="font-weight: bold;">
<span style="font-weight: bold;">XendDomainInfo.destroyDomain(4)</span><br><br>Interestingly the creation of Linux domUs works.<br><br>Maybe somebody smarter than me can help at least with a clue...<br>
------=_Part_114968_5279614.1162238209537--