From 51e8cae618e034f4db09c3c833bfea6a925ccb80 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Mon, 14 Jul 2025 15:46:02 -0500 Subject: [PATCH] newvm: Fix vCPU count/CPU model Although the `newvm.sh` script had a `--vcpus` argument, its value was never being used. The `--cpu host` argument for `virt-install` is deprecated in favor of `--cpu host`. --- newvm.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/newvm.sh b/newvm.sh index 7150d7e..e2ebb3a 100755 --- a/newvm.sh +++ b/newvm.sh @@ -171,7 +171,8 @@ set -- \ --name ${name} \ --metadata title=${hostname} \ --memory ${memory} \ - --cpu host \ + --vcpus ${vcpus} \ + --cpu host-model \ --location ${location} \ --extra-args "${extra_args}" \ --disk pool=default,size=${disk_size},cache=none \