diff options
| author | Paul Buetow <paul@buetow.org> | 2025-01-20 22:48:35 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-01-20 22:48:35 +0200 |
| commit | 5782f1e9d3d6c18fa3c9b4e5b39dea04c444ad9b (patch) | |
| tree | 77a922e1f51996b8e55ae9b7cf4745078b56e614 /gemfeed | |
| parent | 6cc7a7cd404b9a0782c41c4413bf94869605f2d6 (diff) | |
add vm auto start
Diffstat (limited to 'gemfeed')
| -rw-r--r-- | gemfeed/DRAFT-f3s-kubernetes-with-freebsd-bhyve.gmi.tpl | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/gemfeed/DRAFT-f3s-kubernetes-with-freebsd-bhyve.gmi.tpl b/gemfeed/DRAFT-f3s-kubernetes-with-freebsd-bhyve.gmi.tpl index 1d63d42e..ee58115b 100644 --- a/gemfeed/DRAFT-f3s-kubernetes-with-freebsd-bhyve.gmi.tpl +++ b/gemfeed/DRAFT-f3s-kubernetes-with-freebsd-bhyve.gmi.tpl @@ -155,7 +155,7 @@ As per previous post of this series, the 3 FreeBSD hosts were already in my `/et For the Rocky VMs I added those: ```sh -cat <<END >>/etc/hosts +paul@f0:/bhyve/rocky % doas cat <<END >>/etc/hosts 192.168.1.120 r0 r0.lan r0.lan.buetow.org 192.168.1.121 r1 r1.lan r1.lan.buetow.org 192.168.1.122 r2 r2.lan r2.lan.buetow.org @@ -163,6 +163,24 @@ END ``` and configured the IPs accordingly on the VMs themselves. +### Auto-start + +To automatically start the VM on the servers I added the following to the `rc.conf`: + +```sh +paul@f0:/bhyve/rocky % doas cat <<END >>/etc/rc.conf +vm_list="rocky" +vm_delay="5" +``` + +The `vm_delay` isn't really required. It is used to wait 5 seconds before starting each VM, but as of now, there is only one VM per host. Maybe later, when there are more, this will be useful to have. After adding, there's now a `Yes` indicator in the `AUTO` column. + + +```sh +paul@f1:~ % doas vm list +NAME DATASTORE LOADER CPU MEMORY VNC AUTO STATE +rocky default uefi 4 14G 0.0.0.0:5900 Yes [1] Running (2063) +``` Other *BSD-related posts: |
