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

How to use custom Origin values in for internal repositories in Ubuntu 20.04 autoinstall?

OK, just working my way through integrating with autoinstall / cloud-init and finding all the incorrect ways that don't work. :-) Looking at the following documents: https://ubuntu.com/server/docs/...
0
votes
0answers
20 views

How to set the SSH key of the root user during an automated 20.04 server install?

I'm trying to write an SSH key to /root/.ssh/authorized_keys during an automated 20.04 server install, but it fails, probably because of permission problems. The 1st command is successful, the 2nd ...
0
votes
1answer
58 views

Ubuntu 20.04 server blocks at boot cloud-init and login

I am trying to install Ubuntu 20.10 on my raspberry Pi 4 8Gb RAM using a 16 Gb SD card. I have followed this tutorial exactly. I have tried to install it using wlan0 or eth0 by modifying the network-...
0
votes
0answers
51 views

20.04.2. Running basic commands like copy and executing shell scripts using runcmd of cloud-init file

#cloud-config autoinstall: apt: geoip: true preserve_sources_list: false primary: - arches: [amd64, i386] uri: http://us.archive.ubuntu.com/ubuntu - arches: [default] ...
3
votes
1answer
196 views

Ubuntu 20.04 installer downloads ISO more than once

I have been working through the example posted by Andrew Lowther at Automated 20.04 Server Installation using PXE and live server image . For example using a linux cmdline similar to: linux /vmlinuz ...
1
vote
0answers
62 views

Installing packages for an unattended and offline install (20.04)

I am interested in using the new Autoinstall feature to create an ISO that will be offline. I have the packages pre-downloaded and added to the ISO at /cdrom/nocloud/packages. I believe I can manually ...
1
vote
0answers
73 views

Ubuntu 20.04 autoinstaller UEFI Full disk encryption

I wrote this user-data to install Ubuntu 20.04 on UEFI serveur. #cloud-config autoinstall: update: yes early-commands: - systemctl stop ssh apt: geoip: true preserve_sources_list: ...
1
vote
1answer
60 views

cannot ssh to raspberry pi 400 with ubuntu server 20.10 [closed]

I did a fresh install of ubuntu server 20.10 server 64-bit arm using pi imager in a 16 GB MicroSD card for a raspberry pi 400. I have uncommented the WLAN0 and subsequent lines, given the Wifi SSID ...
0
votes
0answers
56 views

cloud-init run bash script

I want to launch a multipass Ubuntu 20.04, then install 2 packages before launching a bash script. Can I use cloud-init to do this? I will run it with; multipass launch -n test --cloud-init cloud-...
3
votes
0answers
172 views

ssh “Connection timed out” after first reboot of a Raspberry Pi

I am trying to setup an Ubuntu 20.04 Server on a Raspberry Pi 4+ (RPi). Everything works and I can ssh in without a problem the first time the server starts up, both using Ethernet and WiFi. However,...
2
votes
1answer
95 views

20.04 autoinstall ejecting iso after first reboot

I am working on upgrading an offline/disconnected installation of Ubuntu that used to be 18.04 with D-I to 20.04 with autoinstall/cloud-init. I have most everything working out so far, but one of the ...
1
vote
1answer
140 views

How do I force a user to change their password on first login in auto-install?

I'm netboot installing Ubuntu focal and I have all the basic stuff working without issue. I use this template as the user-data yaml file and it makes the user, sets the password, and imports whatever ...
0
votes
0answers
77 views

Ubuntu cloud image OVA in Virtualbox

Ubuntu Cloud Images now provides a downloadable .ova dedicated to VMWare/Virtualbox. While these images are easily importable into Virtualbox I'm struggling to set up a valid users account on the ...
0
votes
0answers
73 views

Use ethernet and wifi simultaneously on Raspberry Pi 4?

I have a Raspberry where I use the standard Ubuntu 20.10 image with built in cloud-init support and it was always a hit and miss finding out which connection to use to get access to the device or just ...
0
votes
1answer
97 views

Netplan, cloud-init and Ubuntu Mate

I'm a novice with Ubuntu, and especially Ubuntu Mate that I have installed and have been using for a month now on a Raspberry PI 4 8GB. My issue is using static IP address configurations. Everything ...
0
votes
0answers
36 views

Can split up my big monolithic answerfile for subiquity and cloud-init automated installations?

Edit 2021-02-15: After substituting some variables with sed and looking at a horrible bash source approach from 2017 which accidentally(?) executes commented backticks I'm now looking at Jinja2. ...
1
vote
1answer
157 views

How does curtin, cloud-init and the ephemeral image work?

I wanted to understand how dos cloud-init, curtin and the ephemeral image work together. I’m trying to write the role of each in the MAAS architecture. Cloud-init has two configuration sources: Cloud ...
0
votes
0answers
76 views

Ubuntu offline autoinstall ISO

I am migrating an offline autoinstall ISO from Ubuntu 16.04 to 20.04. Previously I used the debian-installer preseed file. To disable online mirrors and force an offline install I could use the ...
1
vote
1answer
341 views

Several Problems with Autoinstaller and cloud-init

I am coming from debian-installer and now trying to setup an environment for generell installation of new Servers and VMs with Ubuntu 20.04 and seeing, that debian-installer (d-i) is deprecated and ...
1
vote
1answer
443 views

How to use NoCloud Cloud-init to install Ubuntu 20.04 Live Server from a USB stick?

I'm trying to automatically provision my own Ubuntu server (mobo is X570 AORUS PRO), in the end I'm hoping that I could just plug in a USB stick and restart the machine for installation to begin. I ...
0
votes
1answer
125 views

Changing default values in /etc/ssh/sshd_config using cloud init config

While the following config added into the cloud_init.cfg file (user data file for building an Ubuntu16/18 VM) does result in those 2 parameters getting their values increased from default 300 and 0 ...
0
votes
0answers
175 views

Subiquity installer fails - Curtin storage/disk configuration

Trying to install Ubuntu 20.04 using cloud-init installer. I've copied the LVM example from chapter 5 section 5.2.2. https://curtin.readthedocs.io/_/downloads/en/stable/pdf/ storage: version: 1 ...
0
votes
1answer
293 views

How to use Cloud-init to create an Ubuntu 20 server with a specific disk size?

How to set the initial disk size for Ubuntu 20 virtual servers provisioned by Cloud-init, when self hosting? I've been researching cloudinit docs, but I'm not seeing the option to set the disk size. ...
1
vote
0answers
167 views

How to set up cloud-init

As I read most of the cloud-init documentation and watched some youtube videos about cloud-init I am still confused about how to use this software. Can someone help me understand? As I understood so ...
0
votes
0answers
100 views

Cloud-init error and no network on ubuntu server VM

A VM on VirtualBox with recommended configuration and Ubuntu 20.04.1 This machine has only a few weeks, I just install netplan and isc-dhcp-server and all the configuration was correct and running for ...
5
votes
1answer
975 views

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 ...
1
vote
0answers
41 views

Disable or hide cloud-init chatter on the login prompt [duplicate]

I have installed Ubuntu Server 20.04 and when I get to the login prompt, I see a lot of messages from cloud-init writing over that prompt. Is there a way to disable that or hide it or redirect it to ...
0
votes
1answer
296 views

How to skip the language selection screen and install menu on an autoinstall ISO 20.04

Update: I found the solution in the accepted answer of this post: How to specify default Ubuntu 16.04 installation language in isolinux/lang? I'm trying to make an auto install ISO using this repo as ...
0
votes
1answer
633 views

autoinstall options ignored on Ubuntu 20.04

Have been using preseed to install systems for awhile and wanted to learn about autoinstall/cloud-init. I was working through the example here: https://ubuntu.com/server/docs/install/autoinstall-...
0
votes
0answers
44 views

cloud-init not able to modify order cloud.cfg configures server

The problem I have is I need to run the /opt/cloud-init-scripts/whatever.sh script to fix the network right after cloud-init writes the file /etc/netplan/50-cloud-init.yaml however no matter what ...
1
vote
0answers
164 views

Ubuntu 20 VM getting stuck showing Reached target cloud-init target

I am able to ssh to the host. But unable to get login Prompt on VMware web console. As I have to clone the host so need login prompt to change its hostname and IP. Had tried to disable cloud-init by ...
1
vote
0answers
108 views

How to use cloud config in pxe boot?

I am using netbootxyz in order to boot my Ubuntu environments. In matter of the facts, is that I am using pre-seed configuration. The problem is that there are some minor bugs: gnome-terminal is not ...
2
votes
1answer
506 views

Netplan did not automatically connect to network

I installed Ubuntu 18.04.4 for Raspberry Pi 4 with a network-config file that describes my Wi-Fi networks. This file was automatically copied to /etc/netplan/50-cloud-init.yaml. However, the RPi did ...
0
votes
0answers
240 views

autoinstall Ubuntu 20.04 mount with options nodev/noexec

Anyone knwo how to give mount option in the autoinstall config ? i tried different method without success. it's my user-data conf but the mount option is ignored during the install : #cloud-config ...
2
votes
0answers
349 views

20.04 AutoInstaller - Luks Encryption

Question in regards to the user-data file for autoinstall in Ubuntu 20.04. What is the best method to luks encrypt during the autoinstall? I did a manual install and then copied the autoinstall-user-...
0
votes
0answers
75 views

Modify the order cloud-init configures the server

For my VMs network to work correctly (thanks OVH for always being different) I have to add routes: - to: 51.89.172.254/32 via: 0.0.0.0 scope: link - to: 2001:41d0:800:22ff:ff:ff:ff:ff scope: ...
0
votes
0answers
33 views

Cloud Init Extend Default User Group

Using #cloud-config system_info: default_user: groups: [some, groups, list] one can change groups default user belongs to. Is there a way to define declarativelly just only groups to be extra ...
0
votes
0answers
312 views

Ubuntu 20.4 auto install - password salt not being stored in /etc/shadow

I'm auto installing ubuntu according to this I use the following salted hash of root for a password: identity: hostname: ubuntu-00 password: "$6$FhcddHFVZ7ABA4Gi$...
2
votes
1answer
912 views

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

Ubuntu server stops responding after a precise amount of time each time it turns on?

The title says it all really. I have some docker apps running different stuff on my server, backed by a reverse proxy so I can access each docker container via subdomain. It's a very powerful server (...
0
votes
0answers
384 views

Running cloudinit commands on first boot after autoinstall

I'm trying to execute some commands on a machine that's been autoinstalled via the nocloud cloud-init provider. I've tried adding late-commands to my script running them in target as well as adding ...
0
votes
0answers
472 views

Ubuntu 18.04 LTS Cloudimg OVA on ESXI 6.5

Tried install the Ubuntu 18.04 LTS cloud image OVA file on ESXI 6.5 I filled in all the additional settings (cloud-init) like password, ssh key, instance id etc. But I cannot log in with ubuntu:...
2
votes
2answers
293 views

Setting up local static IP with netplan causes network to sleep

I am currently setting up some rpi4 with ubuntu server 20.04, I have setup their static IPs using netplan(Wired LAN) and Somehow they end up sleeping in both SSH and TCP, if left for more than a ...
0
votes
0answers
238 views

Received 0 SUCCESS signal(s) out of 1. Unable to satisfy 100% MinSuccessfulInstancesPercent requirement

{ "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "VpcId": { "Type": "AWS::EC2::VPC::Id", ...
2
votes
3answers
1k views

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/...
3
votes
2answers
2k views

How to autoinstall config “fill disk” option on Ubuntu 20.04 Automated Server Insall?

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 the ...
2
votes
2answers
1k 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
107 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
427 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,...
2
votes
3answers
7k 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 ...