Subject: xen3: my netbsd domU won't be created
To: NetBSD/i386 <port-i386@NetBSD.org>
From: None <joel@carnat.net>
List: port-i386
Date: 12/22/2006 00:28:17
Hi,

I'm using NetBSD 4.0_BETA2/xen3 and my netbsd domU can't be created.

I expect a conf parameter to be wrong but can't get which.
I used a xen2 config file and modified it according to the examples files
provided with the xen3 package.

I try to create it using:
# xm create /home/xen/netbsd.conf
Using config file "/home/xen/netbsd.conf".
/usr/pkg/lib/python2.4/xmllib.py:9: DeprecationWarning: The xmllib module
is obsolete.  Use xml.sax instead.
  warnings.warn("The xmllib module is obsolete.  Use xml.sax instead.",
DeprecationWarning)
Error: (22, 'Invalid argument')
# cat /home/xen/netbsd.conf
name = "netbsd"

cpu = 1
memory = 256
kernel = "/home/xen/netbsd/netbsd-INSTALL_XEN3_DOMU"
#kernel = "/home/xen/netbsd/netbsd"

#nics = 1
vif = [ 'mac=aa:00:00:50:02:00, bridge=bridge0' ]

disk = [ 'file:/home/xen/netbsd/disk,0x1,w' ]
#root = "/dev/wd0d"

#autorestart = True
extra = ""
# file /home/xen/netbsd/netbsd-INSTALL_XEN3_DOMU
/home/xen/netbsd/netbsd-INSTALL_XEN3_DOMU: ELF 32-bit LSB executable,
Intel 80386, version 1 (SYSV), statically linked, not stripped
# file /home/xen/netbsd/disk
/home/xen/netbsd/disk: data
# xm log
[2006-12-21 22:20:10 xend.XendDomainInfo 172] DEBUG (XendDomainInfo:190)
XendDomainInfo.create([\047vm\047, [\047name\047, \047netbsd\047],
[\047memory\047, 256], [\047vcpus\047, 1], [\047cpu\047, 1],
[\047image\047, [\047linux\047, [\047kernel\047,
\047/home/xen/netbsd/netbsd-INSTALL_XEN3_DOMU\047]]], [\047device\047,
[\047vbd\047, [\047uname\047, \047file:/home/xen/netbsd/disk\047],
[\047dev\047, \0470x1\047], [\047mode\047, \047w\047]]], [\047device\047,
[\047vif\047, [\047bridge\047, \047bridge0\047], [\047mac\047,
\047aa:00:00:50:02:00\047]]]])
[2006-12-21 22:20:10 xend.XendDomainInfo 172] DEBUG (XendDomainInfo:296)
parseConfig: config is [\047vm\047, [\047name\047, \047netbsd\047],
[\047memory\047, 256], [\047vcpus\047, 1], [\047cpu\047, 1],
[\047image\047, [\047linux\047, [\047kernel\047,
\047/home/xen/netbsd/netbsd-INSTALL_XEN3_DOMU\047]]], [\047device\047,
[\047vbd\047, [\047uname\047, \047file:/home/xen/netbsd/disk\047],
[\047dev\047, \0470x1\047], [\047mode\047, \047w\047]]], [\047device\047,
[\047vif\047, [\047bridge\047, \047bridge0\047], [\047mac\047,
\047aa:00:00:50:02:00\047]]]]
[2006-12-21 22:20:10 xend.XendDomainInfo 172] DEBUG (XendDomainInfo:395)
parseConfig: result is {\047shadow_memory\047: None, \047uuid\047: None,
\047on_crash\047: None, \047on_reboot\047: None, \047localtime\047: None,
\047image\047: [\047linux\047, [\047kernel\047,
\047/home/xen/netbsd/netbsd-INSTALL_XEN3_DOMU\047]], \047on_poweroff\047:
None, \047bootloader_args\047: None, \047cpus\047: [1], \047name\047:
\047netbsd\047, \047backend\047: [], \047vcpus\047: 1, \047cpu_weight\047:
None, \047features\047: None, \047vcpu_avail\047: None, \047memory\047:
256, \047device\047: [(\047vbd\047, [\047vbd\047, [\047uname\047,
\047file:/home/xen/netbsd/disk\047], [\047dev\047, \0470x1\047],
[\047mode\047, \047w\047]]), (\047vif\047, [\047vif\047, [\047bridge\047,
\047bridge0\047], [\047mac\047, \047aa:00:00:50:02:00\047]])],
\047bootloader\047: None, \047cpu\047: 1, \047maxmem\047: None}
[2006-12-21 22:20:10 xend.XendDomainInfo 172] DEBUG (XendDomainInfo:1253)
XendDomainInfo.construct: None
[2006-12-21 22:20:10 xend.XendDomainInfo 172] DEBUG (XendDomainInfo:1285)
XendDomainInfo.initDomain: 6 1.0
[2006-12-21 22:20:10 xend.XendDomainInfo 172] ERROR (XendDomainInfo:202)
Domain construction failed
Traceback (most recent call last):
  File "/usr/pkg/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py",
line 195, in create
    vm.initDomain()
  File "/usr/pkg/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py",
line 1363, in initDomain
    raise VmError(str(exn))
VmError: (22, \047Invalid argument\047)
[2006-12-21 22:20:10 xend.XendDomainInfo 172] DEBUG (XendDomainInfo:1449)
XendDomainInfo.destroy: domid=6
[2006-12-21 22:20:10 xend.XendDomainInfo 172] DEBUG (XendDomainInfo:1457)
XendDomainInfo.destroyDomain(6)

any idea ?
TIA,
  Jo