More information:
- https://cloudinit.readthedocs.io/en/latest/topics/datasources/configdrive.html
- https://cloudinit.readthedocs.io/en/latest/topics/network-config.html
I tested this with this cloud-init configuration under Ubuntu 18.04
<pre>
root@ubuntu-test:~# cat /etc/cloud/cloud.cfg.d/99_cloudstack.cfg
system_info:
default_user:
name: root
package_mirrors:
- arches: [i386, amd64]
failsafe:
primary: http://ubuntu.apt-get.eu/ubuntu
security: http://security.ubuntu.apt-get.eu/ubuntu
disable_root: false
cloud_config_modules:
- emit_upstart
- snap_config
- ssh-import-id
- locale
- [ set-passwords, always ]
- grub-dpkg
- apt-pipelining
- apt-configure
- ntp
- timezone
- disable-ec2-metadata
- runcmd
- byobu
datasource:
None: {}
datasource_list:
- ConfigDrive
root@ubuntu-test:~#
</pre>
Files on the CD-Rom:
<pre>
root@ubuntu-test:~# find /mnt/cdrom/
/mnt/cdrom/
/mnt/cdrom/openstack
/mnt/cdrom/openstack/latest
/mnt/cdrom/openstack/latest/meta_data.json
/mnt/cdrom/openstack/latest/network_data.json
root@ubuntu-test:~#
</pre>
I generated this ISO manually on a non-CloudStack environment to test it, but
we could store all the network information we have from a VM inside the
ConfigDrive.
[ Full content available at: https://github.com/apache/cloudstack/issues/2872 ]
This message was relayed via gitbox.apache.org for [email protected]