Added a script to launch bhyve.

master
Tom Alexander 2 years ago
parent 598227ee42
commit 977c8a74e8
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

@ -0,0 +1,31 @@
#!/usr/bin/env bash
#
set -euo pipefail
IFS=$'\n\t'
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# 1 core
# 1GB ram
# -H yield the virtual CPU when HLT instruction is detected, otherwise bhyve eats the entire core
# -w Ignore accesses to unimplemented Model Specific Registers. Maybe not needed? Man page says its for debug purposes
# -l for lpc devices
# -U for specifying uuid, going to omit and see if the generated one works
# -u RTC is in UTC
# -s virtual PCI slots
bhyve \
-c 1 \
-m 1024M \
-H \
-w \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
-u \
-s 0,hostbridge \
-s 31,lpc \
-s 4:0,virtio-blk,/vm/docker/disk0.img \
-s 5:0,virtio-net,tap1,mac=58:9c:fc:09:c3:ba \
-s 6:0,virtio-rnd \
-s 7:0,fbuf,tcp=127.0.0.1:5900,w=1920,h=1080 \
-s 8:0,xhci,tablet \
-s 3:0,ahci-cd,/vm/.config/null.iso \
-l com1,/dev/nmdm-docker.1A \
docker
Loading…
Cancel
Save