Bhyve experiment
Installing OpenBSD and NetBSD on FreeBSD bhyve. Can it be done? Let's find out.
- Install freebsd virtual machine, called Virty, on freeda to be a new experimental bhyve host
URLS:
- FreeBSD Handbook: Virtualization Host
- Setting up a FreeBSD bhyve VM host
- Installing and running NetBSD and OpenBSD on FreeBSD bhyve
- vm-bhyve
- Install a new openbsd virtual machine under bhyve on Virty
NOTES:
Tried it directly on Freeda but could not get networking to work. Did not want to mess about too much since I already have BVCP running on Freeda with some (home)production applications.
Might be easier to just setup vm-bhyve directly on a fresh freebsd and try it from start. Also made an attempt at setting it up on Farsu, but it complained that virtualisation was not enabled or supported. Don't want to disturb the Farsu machine too much.
- Install a new netbsd virtual machine under bhyve on Virty
- Create web design based on nedit layout
- Integrate new web design with Ago or some other SSG
CMDS :
cat > netbsd.map << EOF (hd0) nbsd10.img (cd0) NetBSD-10.0-amd64.iso EOF
cat > netbsd.grub << EOF knetbsd -h -r cd0a /netbsd boot EOF
sudo grub-bhyve -r cd0 -m netbsd.map -M 2048 netbsd < netbsd.grub
sudo bhyve -c 1 -m 2048M -H -P -A -W -w -l com1,stdio -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap0 -s 3,ahci-cd,NetBSD-10.0-amd64.iso -s 4,virtio-blk,nbsd10.img netbsd
cat > /tmp/post.map << EOF (hd0) /vms/iso_images/install76.img (hd1) /dev/zvol/zroot/bhyve/obsd76 EOF
grub-bhyve -m /tmp/post.map obsd76
set root=(hd0,msdos4) kopenbsd -h com0 -r sd0a /bsd boot
bhyve -c 1 -w -u -H -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap0 -s 3,ahci-hd,/vms/iso_images/install76.img -s 4,ahci-hd,/dev/zvol/zroot/bhyve/obsd76 -s 31,lpc -l com1,stdio obsd76