cloudstack-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Levitskiy <>
Subject Re: configdrive in ACS
Date Sun, 11 Sep 2016 15:30:34 GMT
ACS uses a different system than configdrive. Userdata and metadata is saved on a vrouter and
can be queried from the instance with basic HTTP call. It is very similar to AWS.
To save userdata you would use deployVirtualMachine or updateVirtualMachine call
Use this guide for details how format encode it:

Here it is an example how you would get VM ID and some random property from metadata and userdata
assuming userdata has propertyname:”propertyvalue” style tag inside

if [[ $OS == "RHEL" || $OS == "CentOS" ]]; then
elif [ $OS == "Ubuntu" ]; then

DHCPSERVER=`grep dhcp-server-identifier $DHCPBASE |tail -1|awk '{print $3}'|sed 's/;//'`
IPADDRESS=`curl -s http://$DHCPSERVER/latest/local-ipv4`
PROVIDERID=`curl -s http://$DHCPSERVER/latest/vm-id|sed '/^i-.*/s/i-[0-9]*-//'|sed 's/-VM$//'|sed

PROPERTYVALUE=`curl -s http://$DHCPSERVER/latest/user-data|grep propertyname|cut -d":" -f2|cut
-d'"' -f2`

On 9/11/16, 3:36 AM, "Helge Waastad" <> wrote:

    Im testing out RancherOS in ACS and have a couple of issues.
    First, it seems that RancherOS does not support cloudstack datasource for meta/userdata
but that I need to take with Rancher guys.
    But, in openstack I can always use configdrive to get userdata to my vm.
    Is it possible to use configdrive in acs? (i have'nt had any luck yet)
    Br hw
    Sendt fra Galaxy Tab

View raw message