1)
$rm -rf /var/lib/cloud/*
OR
$rm -rf /var/lib/cloud/sem/* /var/lib/cloud/instance /var/lib/cloud/instances/*
2)
$cloud-init init
$cloud-init modules -m final
3)
$tail -f /var/log/cloud-init.log
$tail -f /var/log/cloud-init-output.log
$rm -rf /var/lib/cloud/*
OR
$rm -rf /var/lib/cloud/sem/* /var/lib/cloud/instance /var/lib/cloud/instances/*
2)
$cloud-init init
$cloud-init modules -m final
3)
$tail -f /var/log/cloud-init.log
$tail -f /var/log/cloud-init-output.log
https://raymii.org/s/tutorials/Automating_Openstack_with_Cloud_init_run_a_script_on_VMs_first_boot.html
ReplyDeletea)
ReplyDelete$vim /etc/cloud/cloud.cfg
cloud_final_modules:
- rightscale_userdata
- scripts-vendor
- scripts-per-once
- scripts-per-boot
- scripts-per-instance
- scripts-user
- ssh-authkey-fingerprints
- keys-to-console
- phone-home
- final-message
- power-state-change
b)
$dpkg -L cloud-init