Skip to contentSkip to conversation

Install NetBSD guest on Linux host?

DISCUSSION Gerd Hoffmann 2 participants 3 messages Jun 14, 2006

lore
Share & tools
lore
#0 lore raw

Hi,

xen3 domU support has been merged to the netbsd-3 branch according to netbsd.org. So I went to netbsd-daily (.../NetBSD-daily/netbsd-3/200606090000Z/i386/binary/), fetched the bits and tried to boot the installer kernel. Didn't work. Any idea what I'm doing wrong?

my config file looks like this:

------------- cut here ---------------

# general
name    = "netbsd";
memory  = 128;
# booting
kernel  = "/vm/netbsd/netbsd-INSTALL_XEN3_U.gz";
on_crash = "destroy";
# virtual harddisk
disk = [ 'phy:xen/netbsd,0,w' ];
# virtual network
vif = [ 'mac=aa:00:62:73:64:00' ];
dhcp = "dhcp";

------------- cut here ---------------

Trying to boot results in this:

------------- cut here ---------------
Started domain netbsd
[ 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 0xc021f2eb: leave
?(c07490c0,7ff0,d,c0794ea4,c022cb0f) at 0xc021f2eb ?(c0258d9b,0,1fa57a4,14041a63,c0794f0c) at 0xc01c9cb2 ?(1,0,8d80,1,1) at 0xc022cb0f ?(c07658a0,c09e9000,80fb000,7,13) at 0xc02289d9 ?(c0748d80,1000,0,c075f800,c0794f74) at 0xc0210fc5 ?(c09e8000,fbc00000,c0794f68,c0794f6c,c09e8000) at 0xc022501b ?(c024f8d2,c0247c60,c076390c,1,4000) at 0xc02106fc ?(0,0,0,0,0) at 0xc01a5677

ds          0x11
es          0x11
fs          0x31
gs          0x11
edi         0xc0258d9b
esi         0x100
ebp         0xc0794e78
ebx         0xc0794e98
edx         0xc079a000
ecx         0
eax         0xc079a000
eip         0xc021f2eb
cs          0x9
eflags      0x202

--db_more--
------------- cut here ---------------

xen says (recent -testing tree):
(XEN) DOM9: (file=mm.c, line=1082) Bad L1 flags 800

The "Kernel symbol table missing!" message looks suspious to me as there is a special loadbsdsymtab() function in the domain builder, so it should be there, no?

cheers,

Gerd

Signature · 2 lines
Gerd Hoffmann <[email protected]>
http://www.suse.de/~kraxel/julika-dora.jpeg
#1 lore raw
Quoted 5 lines · Gerd Hoffmann

xen3 domU support has been merged to the netbsd-3 branch according to netbsd.org. So I went to netbsd-daily (.../NetBSD-daily/netbsd-3/200606090000Z/i386/binary/), fetched the bits and tried to boot the installer kernel. Didn't work. Any idea what I'm doing wrong?

You can't run a debug build of Xen because we steal bit 11 of PTEs to indicate grant-table mappings. But that bit is actually used by NetBSD.

It might be time to remove that debugging, or at least not make it dependent on debug=y.

-- Keir

#2 lore raw
Quoted 2 lines

You can't run a debug build of Xen because we steal bit 11 of PTEs to indicate grant-table mappings. But that bit is actually used by NetBSD.

Ah, ok. A non-debug build boots netbsd much better and the install actually starts ;)

Now the kernel crashes when the installer attempts to write the disklabel :-(

Guess there is something wrong with the disk configuration.

I tries first with
disk = [ 'phy:xen/netbsd,wd0d,w' ];

which I picked from the xen2 netbsd howto. Building the domain fails, xend gives me this:

[2006-06-14 17:24:28 xend] ERROR (xmlrpclib2:124) int argument required Traceback (most recent call last):
File "/usr/lib/python/xen/util/xmlrpclib2.py", line 103, in
_marshaled_dispatch
response = self._dispatch(method, params)
File "/usr/lib/python2.4/SimpleXMLRPCServer.py", line 406, in _dispatch
return func(*params)
File "/usr/lib/python/xen/xend/server/XMLRPCServer.py", line 63, in
domain_create
info = XendDomain.instance().domain_create(config)
File "/usr/lib/python/xen/xend/XendDomain.py", line 227, in domain_create
dominfo = XendDomainInfo.create(config)
File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 183, in create
vm.initDomain()
File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 1233, in
initDomain
self.createDevices()
File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 1393, in
createDevices
self.createDevice(n, c)
File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 1009, in
createDevice
return self.getDeviceController(deviceClass).createDevice(devconfig)
File "/usr/lib/python/xen/xend/server/DevController.py", line 80, in
createDevice
(devid, back, front) = self.getDeviceDetails(config)
File "/usr/lib/python/xen/xend/server/blkif.py", line 59, in
getDeviceDetails

    front = { 'virtual-device' : "%i" % devid }

TypeError: int argument required

Now I have
disk = [ 'phy:xen/netbsd,0,w' ];

which I think isn't correct too, but it boots the guest at least ...

cheers,
Gerd

Signature · 2 lines
Gerd Hoffmann <[email protected]>
http://www.suse.de/~kraxel/julika-dora.jpeg