newvm: Add --network argument

Although the `newvm.sh` script had a variable to configure the value
specified for the `--network` argument to `virt-install`, it didn't
expose a way to set it.  We need this ability so we can e.g. create VMs
on non-default networks like `camera` or `mgmt`.
frigate-exporter
Dustin 2024-08-12 18:04:11 -05:00
parent 8dfb2e3e4f
commit 8239b60634
1 changed files with 7 additions and 0 deletions

View File

@ -58,6 +58,13 @@ while [ $# -gt 0 ]; do
shift
fedora="${1#*=}"
;;
--network)
shift
network="$1"
;;
--network=*)
network="${1#*=}"
;;
--no-console|--noconsole)
console=false
;;