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
0answers
45 views

Problem with Ubuntu cloud image 16.04 on VirtualBox

I was trying to use Ubuntu 16.04 cloud image xenial-server-cloudimg-amd64-disk1.vmdk [downloaded from https://cloud-images.ubuntu.com/xenial/current/ ] on VirtualBox but facing two problems: ...
0
votes
0answers
18 views

cloudinit fails if apt repo has availability issues

We use cloudinit to do apt-gets to install software. apt-gets fail ~20% of the time and it seems to be increasing. W: An error occurred during the signature verification. The repository is not ...
0
votes
0answers
18 views

Methods to import files with cloud init

What are some ways that cloud-init can be used to import files to a new VM? The files could either be local or for example accessible via HTTP. I assume that a regular wget in a cloud-config file ...
0
votes
2answers
129 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
304 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 19:...
0
votes
0answers
87 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; I'...
0
votes
0answers
601 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 ...
1
vote
4answers
635 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
3k 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 ...
8
votes
1answer
9k 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 14....
3
votes
0answers
173 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
5k 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
603 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
578 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 link-...
5
votes
1answer
6k 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
820 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
3k 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
3k 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
4k 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
647 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
586 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
6k 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
422 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 ...