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)

214 questions
31
votes
3 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
  • 662
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
17
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
  • 273
17
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…
16
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
  • 273
  • 1
  • 2
  • 8
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
  • 1,147
11
votes
1 answer

Am I supposed to remove cloud-init once the server has been created

As far as I understand it, cloud-init handles early initialization of a cloud/VM instance. Ive been using it to help build KVM VMs and it works really well. One aspect of cloud-init I don't understand is what happens once its done the initial…
Crusty
  • 378
10
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…
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
  • 266
  • 3
  • 11
9
votes
1 answer

Why is "50-cloud-init.conf" created?

I was setting up an ubuntu server and, like 99% of all people, one of the first things I do is to disable password authentication in favor of keys. On other distros and in other times this is done by merely editing /etc/ssh/sshd_conf and making sure…
Angelo
  • 889
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,586
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,650
8
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…
8
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
  • 201
7
votes
3 answers

How to set the timezone during an Automated Install of 20.04?

I'm installing 20.04 with an Automated Server Install, but I can't see where to put the timezone? By default it is installing as Etc/UTC but I want something else. After installing I checked /var/log/installer/autoinstall-user-data and there doesn't…
1
2 3
14 15