Switch to using the generated disk when launching bhyve.

This commit is contained in:
Tom Alexander 2022-02-26 19:05:10 -05:00
parent 33f2fa4a2a
commit 70b4cca0c1
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -34,6 +34,7 @@ ifconfig bridge0 addm tap1
# -s virtual PCI slots
# -P force guest CPU to exit when PAUSE instruction detected
set +e
disk_image=$(readlink -f ../scripts/build_image/dib.img)
bhyve \
-c 1 \
-m 1024M \
@ -44,7 +45,7 @@ bhyve \
-u \
-s 0,hostbridge \
-s 31,lpc \
-s 4:0,virtio-blk,/vm/docker/disk0.img \
-s 4:0,virtio-blk,$disk_image \
-s 5:0,virtio-net,tap1,mac=58:9c:fc:09:c3:ba \
-s 6:0,virtio-rnd \
-s "7:0,virtio-9p,docker=$DOCKERDIR" \