From 5d6e58b363ceb53a7edfa3d28d40ecd9aefdf3db Mon Sep 17 00:00:00 2001 From: Brielle Bruns Date: Fri, 8 Jun 2018 10:46:27 -0600 Subject: [PATCH] Add cpumodel setting to config to work around an issue we've seen possibly related to RH bug 1439933 that impacts deb 9 as well --- config | 8 +++++++- virt-install-cloud.sh | 8 ++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/config b/config index 4fb2546..0d5728c 100644 --- a/config +++ b/config @@ -28,4 +28,10 @@ nameserver1="8.8.8.8" nameserver2="1.1.1.1" # Create ISO via method (genisoimage, xorriso, or cloud-localds) -iso_method="xorriso" \ No newline at end of file +iso_method="xorriso" + +# CPU model to present to guests +# Options: specific cpu type, host-passthrough, host, host-model-only +# By default, we'll use host-passthrough since it offers the best perfs for the guests +# Don't use host-passthrough if you intend to migrate guests to different hw types live +cpumodel="host-passthrough" \ No newline at end of file diff --git a/virt-install-cloud.sh b/virt-install-cloud.sh index 07d1a77..5081761 100755 --- a/virt-install-cloud.sh +++ b/virt-install-cloud.sh @@ -1,12 +1,12 @@ #!/bin/bash # Heavily Modified Script By: Brielle Bruns -# Date: 05/13/2018 +# Date: 06/08/2018 # URL: https://git.sosdg.org/brielle/virt-install-cloud -# Version: 1.0 +# Version: 1.1 # # Originally based on: # virt-install-cloud.sh : script to start an OpenStack cloud image on kvm -# version : 1.2 +# version : 1.2.1 # # Author : Claude Durocher # License : GPLv3 @@ -214,7 +214,7 @@ fi echo "Creating guest ${hostname}.${domain}..." virt-install \ --name ${hostname}.${domain} \ - --cpu host \ + --cpu ${cpumodel} \ --memory ${ram} \ --vcpus=${cpucount} \ --noautoconsole \