Questions tagged as ['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)
Score: 0
Armand avatar
Terraform DataSource DataSourceNone with Ubuntu 20.04
fr flag

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& ...
Score: 0
theirpuppet avatar
Terraform + Cloud-Init via extra_config & DataSourceVMware
in flag

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 ...
Score: 1
autoinstall/user-data's users section does not work at all?
mx flag

I try to follow the instruction:

autoinstall:
...
  user-data:
    write_files:
      - content: |
          cloud_init_has_run
        path: /cloud_init_flag
    users:
      - default
      - name: kim
        passwd: <hash>
        shell: /bi ...
Score: 0
ubuntu-server 20.04 automatically generated user-data does not work in autoinstall
mx flag

According to the ubuntu manual, the automatically generated autoinstall-user-data will just work. However, when I try to use it to seed the server, it report shcema error:

enter image description here

Is this file actually non-usable

Score: 0
adio93 avatar
Can't run autoinstall with ubuntu server 20.04
bt flag

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 ...

Score: 0
Leo Lu avatar
ubuntu installer hangs forever at "executing late commands" on autoinstall
ma flag

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 ...
Score: 2
J Geis avatar
Ubuntu 20.04.3 and autoinstall not starting
cn flag

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 ...
Score: 1
quantfinancequest avatar
What did cloud-init do with the SSH key it generated when I installed Ubuntu server and why was that necessary?
vn flag

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?

Score: 2
mtg avatar
How to use ssh_import_id with cloud-init on Raspberry Pi 4 /w Ubuntu 20.04 Server?
cn flag
mtg

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

Score: 0
Andrew M avatar
Need help with autoinstaller/cloud init
kg flag

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.

Score: 1
marcos avatar
Issues autoinstalling Ubuntu 20.04
fr flag

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  ...
Score: 2
ColinHam avatar
cloud-image passes default hostname to dhcp server despite cloud-init script
tr flag

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  ...

Score: 2
Combine cloud-init autoinstall with other cloud-init modules
br flag
Tom

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 ...