Fix for newer versions of qemu and virt-install that use q35 by default, which seems to break cloud-init...

master
Brie Bruns 2020-02-19 09:19:51 -07:00
parent 22633f2e80
commit 12ce30e202
1 changed files with 3 additions and 2 deletions

View File

@ -1,8 +1,8 @@
#!/bin/bash #!/bin/bash
# Heavily Modified Script By: Brielle Bruns # Heavily Modified Script By: Brielle Bruns
# Date: 10/30/2019 # Date: 02/19/2020
# URL: https://git.sosdg.org/brielle/virt-install-cloud # URL: https://git.sosdg.org/brielle/virt-install-cloud
# Version: 1.1.2 # Version: 1.1.3
# #
# Originally based on: # Originally based on:
# virt-install-cloud.sh : script to start an OpenStack cloud image on kvm # virt-install-cloud.sh : script to start an OpenStack cloud image on kvm
@ -215,6 +215,7 @@ echo "Creating guest ${hostname}.${domain}..."
virt-install \ virt-install \
--name ${hostname}.${domain} \ --name ${hostname}.${domain} \
--cpu ${cpumodel} \ --cpu ${cpumodel} \
--machine pc \
--memory ${ram} \ --memory ${ram} \
--vcpus=${cpucount} \ --vcpus=${cpucount} \
--noautoconsole \ --noautoconsole \