VMware Cloud Community
VirtuallyMikeB

cloud-init and cloud-config with VDS-only deployment

I understand the metadata service is not supported with VDS-only deployments. Does this mean that cloud-init and cloud-config do not work with VDS-only deployments?

I want to be able to use cloud-config when launching instances to point to a puppet master.

----------------------------------------- Please consider marking this answer "correct" or "helpful" if you found it useful (you'll get points too). Mike Brown VMware, Cisco Data Center, and NetApp dude Sr. Systems Engineer michael.b.brown3@gmail.com Twitter: @VirtuallyMikeB Blog: http://VirtuallyMikeBrown.com LinkedIn: http://LinkedIn.com/in/michaelbbrown
0 Kudos
5 Replies
admin
Immortal
Immortal

Hi Mike,

     you can try to use config-drive in vDS deployment, "nova boot --config-drive=true --user-data ./my-user-data.txt" to pass the user-data during boot, thanks.

0 Kudos
VirtuallyMikeB

Thanks. Does this mean cloud-init and cloud-config are not supported in VDS-only mode?

----------------------------------------- Please consider marking this answer "correct" or "helpful" if you found it useful (you'll get points too). Mike Brown VMware, Cisco Data Center, and NetApp dude Sr. Systems Engineer michael.b.brown3@gmail.com Twitter: @VirtuallyMikeB Blog: http://VirtuallyMikeBrown.com LinkedIn: http://LinkedIn.com/in/michaelbbrown
0 Kudos
kotton
Contributor
Contributor

Hi,

Are you using the DVS plugin from vmware-nsx/vmware_nsx at master · openstack/vmware-nsx · GitHub? If so then cloud init is supported.

There were some bugs where the DHCP agent were not connecting to the correct OVS swicth. That was fixed in Newton.

Please see Gerrit Code Review and Gerrit Code Review

Thanks

Gary

0 Kudos
VirtuallyMikeB

Thanks. This looks like it needs to be used with NSX.  Is that correct? Even if it can be used without NSX, looking at the links, I have no idea where to start.  How do I install this plugin?

----------------------------------------- Please consider marking this answer "correct" or "helpful" if you found it useful (you'll get points too). Mike Brown VMware, Cisco Data Center, and NetApp dude Sr. Systems Engineer michael.b.brown3@gmail.com Twitter: @VirtuallyMikeB Blog: http://VirtuallyMikeBrown.com LinkedIn: http://LinkedIn.com/in/michaelbbrown
0 Kudos
VirtuallyMikeB

I tried using the following command but it didn't seem to work

nova boot --image ubuntu-cloud --flavor 2 ubuntu-cloud3 --config-drive=true --user-data ./mydata.txt --net-id fff67509-3269-4d50-b57e-381b2801cb22

I saw cloud-init was trying to reach 168.254.169.254 during instance boot, but the config-drive was never mounted (tried viewing with df and mount after boot).  The file mydata.txt only had the following as a test:

#!/bin/sh

echo "Hello World.  The time is now $(date -R)!" >> /tmp/output.txt

I reviewed the cloud-init logs in /var/log but didn't see anything that looked like it tried to use or mount the config-drive.

I'm not convinced that cloud-init or config-drive are supported at all with a VDS-only VIO deployment.  Can anyone say otherwise?

----------------------------------------- Please consider marking this answer "correct" or "helpful" if you found it useful (you'll get points too). Mike Brown VMware, Cisco Data Center, and NetApp dude Sr. Systems Engineer michael.b.brown3@gmail.com Twitter: @VirtuallyMikeB Blog: http://VirtuallyMikeBrown.com LinkedIn: http://LinkedIn.com/in/michaelbbrown
0 Kudos