Questions tagged as ['cloud-init']
Problem
After building an Ubuntu 20.04 (also tried 21.04) template with Packer I'm unable to set new settings when instantiating the template with Terraform. This config had no issues with Debian 10.
Packer
{
"builders": [
{
"CPUs": "{{user `vm-cpu-num`}}",
"RAM": "{{user `vm-mem-size`}}",
"RAM_reserve_all": true,
"boot_command": [
"<esc><esc& ...
Question:
Has anyone successfully used terraform + extra_config + Ubuntu cloud images to interface with Cloud Init, providing metadata/userdata? I'm hoping this will interact with DataSourceVMware, but can't be sure at this stage.
What I've been doing:
I am using Terraform to deploy Ubuntu cloud images on VMware vSphere 7. It's been easy enough to use vApp Properties:
... below code snipped from resourc ...

I try to follow the instruction:
- https://stackoverflow.com/a/61868231/1492613
- https://gist.github.com/leogallego/a614c61457ed22cb1d960b32de4a1b01#file-ubuntu-cloud-virtualbox-sh-L46-L56
autoinstall:
...
user-data:
write_files:
- content: |
cloud_init_has_run
path: /cloud_init_flag
users:
- default
- name: kim
passwd: <hash>
shell: /bi ...
Good morning,
I have a problem with starting up autoinstall while booting Ubuntu Server 20.04 ISO. I have already read all documentation and couple internet manuals but I'm not able to make Ubuntu using user-data file.
I have user-data file prepared by Ubuntu installer. I'm trying to boot it with parameters like:
autoinstall ds=nocloud-net;s=ftp://repo/files/ubuntu2004/
I created an empty meta-dat ...
I'm trying to install my ubuntu server 20.04.03 using autoinstall. I dont have any "late-commands", but the installer hangs at "executing late commands".
installer screenshot full log screenshot
Full syslog: https://paste.ubuntu.com/p/wzrRTF3ptt/
"autoinstall" config i used:
#cloud-config
autoinstall:
packages:
- libpam-ssh-agent-auth
# late-commands:
# - curtin in-target --target=/targe ...
I have autoinstall working. However - I am trying to do it on a non-EFI box (VM in this case) and it is not working- I just get the language selection screen.
My boot line is:
root=/dev/ram0 ramdisk_size=1500000 nouveau.modeset=0 fsck.mode=skip autoinstall ‘ds=nocloud-net;s=http://MyIP/autoinstall/’ ip=dhcp url=http://MyIp/autoinstall/ubuntu-20.04.3-live-server-amd64.iso cloud-config-url=http://My ...
When installing Ubuntu server I saw that cloud-init created an SSH key for me. Why did it do this? Did this key get uploaded to any server or did it stay on my local machine for my personal use?
I'm looking to automatically setup up my SSH keys on a fresh Ubuntu Server 20.04 install on a Raspberry Pi 4 - mostly as a learning exercise. I'm trying to use the ssh_import_id
option of cloud-init to pull my SSH public key from my GitHub account and add it to ~/.ssh/authorized_keys
for the pi
user.
I cannot seem to get the ssh_import_id
config to kick in. The ~/.ssh
directory is never made for the
I am trying to pxe boot Ubuntu with cobbler using cloud-init. I already have the auto-install-user file. But I can't get around the missing CD-ROM error message. I can provide screenshots of what I'm talking about.
I'm trying to make an automated installation of Kubuntu 20.04 with a PXE-Server. First using an ubuntu20.04-live-server image and the adding de kubuntu-desktop package. The thing is that I got lost at some point, because the autoinstaller doesn't do anything that appears on my user-data file. Maybe someone can help me. This would be my PXE-Menu:
default menu.c32
prompt 0
timeout 300
menu title PXE ...
How do I get the Ubuntu 20.04 Cloud Image to send an individual hostname along with its initial dhcp request?
I am deploying Ubuntu 20.04 Cloud Images on vSphere using Nutanix Calm and a cloud-init cloud-config script to set the hostname, add a user and pass ssh keys.
The Vm is created and boots, the hostname appears in vSphere correctly and the user is created along with an ssh key.
However, the dhcp ...

I'm trying to provision a VM with cloud-init and the server live image. (I'm not using the cloud image, for infrastructural reasons I have to install from ISOs)
However, whenever I'm trying to combine autoinstall
with e.g. write_files
, the write_files
part does not seem to succeed.
The following installs Ubuntu:
#cloud-config
autoinstall:
version: 1
identity:
hostname: boxy-001
password: "$1$k ...