nmdm doesn't create entries in /dev (10.0-RC2+)
Peter Grehan
grehan at freebsd.org
Wed Dec 25 00:28:20 UTC 2013
Hi Dennis,
> Bhyve newbie trying to get it to start.
No problems.
> I am getting the FreeBSD loader but it then exits when the loader goes
> to boot. I've also found "kldload nmdm" does not create any entries
> in /dev. Isn't it suppose to? I'm not sure what I am doing wrong.
nmdm(4) is a cloneable device so device nodes won't show up until
they're opened.
Also, vmrun.sh is hard-coded to use stdio for output. You'll have to
modify the script to get bhyveload (the -c option) and bhyve (the "-l
com1," option) to use an nmdm device.
> System:
>
> Elmer# uname -a
> FreeBSD Elmer 10.0-PRERELEASE FreeBSD 10.0-PRERELEASE #0 r259838: Tue
> Dec 24 15:21:17 MST 2013
> root at Elmer:/disk-2/obj/usr/src/sys/PENFORD-FreeBSD10-amd64 amd64
>
>
> I am executing the following instructions:
>
> kldload nmdm
> kldload vmm
> kldload if_tap
> ifconfig tap0 create
> ./vmrun.sh -c 4 -d /disk-2/VMs/nms.img -i
> -I /disk-3/tmp/FreeBSD-10.0-RC2-amd64-disc1.iso -m 2G -t /dev/tap0 nms
>
>
> FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
> CPU: Intel(R) Xeon(R) CPU E5540 @ 2.53GHz (2533.47-MHz
> K8-class CPU)
This is a Nehalem Xeon - it doesn't have the VT-x feature known as
"unrestricted guest" aka 16/32-bit emulation which arrived in Westmere.
This won't allow FreeBSD to spin up APs (16-bit emulation required) or
to run Linux via grub-bhyve (32-bit paging-disabled emulation). You'll
be restricted to single CPU FreeBSD guests on this model :(
later,
Peter.
More information about the freebsd-virtualization
mailing list