Questions tagged [cloud-init]
9 questions
4
votes
1 answer
invalid config for cloud-init but apparently still works -- how do I remove the warning?
This is my cloud-init
#cloud-config
package_update: true
package_upgrade: true
users:
- name: sammy
ssh-authorized-keys:
- ssh-rsa abcd
- ssh-rsa efgh
after i successfully run it on ubuntu 22.04 vps i checked
I see this when i do…
Kim Stacks
- 625
3
votes
1 answer
Password of new user with LXD and Cloud-init
I'm trying to create a profile to automate the creation of a container, but I'm having trouble with cloud-init. For some reason the password is not being set for the user and is also not being added as a sudoer. Here is the YAML:
config:
…
Matheus Saraiva
- 131
2
votes
2 answers
cloud-init how to run a curl before and after every non runcmd
This is my default cloud-init
package_update: true
package_upgrade: true
users:
- name: sammy
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1...
sudo: ['ALL=(ALL) NOPASSWD:ALL']
groups: sudo
shell: /bin/bash
write_files:
- path:…
Kim Stacks
- 625
1
vote
2 answers
Issues with Cloud-Init user setup
I am trying to setup a headless ubuntu server so that in init a rdp would be setup so that I can connect to the Remote Desktop right away after the boot process is complete.
I found that this…
Turbotrout
- 21
1
vote
1 answer
Deploying Ubuntu 22.04 with PXEBoot using Syslinux
I have a functional DHCP, ftp and tftp server with a tftpboot directory in which the machines configured in PXEboot come to load syslinux without problems, from the network.
I am trying to install ubuntu 22.04 in PXE via SYSLINUX.
I have followed…
Andy McRae
- 376
1
vote
1 answer
Cloned Ubuntu VMs in vSphere get same IP, despite resetting /etc/machine && /var/lib/dbus/machine-id
vSphere 7.0 + Ubuntu 18 / 20 (tried both)
I am trying the steps from this blog post:
https://blah.cloud/kubernetes/creating-an-ubuntu-18-04-lts-cloud-image-for-cloning-on-vmware/
I also tried this…
KidACrimson
- 444
0
votes
1 answer
How to create a partition in a disk using cloud-init
I am using cloud-init to setup an instance in oracle cloud.
I have the following yaml to create a partition on a drive, format it for ext4 and mount it.
#cloud-config
disk_setup:
/dev/sdb: {layout: true, overwrite: true, table_type:…
feroze
- 101
0
votes
0 answers
How to preserve existing partition sizes with cloud-init autoinstall in NoCloud configuration
I'm using Ubuntu 24.04.1 with Cloud-Init and an autoinstall configuration to set up the system using NoCloud. Everything works perfectly when I manually define the partition sizes, specifying each in GB and setting the last partition size as…
piotr5151
- 31
0
votes
1 answer
Persistent promiscuous mode in Debian 12
TLDR: How do you add persistent promiscuous mode in Debian 12?
I'm running a Proxmox server with a few virtual machines and each VM is running separate Docker containers for different tasks. Previously I've had no problem with promiscuous mode in…
samumoil
- 21