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`.
unifi-restore
Dustin 2025-07-14 15:46:02 -05:00
parent 04718fa6d0
commit 51e8cae618
1 changed files with 2 additions and 1 deletions

View File

@ -171,7 +171,8 @@ set -- \
--name ${name} \ --name ${name} \
--metadata title=${hostname} \ --metadata title=${hostname} \
--memory ${memory} \ --memory ${memory} \
--cpu host \ --vcpus ${vcpus} \
--cpu host-model \
--location ${location} \ --location ${location} \
--extra-args "${extra_args}" \ --extra-args "${extra_args}" \
--disk pool=default,size=${disk_size},cache=none \ --disk pool=default,size=${disk_size},cache=none \