Subject: Unable to start 16th domU
To: None <port-xen@netbsd.org>
From: Martti Kuparinen <martti.kuparinen@iki.fi>
List: port-xen
Date: 04/18/2005 13:37:45
Hi!
While trying to create 20 domUs I got this errors with the 16th VM:
ROOT xen1:~> sh run-xen.sh 16 -c
Using config file "/xen/conf/netbsd.16".
Error: Error creating domain: [Errno 22] Invalid argument
From the logs:
[2005-04-18 13:24:19 xend] ERROR (SrvBase:162) op=create: Error creating
domain: [Errno 22] Invalid argument
Traceback (most recent call last):
File
"/usr/pkg/lib/python2.3/site-packages/xen/xend/server/SrvBase.py", line
107, in _perform
val = op_method(op, req)
File
"/usr/pkg/lib/python2.3/site-packages/xen/xend/server/SrvDomainDir.py",
line 71, in op_create
raise XendError("Error creating domain: " + str(ex))
XendError: Error creating domain: [Errno 22] Invalid argument
[2005-04-18 13:24:19 xend] INFO (XendRoot:91) EVENT> xend.console.create
[61, 18, 9618]
According to the "vnconfig -l" the vnd16 is active and I can manually
mount vnd16a to /mnt.
If I now halt one of the previously started domUs I can start this
domain just fine so it seems there's somekind of limit (15) for
concurrent domUs. Any ideas where that might be defined?
Martti
########################### run-xen.sh ###########################
#!/bin/sh
if [ $# -eq 0 ]; then
echo "Usage: `basename $0` vmid [-c]"
exit 1
fi
ID=${1}
shift
DEV=`vnconfig -l | grep vnd${ID}: | grep -v "not in use"`
if [ ! -z "${DEV}" ]; then
echo "vnd${ID} already in use"
exit 1
fi
(cd /dev && sh MAKEDEV vnd${ID})
vnconfig vnd${ID} /xen/vm/netbsd.${ID}
xm create /xen/conf/netbsd.${ID} $*