Subject: can't start domU on Xen3
To: NetBSD/xen <port-xen@NetBSD.org>
From: Joel CARNAT <joel@carnat.net>
List: port-xen
Date: 06/08/2006 19:54:35
--RASg3xLB4tUQ4RcS
Content-Type: multipart/mixed; boundary="bg08WKrSYDhXBjb5"
Content-Disposition: inline


--bg08WKrSYDhXBjb5
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline

Hi,

I can't start a NetBSD domU on Xen3.
As I've never done xen/linux before I may miss something trivial but I
don't get what (I'm only used to netbsd/xenU on netbsd/xen0 :) The doc I
followed are:
	http://julien.danjou.info/xen.html
	http://www.howtoforge.com/perfect_setup_xen3_debian

Here's what I get:
########################################################################
#  sudo xm create -c /home/xen/netbsd.conf
Using config file "/home/xen/netbsd.conf".
Error: (22, 'Invalid argument')

#  cat /home/xen/netbsd.conf
name="netbsd"
kernel="/home/xen/netbsd-INSTALL_XENU"
root="/dev/hda1"
memory=128
disk=['file:/home/xen/netbsd.img,hda1,w']

vif=[ '' ]
dhcp="on"
#ip="192.168.0.101"
#netmask="255.255.255.0"
#gateway="192.168.0.1"
hostname="netbsd.tumfatig.net"

extra="3"

########################################################################

#  file /home/xen/netbsd-INSTALL_XENU /home/xen/netbsd.img
/home/xen/netbsd-INSTALL_XENU: ELF 32-bit LSB executable, Intel 80386,
version 1 (SYSV), statically linked, stripped
/home/xen/netbsd.img:          data

#  ls -alh /home/xen/netbsd-INSTALL_XENU /home/xen/netbsd.img
-rw-r--r-- 1 root root  64M 2006-06-08 19:32 /home/xen/netbsd.img
-rw-r--r-- 1 root root 6.3M 2006-05-27 04:47
/home/xen/netbsd-INSTALL_XENU

########################################################################

The log is attached.
I'm using Xen 3.0.1, on Debian 4.0.3-3, kernel is 2.6.12.6-xen0.
Domain0 has 192Mo, domUs have 128Mo and my machine has 1Go of RAM.

Any idea?
TIA,
	Jo

--bg08WKrSYDhXBjb5
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: attachment; filename="xm.log"
Content-Transfer-Encoding: quoted-printable

[2006-06-08 19:47:05 xend.XendDomainInfo] DEBUG (XendDomainInfo:178) XendDo=
mainInfo.create([\047vm\047, [\047name\047, \047netbsd\047], [\047memory\04=
7, 128], [\047vcpus\047, 1], [\047image\047, [\047linux\047, [\047kernel\04=
7, \047/home/xen/netbsd-INSTALL_XENU\047], [\047ip\047, \047:1.2.3.4:::netb=
sd.tumfatig.net:eth0:on\047], [\047root\047, \047/dev/hda1\047], [\047args\=
047, \0473\047]]], [\047device\047, [\047vbd\047, [\047uname\047, \047file:=
/home/xen/netbsd.img\047], [\047dev\047, \047hda1\047], [\047mode\047, \047=
w\047]]], [\047device\047, [\047vif\047]]])
[2006-06-08 19:47:05 xend.XendDomainInfo] DEBUG (XendDomainInfo:284) parseC=
onfig: config is [\047vm\047, [\047name\047, \047netbsd\047], [\047memory\0=
47, 128], [\047vcpus\047, 1], [\047image\047, [\047linux\047, [\047kernel\0=
47, \047/home/xen/netbsd-INSTALL_XENU\047], [\047ip\047, \047:1.2.3.4:::net=
bsd.tumfatig.net:eth0:on\047], [\047root\047, \047/dev/hda1\047], [\047args=
\047, \0473\047]]], [\047device\047, [\047vbd\047, [\047uname\047, \047file=
:/home/xen/netbsd.img\047], [\047dev\047, \047hda1\047], [\047mode\047, \04=
7w\047]]], [\047device\047, [\047vif\047]]]
[2006-06-08 19:47:05 xend.XendDomainInfo] DEBUG (XendDomainInfo:380) parseC=
onfig: result is {\047ssidref\047: None, \047uuid\047: None, \047on_crash\0=
47: None, \047on_reboot\047: None, \047image\047: [\047linux\047, [\047kern=
el\047, \047/home/xen/netbsd-INSTALL_XENU\047], [\047ip\047, \047:1.2.3.4::=
:netbsd.tumfatig.net:eth0:on\047], [\047root\047, \047/dev/hda1\047], [\047=
args\047, \0473\047]], \047on_poweroff\047: None, \047cpus\047: None, \047n=
ame\047: \047netbsd\047, \047backend\047: [], \047vcpus\047: 1, \047cpu_wei=
ght\047: None, \047vcpu_avail\047: None, \047memory\047: 128, \047device\04=
7: [(\047vbd\047, [\047vbd\047, [\047uname\047, \047file:/home/xen/netbsd.i=
mg\047], [\047dev\047, \047hda1\047], [\047mode\047, \047w\047]]), (\047vif=
\047, [\047vif\047])], \047bootloader\047: None, \047cpu\047: None, \047max=
mem\047: None}
[2006-06-08 19:47:05 xend.XendDomainInfo] DEBUG (XendDomainInfo:1164) XendD=
omainInfo.construct: None 0
[2006-06-08 19:47:05 xend.XendDomainInfo] DEBUG (XendDomainInfo:1196) XendD=
omainInfo.initDomain: 5 1.0
[2006-06-08 19:47:05 xend] DEBUG (balloon:126) Balloon: free 682; need 129;=
 done.
[2006-06-08 19:47:05 xend] INFO (image:135) buildDomain os=3Dlinux dom=3D5 =
vcpus=3D1
[2006-06-08 19:47:05 xend] DEBUG (image:173) dom            =3D 5
[2006-06-08 19:47:05 xend] DEBUG (image:174) image          =3D /home/xen/n=
etbsd-INSTALL_XENU
[2006-06-08 19:47:05 xend] DEBUG (image:175) store_evtchn   =3D 1
[2006-06-08 19:47:05 xend] DEBUG (image:176) console_evtchn =3D 2
[2006-06-08 19:47:05 xend] DEBUG (image:177) cmdline        =3D  ip=3D:1.2.=
3.4:::netbsd.tumfatig.net:eth0:on root=3D/dev/hda1 3
[2006-06-08 19:47:05 xend] DEBUG (image:178) ramdisk        =3D=20
[2006-06-08 19:47:05 xend] DEBUG (image:179) vcpus          =3D 1
[2006-06-08 19:47:05 xend] DEBUG (image:180) features       =3D=20
[2006-06-08 19:47:05 xend.XendDomainInfo] ERROR (XendDomainInfo:190) Domain=
 construction failed
Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py", line =
183, in create
    vm.initDomain()
  File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py", line =
1225, in initDomain
    channel_details =3D self.image.createImage()
  File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line 118, in c=
reateImage
    return self.createDomain()
  File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line 137, in c=
reateDomain
    result =3D self.buildDomain()
  File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line 188, in b=
uildDomain
    features       =3D self.features)
error: (22, \047Invalid argument\047)
[2006-06-08 19:47:05 xend.XendDomainInfo] DEBUG (XendDomainInfo:1327) XendD=
omainInfo.destroy: domid=3D5
[2006-06-08 19:47:05 xend.XendDomainInfo] DEBUG (XendDomainInfo:1335) XendD=
omainInfo.destroyDomain(5)
[2006-06-08 19:47:05 xend] ERROR (xmlrpclib2:124) (22, \047Invalid argument=
\047)
Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/xen/util/xmlrpclib2.py", line 103,=
 in _marshaled_dispatch
    response =3D self._dispatch(method, params)
  File "/usr/lib/python2.3/SimpleXMLRPCServer.py", line 407, in _dispatch
    return func(*params)
  File "/usr/lib/python2.3/site-packages/xen/xend/server/XMLRPCServer.py", =
line 63, in domain_create
    info =3D XendDomain.instance().domain_create(config)
  File "/usr/lib/python2.3/site-packages/xen/xend/XendDomain.py", line 227,=
 in domain_create
    dominfo =3D XendDomainInfo.create(config)
  File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py", line =
183, in create
    vm.initDomain()
  File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py", line =
1225, in initDomain
    channel_details =3D self.image.createImage()
  File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line 118, in c=
reateImage
    return self.createDomain()
  File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line 137, in c=
reateDomain
    result =3D self.buildDomain()
  File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line 188, in b=
uildDomain
    features       =3D self.features)
error: (22, \047Invalid argument\047)


--bg08WKrSYDhXBjb5--

--RASg3xLB4tUQ4RcS
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFEiGRb0/VH7L7F7Y4RAmhCAJoDml33wZG9SZif18kR7rtAix0CpwCgiPgI
ioeLynTJKKFot/kfjlBdQuo=
=PbKn
-----END PGP SIGNATURE-----

--RASg3xLB4tUQ4RcS--