Compare commits

..

3 Commits

Author SHA1 Message Date
Tom Alexander
f7ff982098
Add sleep before reboot 2023-08-13 20:48:37 -04:00
Tom Alexander
c0250ac00d
Make running snapshots of the virtual machines. 2023-08-13 18:13:07 -04:00
Tom Alexander
bfee369ad8
Add a sleep to the bhyve management script to hopefully avoid bad states. 2023-08-13 18:01:27 -04:00
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,8 @@
os_flavor: "freebsd"
zfs_snapshot_datasets:
- zroot/freebsd/main/be
- zdata/vm
- zdata/k8spersistent
sshd_enabled: true
loader_conf: "mrmanager_loader.conf"
rc_conf: "mrmanager_rc.conf"

View File

@ -46,7 +46,7 @@ function cleanup {
}
vms=()
for sig in EXIT INT QUIT HUP TERM; do
trap "set +e; cleanup" "$sig"
trap "set +e; sleep 10; cleanup" "$sig"
done
function die {
@ -170,6 +170,7 @@ function start_vm {
set +x
if [ $exit_code -eq 0 ]; then
echo "Rebooting."
sleep 5
elif [ $exit_code -eq 1 ]; then
echo "Powered off."
break