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

master
Brie Bruns 5 years ago
parent 3662e705a4
commit 99c9dcca60
  1. 1
      user-data
  2. 4
      virt-install-cloud.sh

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

@ -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}

Loading…
Cancel
Save