Subject: Cannot see boot messages with DomU
To: None <port-xen@netbsd.org>
From: John Hayward <John.C.Hayward@wheaton.edu>
List: port-xen
Date: 02/10/2008 22:05:45
Hi Xen People,
    I am having no luck getting any messages on the console while 
attempting to create a DOMU under xen.  I have NetBSD-4.0 and the
xentools from Q4 pkgsrc.

Here is what I get when I attempt:
====
newserver: {67} pwd
/usr/pkg/etc/xen
newserver: {68} ls
netbd           scripts         vif-bridge      xend-config.sxp
newserver: {69} xm create -c netbd
Using config file "./netbd".
newserver: {70} Error: Device 0 (vif) could not be connected. Hotplug 
scripts not working.
====

It takes about 2 minuites between when I xm create and when the error
occures.

Any suggestions on what to do nex t would be appreciated.

Below is some auxillary info.

During that time on another xterm I do see:
===
newserver: {13} xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0   259     1     r-----   1755.3
netbd                                        3   256     1     --p---      0.0
===

dmesg reveals:
====
xvif1.0: Ethernet address aa:00:00:51:02:f0
xvif1.0: disconnecting
xvif2.0: Ethernet address aa:00:00:51:02:f0
xvif2.0: disconnecting
xvif3.0: Ethernet address aa:00:00:51:02:f0
xvif3.0: disconnecting
====

My netbd config file has:
====
kernel = "/netbsd-INSTALL_XEN3_DOMU"
memory = 256
name = "netbd"
#cpu = -1   # leave to Xen to pick
#nics = 1
vif = [ 'mac=aa:00:00:50:02:f0, bridge=bridge0' ]
disk = [ 'phy:/dev/wd0f,0x01,w', 'phy:/dev/cd0a,0x2,r' ]
root = "/dev/wd0a"
===

/dev/wd0f is not mounted and is available

The bridge is up and running:
newserver: {75} ifconfig bridge0
bridge0: flags=41<UP,RUNNING> mtu 1500

The DOMU kernel taken from 4.0 release has a long listing of:
-rw-r--r--  1 root   users   6784880 Dec 16 04:00 /netbsd-INSTALL_XEN3_DOMU

The /var/log/xen/xend.log has the following entries arround the failure:
====
[2008-02-10 21:50:42 4774] DEBUG (DevController:119) DevController: writing {'domain': 'netbd', 'protocol': 'vt100', 'uuid': '42ba9e8e-87eb-7998-b62b-a40e9ccaf407', 'frontend': '/local/domain/5/device/console/0', 'state': '1', 'location': '2', 'online': '1', 'frontend-id': '5'} to /local/domain/0/backend/console/5/0.
[2008-02-10 21:50:42 4774] DEBUG (XendDomainInfo:991) XendDomainInfo.handleShutdownWatch
[2008-02-10 21:50:42 4774] DEBUG (DevController:150) Waiting for devices vif.
[2008-02-10 21:50:42 4774] DEBUG (DevController:155) Waiting for 0.
[2008-02-10 21:50:42 4774] DEBUG (DevController:577) hotplugStatusCallback /local/domain/0/backend/vif/5/0/hotplug-status.
[2008-02-10 21:52:22 4774] DEBUG (XendDomainInfo:1753) XendDomainInfo.destroy: domid=5
====

Any suggestions on what to do next would be appreciated.

johnh...