Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [cloud-init]

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)

0
votes
0answers
13 views

How do I use cloud-init to apply netplan?

After I manually edit /etc/cloud/cloud.cfg.d/50-curtin-networking.cfg, how do I tell cloud-init to update /etc/netplan/50-cloud-init.yaml? In other words, it doesn't make sense to manually update both ...
0
votes
0answers
13 views

What does “changes to it will not persist across an instance” actually mean in 50-cloud-init.yaml

In recent Ubuntu, netplan is the default way of configuring network adapters. I want a static IP on one of mine, and there are some guides on how to do that. Some point you to editing 50-cloud-init....
1
vote
0answers
60 views

Find out netplan duid before starting the system

is there a way to find out the duid netplan is using to request the dhcp lease before starting the system. Can it be calculated or triggered from outside? Use case: Before netplan, I used the ...
1
vote
1answer
342 views

How do I reload network configuration with cloud-init?

I've installed Ubuntu Server 18.04, and instead of the old /etc/network/interfaces, it seems that my network configuration now lives in a series of YAML files in /etc/netplan, of which the only one I ...
0
votes
1answer
179 views

cloud-init smg in login screen

i am getting this SMG from cloud-init; with a clean installation of ubuntu 18.04.1 Capture how Can i Fix this?
2
votes
2answers
403 views

CIFS mount error (fstab) at boot since networking doesn't seem to be up

On a newish 18.04 system, I added a few SMB mounts to my fstab and verified they do mount, interactively. When my system boots, it complains about CIFS mount errors, then tells me I am in emergency ...
0
votes
1answer
1k views

Does Ubuntu 18.04 use dhclient?

I'm trying to figure out how to configure my DHCP client on Ubuntu server 18.04. I have the following netplan configuration, coming from cloud-init: network: version: 2 ethernets: ...
0
votes
0answers
409 views

Persistent static routing configuration on 18.04 Server (CloudInit)

What is the current best practice or de-facto standard to define custom routing for Ubuntu Server 18.04? Cloud-Init can only set to, via and metric parameters in the main routing table: https://...
0
votes
1answer
572 views

Cloud-init nocloud set hostname dynamically from dhcp

My initial idea is not to disable cloud-init from the ubuntu server 18.04.1 I'm configuring, but I think it will be what I will do if I cannot solve this. The issue is I'm setting the hostname ...
1
vote
0answers
459 views

Upon boot resolv.conf is empty, but then eventually is populated; why?

I have a few 17.10 instances running in Amazon EC2 on a VPC. When I freshly reboot a server (unsure if it happens on a cold boot, I have not tested), the /etc/resolv.conf file shows as empty: # ...
4
votes
1answer
3k views

What are the use cases for cloud-init?

Installing Ubuntu Server 18.04, I see the networking config in /etc/netplan has a .yml file that talks about CloudInit and networking configuration not persisting across instances. I have read https:/...
1
vote
0answers
36 views

How can I get the order of startup scripts - upstart and systemV

I have an upstart script that must start before a non-upstart (System V) script. I see that while booting, the systemV script starts before my upstart script. How can I check the boot order of these ...
6
votes
3answers
1k views

What is the most authoritative file/process for managing IP addresses on an 18.04 server?

The 18.04 server installation process creates /etc/cloud/cloud.cfg.d/50-curtin-networking.cfg, which, in turn, seems to generate /etc/netplan/50-cloud-init.yaml. I can't seem to find exactly how 50-...
1
vote
1answer
1k views

How to setup partitions on my boot disk with cloud-config?

I try to initialize an ubuntu 16.04 server via cloud-init. While booting the server the first time I wanna create the following partitions: root-fs (ext4 filesystem ubuntu) data-disk (xfs formatted ...
2
votes
0answers
1k views

How is 50-cloud-init.cfg created?

As far as I can tell, it is created by code in the cloudinit package, which lives in /usr/lib/python3/dist-packages/cloudinit/distros/debian.py. But where is that code called from? What I need to do ...
2
votes
0answers
1k views

Cloud-init — Network config is getting overridden during subsequent boots

How can I make cloud init to run on first boot only? On my lab, its overriding all networking changes that I have done manually on next boot. I am passing my network information in meta-data, using ...
0
votes
2answers
400 views

Cloud-init: how to install it from the source code?

I have a Ubuntu 1604 VM on Azure, which by default has cloud-init installed. To debug a cloud-init issue, I removed the default cloud-init (apt remove cloud-init) and cloned the source code from ...
1
vote
1answer
5k views

Cloud-init and OVA

I've been here many times searching and finding great solutions for my work. Thanks! Now I'm asking my first question here: I have an OVA file (tar with OVF and VMDK files - https://en.wikipedia.org/...
0
votes
1answer
197 views

Ubuntu Cloud image 14.04 (Trusty Tahr) only has one network interface (eth0)

i'm really new in the cloud world so i need some help because after several day surfing the internet i didn't find anything.. I launch a VM with kvm using this image: cloud-images.ubuntu.com/server/...
4
votes
1answer
2k 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: Booting ...
0
votes
2answers
579 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
1answer
1k 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:...
1
vote
4answers
2k 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
3answers
11k 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 networking ...
13
votes
1answer
25k 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....
4
votes
1answer
642 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
3answers
8k 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
693 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
805 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
12k views

How can I disable cloud-init?

I have a fully-configured instance and an image from that for an autoscaling group. When autoscaling new instances from this image, it calls cloud-init. cloud-init changes the hostname and breaks ...
4
votes
1answer
1k 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 ...
8
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
4k 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
10k 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
684 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
2answers
1k 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
3k 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
10k 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
458 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 ...