cloud-init is the Ubuntu package that handles early initialization of a cloud instance. It is installed in the Ubuntu Cloud Images and also in the official Ubuntu images available on EC2. (Ubuntu Docs)

learn more… | top users | synonyms

0
votes
2answers
55 views

Changing hostname without restart via cloud-init isn't working correctly

I followed this thread while writing my cloud-init script. I've tested and I have this in one part of my boothook script: echo "HOSTNAME=$HOSTNAME" >> /etc/environment echo "127.0.1.1 ...
2
votes
0answers
185 views

Disable ec2 metadata service from cloud-init

I have an AWS EC2 image that I converted to VirtualBox and running locally. It works great, except I cannot figure out how to disable to calls out to the AWS metadata services on boot: 2015-09-25 ...
0
votes
0answers
45 views

How to add user defined cloud-config preseed in MAAS

I would like to have a custom cloud-config ran upon deploy on all instances controlled and managed by MAAS. This seems like a pretty standard operation and doesn't seem to far from the beaten path; ...
0
votes
0answers
277 views

how to configure datasources in cloud-init

I am looking at the cloud.cfg and I see that it can be used to configure datasources_list: [ Ec2, None ] However, I see that /etc/cloud/cloud.cfg.d/90_dpkg.cfg also holds a list of datasources. So ...
0
votes
0answers
27 views

Percona deb download via cloud init very slow

I'm trying to set up a Trusty instance via a cloud init file and the install process is stalling for a few minutes. When I tail the install output with tail -f /var/log/cloud-init-output.log, I see it ...
1
vote
2answers
413 views

Simplest way to set up new user with SSH access on remote host, given root access

I am writing a tutorial on setting up Ceph the hard way, shell all the way. I am not happy with the number of ssh commands it takes to connect to a remote host as root, create new user, then scp keys ...
2
votes
1answer
2k views

cloud init fails on instance

I setup Ubuntu Openstack using Autopilot Installer / MAAS. When I try booting the VM the cloud-init fails to get metadata. Here's the Instance log (partial) cloud-init-nonet[25.04]: static ...
6
votes
1answer
6k views

How can I reload dhclient without restarting network?

I am using ubuntu 14.04 on ec2 instance, I am changing dhcp settings as part of the provisioning process, and I cant find a way to reload the dhclient. Infact, theres no way to restart network on ...
3
votes
0answers
132 views

How can I upgrade cloud-init?

I am working on Ubuntu 12.04 with cloud-init 0.6.3-0ubuntu1 My question is can I upgrade it to 0.7.5-0ubuntu1.1?
4
votes
2answers
4k views

Fresh Install Ubuntu 14.04 Server Slow Boot due to failure to connect 169.254.169.254

Have just installed Ubuntu Server 14.04 and have no VM instances operational. Boot time takes an eternity and on pressing F1 during loading this is what I see, the continued connect attempts and ...
0
votes
1answer
554 views

Ubuntu 12.04 Cloud Images Hang on First Boot in Virtualbox

I've run across an annoying bug with the recent official builds of Precise (both 32 and 64 bit versions) for virtualbox found here: http://cloud-images.ubuntu.com/vagrant/precise/current/ When these ...
1
vote
0answers
496 views

Installing xubuntu-desktop breaks cloud-init (routing to 169.254.169.254)

Run Ubuntu Server 12.04 (or a later version) in a VM. Reboot. Cloud-init continues to work. Then install xubuntu-desktop. Then reboot; you will see that there is now a broken route to the ...
4
votes
1answer
5k views

How can I disable cloud-init?

I have fully-configured instance and create image from them for autoscaling group. When autoscaling setup new instance from this image, it calls cloud-init. And cloud-init changes hostname and breakes ...
4
votes
1answer
744 views

Is it possible to install a newer version of cloud-init on Lucid?

I'm using EC2 user-data to configure certain services before they are launched on newly spun up instances. I've been using #cloud-boothook as the beginning of user data, and it worked like a charm on ...
5
votes
2answers
2k views

Where is the usage of Ubuntu cloud guest image on OpenStack documented?

Whenever I set up a devstack or OpenStack deployment, I want to add the latest LTS Ubuntu server image. I succeeded several times in the past and I believe it can be achieved with something like: ...
3
votes
2answers
2k views

cloud-init/cloud-config syntax documentation

I am looking for cloud-init/cloud-config syntax documentation. I have been through https://help.ubuntu.com/community/CloudInit I need to know what all namespace are supported by cloud-init. e.g. ...
1
vote
1answer
3k views

Where are the logs for my user-data script? cloud-init

If I paste a shell script into the user-data box when starting the standard Ubuntu AMI on EC2, I'm using cloud-init, am I not? My question is where does it log the output of such a script? Do I have ...
2
votes
2answers
629 views

Cannot bootstrap due to clout-init “errors running cloud_config [final]: [scripts-user]”

I have installed maas server and configured juju also, And bootstrapped juju for 1st time, which I know will install zookeeper on 1 "ready" state VM available in MAAS. So I observed this ...
3
votes
0answers
538 views

How can I monitor cloud-init for errors, and trigger a script when it fails?

I'm using cloud-init to provision servers in AWS, and would like my servers to send an email when they're done (whether they fail or succeed). For successful cloud-init runs, the solution is trivial. ...
2
votes
2answers
2k views

How to let maas' cloud-init client select internal mirror?

Our maas LAN can't access the internet and has a internal apt-mirror site 192.168.3.6. I changed the mirror set of maas server's snippets/maas_proxy file as follows: d-i mirror/country string ...
2
votes
1answer
5k views

How do I boot Ubuntu Cloud images in KVM?

I'm trying to get an Ubuntu Cloud image running on my local KVM installation. I am downloading the qcow2 image from here: http://cloud-images.ubuntu.com/releases/precise/beta-2/ And using the ...
8
votes
3answers
420 views

Server AMI images don't allow a user to login multiple times

When I log into twice to a new instance of Ubuntu server built for Amazon EC2, both windows will be exactly the same. Anything I type in one is replicated in the other. I never dealt with this when I ...