Browse Source

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

master
Brielle Bruns 1 year ago
parent
commit
5d6e58b363
2 changed files with 11 additions and 5 deletions
  1. 7
    1
      config
  2. 4
    4
      virt-install-cloud.sh

+ 7
- 1
config View File

@@ -28,4 +28,10 @@ nameserver1="8.8.8.8"
28 28
 nameserver2="1.1.1.1"
29 29
 
30 30
 # Create ISO via method (genisoimage, xorriso, or cloud-localds)
31
-iso_method="xorriso"
31
+iso_method="xorriso"
32
+
33
+# CPU model to present to guests
34
+# Options: specific cpu type, host-passthrough, host, host-model-only
35
+# By default, we'll use host-passthrough since it offers the best perfs for the guests
36
+# Don't use host-passthrough if you intend to migrate guests to different hw types live
37
+cpumodel="host-passthrough"

+ 4
- 4
virt-install-cloud.sh View File

@@ -1,12 +1,12 @@
1 1
 #!/bin/bash
2 2
 # Heavily Modified Script By:  Brielle Bruns
3
-# Date: 05/13/2018
3
+# Date: 06/08/2018
4 4
 # URL: https://git.sosdg.org/brielle/virt-install-cloud
5
-# Version: 1.0
5
+# Version: 1.1
6 6
 #
7 7
 # Originally based on:
8 8
 # virt-install-cloud.sh : script to start an OpenStack cloud image on kvm
9
-# version : 1.2
9
+# version : 1.2.1
10 10
 #
11 11
 # Author : Claude Durocher
12 12
 # License : GPLv3
@@ -214,7 +214,7 @@ fi
214 214
 echo "Creating guest ${hostname}.${domain}..."
215 215
 virt-install \
216 216
   --name ${hostname}.${domain} \
217
-  --cpu host \
217
+  --cpu ${cpumodel} \
218 218
   --memory ${ram} \
219 219
   --vcpus=${cpucount} \
220 220
   --noautoconsole \

Loading…
Cancel
Save