Subject: NetBSD 3 domU under Fedora core 5 : HYPERVISOR_mmu_update failed
To: None <port-xen@netbsd.org>
From: Eric Delcamp <eric.delcamp@free.fr>
List: port-xen
Date: 07/26/2006 19:44:53
Hi,

I have a problem to make a NetBSD domU under a FC5 xen dom0. Here is the 
info :

********* the command :
[root@xenroot xen]# xm create -c webserver
Using config file "webserver".
Started domain bsdweb
[ Kernel symbol table missing! ]
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

panic: HYPERVISOR_mmu_update failed

Stopped in pid 0.1 () at        0xc021f19f:     leave
?(c07494e0,7ff0,d,c0794ea4,c022c9b7) at 0xc021f19f
?(c0259014,0,e4577a4,c9f3a63,c0794f0c) at 0xc01c9b66
?(1,0,91a0,1,1) at 0xc022c9b7
?(c0765cc0,c09e9000,80fb000,7,13) at 0xc0228881
?(c07491a0,1000,0,c075fc20,c0794f74) at 0xc0210e79
?(c09e8000,fbc00000,c0794f68,c0794f6c,c09e8000) at 0xc0224ec3
?(c024fabf,c0247de0,c0763d2c,1,4000) at 0xc02105b0
?(0,0,0,0,0) at 0xc01a552b
ds          0x11
es          0x11
fs          0x31
gs          0x11
edi         0xc0259014
esi         0x100
ebp         0xc0794e78
ebx         0xc0794e98
edx         0xc079a000
ecx         0
eax         0xc079a000
eip         0xc021f19f
cs          0x9
eflags      0x202

********* xend.log :

[2006-07-26 19:30:24 xend.XendDomainInfo] DEBUG (XendDomainInfo:185) 
XendDomainInfo.create(['vm', ['name', 'bsdweb'], ['memory', 128], 
['vcpus', 1], ['image', ['linux', ['kernel', 
'/xen/fs/netbsd-INSTALL_XEN3_DOMU'], ['ip', ':1.2.3.4::::eth0:dhcp'], 
['root', '/dev/hda1 ro']]], ['device', ['vbd', ['uname', 
'file:/xen/fs/netbsd-xen-web.img'], ['dev', 'hda1'], ['mode', 'w']]], 
['device', ['vif', ['mac', '00:10:5A:E2:8B:79']]]])
[2006-07-26 19:30:24 xend.XendDomainInfo] DEBUG (XendDomainInfo:291) 
parseConfig: config is ['vm', ['name', 'bsdweb'], ['memory', 128], 
['vcpus', 1], ['image', ['linux', ['kernel', 
'/xen/fs/netbsd-INSTALL_XEN3_DOMU'], ['ip', ':1.2.3.4::::eth0:dhcp'], 
['root', '/dev/hda1 ro']]], ['device', ['vbd', ['uname', 
'file:/xen/fs/netbsd-xen-web.img'], ['dev', 'hda1'], ['mode', 'w']]], 
['device', ['vif', ['mac', '00:10:5A:E2:8B:79']]]]
[2006-07-26 19:30:24 xend.XendDomainInfo] DEBUG (XendDomainInfo:390) 
parseConfig: result is {'uuid': None, 'on_crash': None, 'on_reboot': 
None, 'image': ['linux', ['kernel', '/xen/fs/netbsd-INSTALL_XEN3_DOMU'], 
['ip', ':1.2.3.4::::eth0:dhcp'], ['root', '/dev/hda1 ro']], 
'on_poweroff': None, 'bootloader_args': None, 'cpus': None, 'name': 
'bsdweb', 'backend': [], 'vcpus': 1, 'cpu_weight': None, 'features': 
None, 'vcpu_avail': None, 'memory': 128, 'device': [('vbd', ['vbd', 
['uname', 'file:/xen/fs/netbsd-xen-web.img'], ['dev', 'hda1'], ['mode', 
'w']]), ('vif', ['vif', ['mac', '00:10:5A:E2:8B:79']])], 'bootloader': 
None, 'cpu': None, 'maxmem': None}
[2006-07-26 19:30:24 xend.XendDomainInfo] DEBUG (XendDomainInfo:1216) 
XendDomainInfo.construct: None
[2006-07-26 19:30:24 xend.XendDomainInfo] DEBUG (XendDomainInfo:1248) 
XendDomainInfo.initDomain: 3 1.0
[2006-07-26 19:30:24 xend] DEBUG (balloon:128) Balloon: free 746; need 
129; done.
[2006-07-26 19:30:24 xend] INFO (image:134) buildDomain os=linux dom=3 
vcpus=1
[2006-07-26 19:30:24 xend] DEBUG (image:177) dom            = 3
[2006-07-26 19:30:24 xend] DEBUG (image:178) image          = 
/xen/fs/netbsd-INSTALL_XEN3_DOMU
[2006-07-26 19:30:24 xend] DEBUG (image:179) store_evtchn   = 1
[2006-07-26 19:30:24 xend] DEBUG (image:180) console_evtchn = 2
[2006-07-26 19:30:24 xend] DEBUG (image:181) cmdline        =  
ip=:1.2.3.4::::eth0:dhcp root=/dev/hda1 ro
[2006-07-26 19:30:24 xend] DEBUG (image:182) ramdisk        =
[2006-07-26 19:30:24 xend] DEBUG (image:183) vcpus          = 1
[2006-07-26 19:30:24 xend] DEBUG (image:184) features       =
[2006-07-26 19:30:24 xend] DEBUG (blkif:24) exception looking up device 
number for hda1: [Errno 2] No such file or directory: '/dev/hda1'
[2006-07-26 19:30:24 xend] DEBUG (DevController:110) DevController: 
writing {'virtual-device': '769', 'backend-id': '0', 'state': '1', 
'backend': '/local/domain/0/backend/vbd/3/769'} to 
/local/domain/3/device/vbd/769.
[2006-07-26 19:30:24 xend] DEBUG (DevController:112) DevController: 
writing {'domain': 'bsdweb', 'frontend': 
'/local/domain/3/device/vbd/769', 'dev': 'hda1', 'state': '1', 'params': 
'/xen/fs/netbsd-xen-web.img', 'mode': 'w', 'frontend-id': '3', 'type': 
'file'} to /local/domain/0/backend/vbd/3/769.
[2006-07-26 19:30:24 xend] DEBUG (DevController:110) DevController: 
writing {'backend-id': '0', 'mac': '00:10:5A:E2:8B:79', 'handle': '0', 
'state': '1', 'backend': '/local/domain/0/backend/vif/3/0'} to 
/local/domain/3/device/vif/0.
[2006-07-26 19:30:24 xend] DEBUG (DevController:112) DevController: 
writing {'mac': '00:10:5A:E2:8B:79', 'state': '1', 'handle': '0', 
'script': '/etc/xen/scripts/vif-bridge', 'frontend-id': '3', 'domain': 
'bsdweb', 'frontend': '/local/domain/3/device/vif/0'} to 
/local/domain/0/backend/vif/3/0.
[2006-07-26 19:30:24 xend.XendDomainInfo] DEBUG (XendDomainInfo:701) 
Storing VM details: {'uuid': 'd159ed33-869f-388f-d053-4f2f00b703fa', 
'on_reboot': 'restart', 'start_time': '1153935024.91', 'on_poweroff': 
'destroy', 'name': 'bsdweb', 'vcpus': '1', 'vcpu_avail': '1', 'memory': 
'128', 'on_crash': 'restart', 'image': "(linux (kernel 
/xen/fs/netbsd-INSTALL_XEN3_DOMU) (ip :1.2.3.4::::eth0:dhcp) (root 
'/dev/hda1 ro'))", 'maxmem': '128'}
[2006-07-26 19:30:24 xend.XendDomainInfo] DEBUG (XendDomainInfo:736) 
Storing domain details: {'console/ring-ref': '58468', 'console/port': 
'2', 'name': 'bsdweb', 'console/limit': '1048576', 'vm': 
'/vm/d159ed33-869f-388f-d053-4f2f00b703fa', 'domid': '3', 
'cpu/0/availability': 'online', 'memory/target': '131072', 
'store/ring-ref': '58469', 'store/port': '1'}
[2006-07-26 19:30:24 xend.XendDomainInfo] DEBUG (XendDomainInfo:919) 
XendDomainInfo.handleShutdownWatch
[2006-07-26 19:30:25 xend] DEBUG (DevController:143) Waiting for devices 
vif.
[2006-07-26 19:30:25 xend] DEBUG (DevController:149) Waiting for 0.
[2006-07-26 19:30:25 xend] DEBUG (DevController:449) 
hotplugStatusCallback /local/domain/0/backend/vif/3/0/hotplug-status.
[2006-07-26 19:30:25 xend] DEBUG (DevController:449) 
hotplugStatusCallback /local/domain/0/backend/vif/3/0/hotplug-status.
[2006-07-26 19:30:25 xend] DEBUG (DevController:463) 
hotplugStatusCallback 1.
[2006-07-26 19:30:25 xend] DEBUG (DevController:143) Waiting for devices 
usb.
[2006-07-26 19:30:25 xend] DEBUG (DevController:143) Waiting for devices 
vbd.
[2006-07-26 19:30:25 xend] DEBUG (DevController:149) Waiting for 769.
[2006-07-26 19:30:25 xend] DEBUG (DevController:449) 
hotplugStatusCallback /local/domain/0/backend/vbd/3/769/hotplug-status.
[2006-07-26 19:30:25 xend] DEBUG (DevController:463) 
hotplugStatusCallback 1.
[2006-07-26 19:30:25 xend] DEBUG (DevController:143) Waiting for devices 
irq.
[2006-07-26 19:30:25 xend] DEBUG (DevController:143) Waiting for devices 
pci.
[2006-07-26 19:30:25 xend] DEBUG (DevController:143) Waiting for devices 
ioports.
[2006-07-26 19:30:25 xend] DEBUG (DevController:143) Waiting for devices 
vtpm.
[2006-07-26 19:30:25 xend] INFO (XendDomain:365) Domain bsdweb (3) unpaused.
[2006-07-26 19:31:19 xend.XendDomainInfo] DEBUG (XendDomainInfo:1397) 
XendDomainInfo.destroy: domid=3
[2006-07-26 19:31:19 xend.XendDomainInfo] DEBUG (XendDomainInfo:1405) 
XendDomainInfo.destroyDomain(3)

******** config file :
kernel = "/xen/fs/netbsd-INSTALL_XEN3_DOMU"
memory = 128
name = "bsdweb"
vif = [ 'mac=00:10:5a;e2:8b:79' ]
disk = ['file:/xen/fs/netbsd-xen-web.img,hda1,w']
root = "/dev/hda1 ro"
dhcp = "dhcp"

********** versions :
- the NetBSD kernel is either grabbed from latest mbouyer ftp or 
netbsd-daily netbsd-3
- I think xen is the latest 3.0.2
- uname -a :
Linux xenroot.no.net 2.6.17-1.2157_FC5xen0 #1 SMP Wed Jul 12 00:28:36 
EDT 2006 i686 athlon i386 GNU/Linux
- xm info :
host                   : xenroot.no.net
release                : 2.6.17-1.2157_FC5xen0
version                : #1 SMP Wed Jul 12 00:28:36 EDT 2006
machine                : i686
nr_cpus                : 1
nr_nodes               : 1
sockets_per_node       : 1
cores_per_socket       : 1
threads_per_core       : 1
cpu_mhz                : 1294
hw_caps                : 
00000000:00000000:0383fbff:c1c3fbff:00000000:00000020
total_memory           : 1024
free_memory            : 746
xen_major              : 3
xen_minor              : 0
xen_extra              : -unstable
xen_caps               : xen-3.0-x86_32
platform_params        : virt_start=0xfc000000
xen_changeset          : unavailable
cc_compiler            : gcc version 4.1.1 20060525 (Red Hat 4.1.1-1)
cc_compile_by          : brewbuilder
cc_compile_domain      : build.redhat.com
cc_compile_date        : Tue Jul 11 22:50:30 EDT 2006