wido commented on issue #2872: Improve ConfigDrive to store network information
URL: https://github.com/apache/cloudstack/issues/2872#issuecomment-426310775
 
 
   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.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to