Subject: Xen3 domU crashes
To: NetBSD/xen <port-xen@NetBSD.org>
From: Martti Kuparinen <martti.kuparinen@iki.fi>
List: port-xen
Date: 05/08/2007 10:38:36
I'm continuing my Xen 2 to Xen 3 transtition project but I can't start even a 
simple domU. Here's what I've done so far:

(sources updated this morning so I have e.g. IPF 4.1.20)

ROOT xen3:~> uname -srm
NetBSD 4.0_BETA2 i386

ROOT xen3:~> pkg_info | grep xen
xenkernel30-3.0.4   Xen3 Kernel
xentools30-3.0.4    Userland Tools for Xen
xentools30-hvm-3.0.4nb1 Tools for Virtual Machine Extensions support in Xen

ROOT xen3:~> xm list
Name                                      ID   Mem VCPUs      State   Time(s)
Domain-0                                   0   256     1     r-----     16.2

ROOT xen3:~> ps axw | grep xen
   15 ?     DK   0:00.00 [xenwatch]
   16 ?     DK   0:00.00 [xenbus]
  110 ?     S    0:00.00 xenstored --pid-file /var/run/xenstore.pid
  114 ?     I    0:00.00 /usr/pkg/bin/python2.4 /usr/pkg/sbin/xend start
  115 ?     Ia   0:00.00 xenconsoled
  116 ?     Ia   0:00.00 /usr/pkg/bin/python2.4 /usr/pkg/sbin/xend start
  184 ?     Isa  0:00.00 /usr/pkg/sbin/xenbackendd

ROOT xen3:~> ls -lh /xen/kernel/ /xen/vm/
/xen/kernel/:
total 5.3M
-r--r--r--  1 root  wheel  1.7M May  8 09:49 netbsd-INSTALL_XEN3_DOMU.gz
-rwxr-xr-x  1 root  wheel  1.8M May  8 09:41 netbsd-XEN3_DOMU.gz
-rwxr-xr-x  1 root  wheel  1.8M May  8 09:45 netbsd-XEN3_DOMU_IPSEC.gz

/xen/vm/:
total 1.0G
-rw-r--r--  1 root  wheel  1.0G May  8 09:52 netbsd1

Here's my configuration file:

#kernel = "/xen/kernel/netbsd-XEN3_DOMU.gz"
kernel = "/xen/kernel/netbsd-INSTALL_XEN3_DOMU.gz"
memory = 256
name = "netbsd1"
vif = [ 'mac=aa:00:00:99:99:01, bridge=bridge2' ]
disk = [ 'file:/xen/vm/netbsd1,0x1,w' ]
extra = ""

Now, I'm trying to start the domain with

ROOT xen3:~> xm create netbsd1 -c
Using config file "/root/netbsd1".
Started domain netbsd1
xenconsole: Could not read tty from store: No such file or directory

ROOT xen3:~> xm list
Name                                      ID   Mem VCPUs      State   Time(s)
Domain-0                                   0   256     1     r-----     17.4

This is from /var/log/xen/xend.log

[2007-05-08 10:17:28 xend 116] DEBUG (XendDomain:428) Adding Domain: 9
[2007-05-08 10:17:28 xend.XendDomainInfo 116] WARNING (XendDomainInfo:950) 
Domain has crashed: name=netbsd1 id=9.
[2007-05-08 10:17:28 xend.XendDomainInfo 116] ERROR (XendDomainInfo:1079) VM 
netbsd1 restarting too fast (0.460545 seconds since the last restart).  Refusing 
to restart to avoid loops.