From c1fb0d31c80e155b216b17ea95f3ba72ae2d631a Mon Sep 17 00:00:00 2001 From: Cristian Klein Date: Wed, 30 Aug 2017 09:31:30 +0200 Subject: [PATCH] Added more options in qemu start script I frequently need to change the number of processors, memory and VM name. This change allows the user to specify these options when booting CoreOS from the qemu script. --- build_library/qemu_template.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build_library/qemu_template.sh b/build_library/qemu_template.sh index 8424aa2fb1..7b6942a405 100755 --- a/build_library/qemu_template.sh +++ b/build_library/qemu_template.sh @@ -53,6 +53,15 @@ check_conflict() { while [ $# -ge 1 ]; do case "$1" in + -vm-name) + VM_NAME="$2" + shift 2 ;; + -ncpus) + VM_NCPUS="$2" + shift 2 ;; + -memory) + VM_MEMORY="$2" + shift 2 ;; -i|-ignition-config) IGNITION_CONFIG_FILE="$2" shift 2 ;;