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)
Questions tagged [cloud-init]
178 questions
29
votes
2 answers
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 actually have is…
interfect
- 632
- 1
- 6
- 10
22
votes
3 answers
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.04 cloud instances. Any suggestions?
Ranjib
- 321
- 1
- 2
- 4
15
votes
2 answers
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 fstab.
I want to prevent cloud-init from starting on…
homm
- 253
- 1
- 2
- 5
12
votes
2 answers
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.yaml. But that file has an ominous warning:
# This…
aggieNick02
- 223
- 2
- 6
12
votes
1 answer
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://help.ubuntu.com/community/CloudInit but am…
TommyPeanuts
- 841
- 1
- 8
- 24
10
votes
4 answers
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-cloud-init.yaml gets generated from…
kartik_subbarao
- 256
- 3
- 10
9
votes
2 answers
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 files; what's the standard process to re-apply…
Reinderien
- 433
- 2
- 5
- 18
8
votes
3 answers
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 built the image myself. Does anyone know about…
David Parks
- 2,486
- 10
- 38
- 48
8
votes
3 answers
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:
wget…
metakermit
- 2,600
- 3
- 28
- 34
8
votes
2 answers
Disable auto update at end of autoinstall/cloud-init
I have a working cloud-init that is deployed using packer. Once the VM is booted and the autoinstall is completed, Ubuntu does the auto update thing. This seems to take forever to complete and is an unneeded step since we hand over to puppet after…
Pieter De Wit
- 83
- 1
- 3
7
votes
3 answers
Deploy Ubuntu 20.04 on bare metal or virtualbox VM by pxelinux, cloud-init doesn't pick up user-data file
I've been deploying Ubuntu (since 12.04) along with other Linux with pxelinux many years. With the Debian-installer, it works just fine. These days I've been trying to deploy 20.04, which also works basically. Only one question, the "user-data" file…
Wei Du
- 71
- 1
- 1
- 3
7
votes
1 answer
Server autoinstall: How to customise storage section?
By following instructionf from here https://wiki.ubuntu.com/FoundationsTeam/AutomatedServerInstalls#Running_a_truly_automatic_autoinstall
When I use for storage:
storage:
layout:
name: lvm
It creates root parttition with 4GB and doesn't…
zarej
- 191
- 1
- 1
- 6
6
votes
1 answer
how to generate crypted password for auto install
The instructions for auto install of ubuntu 20.4 talks about an encrypted password $crypted_pass.
version: 1
identity:
hostname: hostname
username: username
password: $crypted_pass
how do I generate this for any given password? I've…
Giles Bradshaw
- 163
- 1
- 5
5
votes
1 answer
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 the VM stops indefinitely following the message…
Srij
- 61
- 1
- 4
5
votes
1 answer
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?
DAvid
- 51
- 2