Disable cloudinit after first boot, change iso to use 'cdrom' type instead of disk

master
Brie Bruns 2018-04-29 21:04:12 -06:00
parent 3662e705a4
commit 99c9dcca60
2 changed files with 3 additions and 2 deletions

View File

@ -23,3 +23,4 @@ packages:
- nano - nano
runcmd: runcmd:
- [ touch, /etc/cloud/cloud-init.disabled ]

View File

@ -6,7 +6,7 @@
# #
# 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
# version : 1.1.1 # version : 1.1.2
# #
# Author : Claude Durocher # Author : Claude Durocher
# License : GPLv3 # License : GPLv3
@ -165,7 +165,7 @@ virt-install \
--network ${net_interface} \ --network ${net_interface} \
--boot hd \ --boot hd \
--disk vol=${POOL}/${hostname}.${domain}.root.img,format=${FORMAT},bus=virtio,cache=none \ --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 \ --console pty,target_type=serial \
--os-type=${virt_ostype} --os-variant=${virt_osvariant} --os-type=${virt_ostype} --os-variant=${virt_osvariant}