From 8239b606341a0f8a7bf419467632b34b9cadc71e Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Mon, 12 Aug 2024 18:04:11 -0500 Subject: [PATCH] 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`. --- newvm.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/newvm.sh b/newvm.sh index 2541a10..b2ca0d0 100755 --- a/newvm.sh +++ b/newvm.sh @@ -58,6 +58,13 @@ while [ $# -gt 0 ]; do shift fedora="${1#*=}" ;; + --network) + shift + network="$1" + ;; + --network=*) + network="${1#*=}" + ;; --no-console|--noconsole) console=false ;;