Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 May 2008 12:46:31 +1000
From:      Peter Jeremy <peter.jeremy@alcatel-lucent.com.au>
To:        freebsd-sun4v@freebsd.org
Subject:   Running FreeBSD as a sun4v guest
Message-ID:  <20080516024631.GA13677@pjdesk.au.alcatel-lucent.com>

next in thread | raw e-mail | index | archive | help

--3MwIy2ne0vdjdPXF
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I've tried booting the sun4v snapshot in a sun4v guest and it looks
like FreeBSD doesn't support either the virtual disk or virtual
network.  I would be interested in getting this going but the entire
sun4v port seems to have stalled.

I've noticed that the netboot is not very reliable but I'm need to
study network traces to work out whether the fault is with the
FreeBSD loader(8) or the Sun I'm using as a boot server.

FWIW, the boot looks like:
{0} ok boot net

Sun Fire T200, No Keyboard
Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
OpenBoot 4.28.1, 896 MB memory available, Serial #66631397.
Ethernet address 0:14:4f:f8:b6:e5, Host ID: 83f8b6e5.

Boot device: /virtual-devices@100/channel-devices@200/network@0  File and a=
rgs:
Requesting Internet Address for 0:14:4f:f9:f2:93
Consoles: Open Firmware console

Booting with sun4v support.

FreeBSD/sparc64 bootstrap loader, Revision 1.0
(root@freebsd9.cimlogic.com.au, Fri Nov 10 04:56:06 UTC 2006)
bootpath=3D"/virtual-devices@100/channel-devices@200/network@0"
boot: ethernet address: 00:14:4f:f9:f2:93
net_open: server addr: 139.188.91.249
net_open: server path: /in/OS_discs/CD_FreeBSD7
Loading /boot/defaults/loader.conf
Warning: unable to open file /boot/loader.conf.local
/boot/kernel/kernel data=3D0x3eac08+0x68be8 syms=3D[0x8+0x582f0+0x8+0x4a707]
mfsroot...ok

Hit [Enter] to boot immediately, or any other key for command prompt.


Type '?' for a list of commands, 'help' for more detailed help.
OK show
boot.netif.gateway=3D0.0.0.0
boot.netif.hwaddr=3D00:14:4f:f9:f2:93
boot.netif.ip=3D139.188.91.178
boot.netif.netmask=3D255.255.255.0
boot.nfsroot.nfshandle=3DX0154001e00000002000a0000000ef5f5621c993f000a00000=
000427c12a2b37cX
boot.nfsroot.path=3D/in/OS_discs/CD_FreeBSD7
boot.nfsroot.server=3D139.188.91.249
boot_verbose=3D
bootfile=3Dkernel
console=3Dofw
currdev=3D/virtual-devices@100/channel-devices@200/network@0
interpret=3DOK
kernel=3Dkernel
kernel_options=3D
kernelname=3D/boot/kernel/kernel
loaddev=3D/virtual-devices@100/channel-devices@200/network@0
mac_ifoff=3DNO
module_path=3D/boot/kernel;/boot/modules
prompt=3D${interpret}
OK boot -v
nothing to autoload yet.
jumping to kernel entry at 0xc0050000.
tick_freq=3D1200000000 hz=3D100 tick_increment=3D12000000
cpu0: UltraSparc T1 Processor (1200.00 MHz CPU)
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2006 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.0-CURRENT #11: Sun Nov 12 12:40:48 EST 2006
    root@freebsd9.cimlogic.com.au:/usr/obj/usr/src/sys/GENERIC
/usr/src/sys/vm/vm_init.c(117):
/usr/src/sys/vm/vm_init.c(119):
Using 32 colors for the VM-PQ tuning (3072, 12)
/usr/src/sys/vm/vm_page.c(257):
/usr/src/sys/vm/vm_page.c(264):
/usr/src/sys/vm/vm_page.c(267):
/usr/src/sys/vm/vm_page.c(269):
/usr/src/sys/vm/vm_page.c(271):
/usr/src/sys/vm/vm_page.c(297): nblocks 2
/usr/src/sys/vm/vm_page.c(303): npages 108367
/usr/src/sys/vm/vm_page.c(332): clear all page structures
/usr/src/sys/vm/vm_page.c(360): construct the free queues:
/usr/src/sys/vm/vm_page.c(364): 0x902c000 - 0x3d2ca000
/usr/src/sys/vm/vm_page.c(364): 0x3f000000 - 0x3fc00000
/usr/src/sys/vm/vm_page.c(375):
/usr/src/sys/vm/vm_page.c(377):
/usr/src/sys/vm/vm_init.c(121):
/usr/src/sys/vm/vm_init.c(126):
/usr/src/sys/vm/vm_init.c(128):
/usr/src/sys/vm/vm_init.c(130):
/usr/src/sys/vm/vm_init.c(132):
/usr/src/sys/vm/vm_init.c(134):
/usr/src/sys/vm/vm_init.c(136):
Preloaded elf kernel "/boot/kernel/kernel" at 0xc08fa000.
Preloaded mfs_root "/boot/mfsroot" at 0xc08fa140.
Timecounter "tick" frequency 1200000000 Hz quality 1000
real memory  =3D 939524096 (896 MB)
avail memory =3D 882475008 (841 MB)
machine: SUNW,Sun-Fire-T200
4 cpus: UltraSparc T1 Processor (1200.00 MHz CPU)
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
random: <entropy source, Software, Yarrow>
mem: <memory>
nfslock: pseudo-device
null: <null device, zero device>
openfirm: <Open Firmware control device>
nexus0: <Open Firmware Nexus device>
vnex0: <virtual nexus device> irq 17,33,34,35,36,37,38,39 on nexus0
vnex0: <flashprom> type unknown (no driver attached)
vnex0: <ncp> type unknown (no driver attached)
hvcn0: <sun4v virtual console> on vnex0
hvcn0: couldn't set up irq
device_attach: hvcn0 attach returned 2
vnex0: <network> type network (no driver attached)
vnex0: <network> type network (no driver attached)
vnex0: <network> type network (no driver attached)
vnex0: <network> type network (no driver attached)
vnex0: <disk> type block (no driver attached)
procfs registered
initalizing intr_countp
Timecounters tick every 10.000 msec
lo0: bpf attached
nfs_diskless: no interface
mp_ncpus=3D4
curcpu 3 trap_trace_entry 0xc0374a00 TRAP_TRACE_ENTRIES 256
AP: #3
curcpu 2 trap_trace_entry 0xc0370a00 TRAP_TRACE_ENTRIES 256
AP: #2
curcpu 1 trap_trace_entry 0xc036ca00 TRAP_TRACE_ENTRIES 256
AP: #1
md0: Preloaded image </boot/mfsroot> 4194304 bytes at 0xc04f61f8
Trying to mount root from ufs:/dev/md0
warning: no time-of-day clock registered, system time will not be set accur=
ately
start_init: trying /sbin/init
start_init: trying /sbin/oinit
start_init: trying /sbin/init.bak
start_init: trying /rescue/init
start_init: trying /stand/sysinstall
/stand/sysinstall running as init on serial console

These are the predefined terminal types available to
sysinstall when running stand-alone.  Please choose the
closest match for your particular terminal.

1 ...................... Standard ANSI terminal.
2 ...................... VT100 or compatible terminal.
3 ...................... FreeBSD system console (color).
4 ...................... FreeBSD system console (monochrome).

5 ...................... xterm terminal emulator.

Your choice: (1-5)

--=20
Peter Jeremy

--3MwIy2ne0vdjdPXF
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)

iEYEARECAAYFAkgs9YcACgkQ/opHv/APuIeskgCdEPdc4qW0EAXSFexhxCrnVFPI
iDMAoMOPztQ8A/nT1re3loYRW5dbV6sv
=DntH
-----END PGP SIGNATURE-----

--3MwIy2ne0vdjdPXF--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080516024631.GA13677>