Disable cloudinit after first boot, change iso to use 'cdrom' type instead of disk
parent
3662e705a4
commit
99c9dcca60
|
@ -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…
Reference in New Issue