diff options
author | rodri <rgl@antares-labs.eu> | 2021-10-20 20:03:15 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2021-10-20 20:03:15 +0000 |
commit | 0f6ff3b8ef4d0747112f1087d8cced7c9a16eb5f (patch) | |
tree | 0f18ac9ce7308854c5f2c891828cb24f97d884e1 /vmm/machine/linux/run | |
download | bhyve-rc.d-0f6ff3b8ef4d0747112f1087d8cced7c9a16eb5f.tar.gz bhyve-rc.d-0f6ff3b8ef4d0747112f1087d8cced7c9a16eb5f.tar.bz2 bhyve-rc.d-0f6ff3b8ef4d0747112f1087d8cced7c9a16eb5f.zip |
let the game begin.
Diffstat (limited to 'vmm/machine/linux/run')
-rwxr-xr-x | vmm/machine/linux/run | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/vmm/machine/linux/run b/vmm/machine/linux/run new file mode 100755 index 0000000..67bdb63 --- /dev/null +++ b/vmm/machine/linux/run @@ -0,0 +1,17 @@ +#!/bin/sh +name=linux +id=1 +mem=4096 +ncpu=4 +fbw=1920 +fbh=1080 +bhyve -AHPw -s0:0,hostbridge \ + -s1:0,lpc \ + -s2:0,virtio-net,tap$id \ + -s3:0,virtio-blk,/dev/zvol/zroot/${name}disk \ + -s16:0,hda,play=/dev/dsp,rec=/dev/dsp \ + -l com1,/dev/nmdm${id}A \ + -s29,fbuf,tcp=127.0.0.1:$((5900+$id)),w=$fbw,h=$fbh \ + -s30,xhci,tablet \ + -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \ + -c $ncpu -m $mem $name >>/vmm/machine/$name/log/out 2>>/vmm/machine/$name/log/err |