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)

Filter by
Sorted by
Tagged with
0
votes
1answer
44 views

Ask only for hostname in an Automated Server Install

I'm trying to install 20.04 with an auto install config file like this one: user-data file: version: 1 identity: hostname: hostname username: username password: $crypted_pass But I want ...
1
vote
1answer
16 views

Ubuntu migrated VM NIC not up on boot - CloudInit?

I've just migrated my Reverse Proxy (Ubuntu 18.04/NGINX) VM from Hyper-V to ESX All seems to work ok, except the new VM no longer uses eth0 It has a new interface ens160 from the new NIC I've made a ...
0
votes
0answers
20 views

How do I add a USB-C OTG network interface in 20.04 LTS?

I am trying to add a USB OTG networking interface to Ubuntu 20.04 LTS on a Raspberry PI 4. I know the hardware is capable of supporting this because this guide works with the debian-based Raspbian OS,...
0
votes
3answers
277 views

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 ...
0
votes
0answers
14 views

16.04: How to both write and run bash shell-script from cloud-init?

I am writing the following cloud-init file to be executed when a VM is deployed in OpenStack: #cloud-config password: passwword chpasswd: { expire: False } ssh_pwauth: True write_files: - content: ...
0
votes
0answers
25 views

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 ...
0
votes
0answers
14 views

Cloud-init: how to run a golang command?

How to run the following golang command from within the cloud-init: go get -u github.com/vente-privee/influxdb-relay I am including the command in the runcmd section of the cloud-init file but it is ...
0
votes
0answers
14 views

How to load a config file using cloud-init?

I am deploying a load-balancer using cloud-init. But after each deployment, I have to change the default haproxy config file. So, I preapred a config file to be loaded instead of the default haproxy....
0
votes
0answers
97 views

cloud-init modify how netplan is formated on generation

By default cloud-init generates the following inside 50-cloud-init.yaml network: version: 2 ethernets: eth0: addresses: - 145.239.202.202/32 - 2001:...
0
votes
0answers
88 views

how to use cloud-init to install packages on a Raspberry pi 4?

After flashing the ubuntu-18.04.4-preinstalled-server-arm64+raspi3.img.xz image from https://ubuntu.com/download/raspberry-pi there is a file on the drive called user-data. I'm trying to use that ...
0
votes
0answers
41 views

Set static IPs to multiple interfaces Ubuntu 18.04.4 LTS (Bionic Beaver)

I'm trying to set a static IP on two interfaces (ens160 "Main") and (ens192 "I added later"). I tried setting up configuration files for netplan (/etc/netplan/01-network-card.yaml) and for (/etc/...
1
vote
2answers
118 views

How to get out of a Netplan rabbit hole?

0. Introduction I've just installed Ubuntu 18.04.4 LTS (server) on an old-ish Dell Poweredge 510 - formerly hosted Windows 2008R2. The installer "mentioned" an issue with the network adapters. This ...
0
votes
0answers
58 views

How to setup a static IP on Ubuntu Server 18.04 using cloud-init metadata?

This question is different from How to setup a static IP on Ubuntu Server 18.04 in essence that I want to set the static IP using cloud-init, not disabling it. According to this documentation, we can ...
0
votes
1answer
50 views

How to configure one Linux Bridge with two physical interfaces in MAAS?

I'm pretty new in using MAAS (and juju) for my company internal Openstack deployment; In the past I used kolla-ansible. More details on installation and environment: Ubuntu (server) 18.04.3 LTS (GNU/...
0
votes
1answer
52 views

MaaS: Use Cloud-Init to automatically customize deployment process

I'm trying to do the following for a week with no luck! I'd like to create a MACVLAN during machine deployment process. I've already provided a code for this process using Cloud-Init syntax: #cloud-...
3
votes
0answers
519 views

How to find out what's executing apt.systemd.daily?

In Ubuntu cloud server images, apt update/upgrade is performed from different services, causing locking issues. How do I find out what is exactly invoking apt-daily? A ps aux --forest doesn't tell ...
0
votes
1answer
73 views

Export a Multipass-VM to a .QCOW2 file

I was working with Multipass to create a VM machine of Ubuntu Bionic. I have made a lot of changes to the initial installation (one includes kernel changes) and that's why I would like to export in a ...
0
votes
0answers
43 views

Ubuntu MAAS: after deployment the node doesnt get an IP-Address

we started using MAAS (v2.4.2) but have troubles on deployment. We can start commission on the nodes, we can also start the nodes in rescue-mode and can reach it in the rescue-mode, but if we deploy ...
0
votes
0answers
30 views

MaaS second-time commissioning fails by timeout

I deployed a MaaS region+rack controller and tried to runcommissioning of 3 nodes on it. First time I did it, it was a success, all the nodes were enlisted and commissioned really quickly, in, like, ...
0
votes
0answers
68 views

Changes in Cloud-Init Ubuntu

I have been using cloud-init successfully before Ubuntu 19.10 but with the same user-data, meta-data and network-config, 19.10 does not appear to pickup the hostname and user configurations and I am ...
1
vote
2answers
256 views

How to change default password in ubuntu preinstall image for raspi4?

I want to change default username in raspi4 ubuntu installation. In this image default username and password are ubuntu/ubuntu However I want to change these default settings to something like ...
0
votes
0answers
101 views

Cloud-init freezing startup

After an update Ubuntu Server 18.04, which I believe included a kernel upgrade (4.15.?.70), startup stops at "Reached target Cloud-init target". I have attempted starting in recovery mode as well as ...
0
votes
0answers
372 views

Ubuntu Server boot stuck in cloud-init

Suddenly, I have a problem booting up my Ubuntu Server VM. It stuck at this point and I don't know the reason.
1
vote
0answers
169 views

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 ...
1
vote
1answer
2k views

How to add second extra network interface on Ubuntu 18.04 VM on OpenStack

I have a public interface on a Ubuntu 18.04 VM hosted by a provider that uses OpenStack. Now I want to add a second extra interface for the internal network. I'm not sure how to do that. Using the ...
0
votes
1answer
141 views

Any Recommendations, Guidelines around Preparing an Ubuntu 18.04 - cloud-init enabled on vSphere?

Looking for guidelines, best practices, the Do's and Don'ts around how to prepare a Cloud-init Enabled Ubuntu 18.04 VMware template. Thanks in advance.
0
votes
0answers
74 views

Ubuntu Server 19.04 dumps from GUI to Console

I have an Ubuntu Server 19.04 with a desktop environment installed but recently, on bootup, it would start the DE, then dump to console messages around completing "Cloud-init". At that point, the ...
0
votes
0answers
98 views

What is the cause of cloud-init difference after 'lxc launch …' and lxc-create from the same image server?

A container created which lxd, by lxc launch ... command is different from the one created by the 'lxc-create -n u1' command. The difference is that the former is cloud-init enabled (and has the ...
0
votes
2answers
232 views

disable ephemeral mount on /mnt for ubuntu on azure

Ubuntu machines on azure got ephemeral disk that is being automatically mounted on /mnt I don't want to have this ephemeral drive on /mnt but rather disable it or just move it to another location. I'...
0
votes
1answer
413 views

Ubuntu 18.04 Cloud Image takes long time to boot

I Downloaded the latest Ubuntu Cloud Image of 18.0.0.4 and uploaded it to our Openstack Instance. Whenever an instance of this image is booted it takes 10-15 minutes to finally show a console. I've ...
1
vote
0answers
142 views

When installing headless Ubuntu (aka server mode), what ISO is best when the features of cloud-init are not wanted?

Am I just a curmudgeon when I find cloud-init annoying? I don't use "the cloud" for any of my projects yet the Ubuntu server ISO assumes that is my only path! I wouldn't mind so much if cloud-init ...
4
votes
1answer
3k 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 ...
6
votes
2answers
2k 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
282 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 ...
15
votes
2answers
13k 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 ...
1
vote
1answer
2k 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
2k 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 ...
3
votes
1answer
5k 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: ...
1
vote
0answers
992 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://...
1
vote
1answer
2k 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
997 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: # ...
7
votes
1answer
9k 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
66 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 ...
8
votes
4answers
5k 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
4k 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
2k 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
2k 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
601 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
7k 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
235 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/...