From 99c9dcca60b600f94f0c873241f7a90bbd768493 Mon Sep 17 00:00:00 2001 From: Brielle Bruns Date: Sun, 29 Apr 2018 21:04:12 -0600 Subject: [PATCH] Disable cloudinit after first boot, change iso to use 'cdrom' type instead of disk --- user-data | 1 + virt-install-cloud.sh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/user-data b/user-data index e850a50..5c747da 100644 --- a/user-data +++ b/user-data @@ -23,3 +23,4 @@ packages: - nano runcmd: + - [ touch, /etc/cloud/cloud-init.disabled ] \ No newline at end of file diff --git a/virt-install-cloud.sh b/virt-install-cloud.sh index 9990603..7eb4a43 100755 --- a/virt-install-cloud.sh +++ b/virt-install-cloud.sh @@ -6,7 +6,7 @@ # # Originally based on: # virt-install-cloud.sh : script to start an OpenStack cloud image on kvm -# version : 1.1.1 +# version : 1.1.2 # # Author : Claude Durocher # License : GPLv3 @@ -165,7 +165,7 @@ virt-install \ --network ${net_interface} \ --boot hd \ --disk vol=${POOL}/${hostname}.${domain}.root.img,format=${FORMAT},bus=virtio,cache=none \ - --disk vol=${POOL}/${hostname}.${domain}.configuration.iso,bus=virtio \ + --disk vol=${POOL}/${hostname}.${domain}.configuration.iso,bus=virtio,device=cdrom \ --console pty,target_type=serial \ --os-type=${virt_ostype} --os-variant=${virt_osvariant}