Questions tagged [cloud-init]
117 questions
1
vote
1 answer
In Amazon EC2, what's the best way to clone a private github repository on boot?
I need to configure an autoscale group of EC2 instances that on boot will clone a particular branch and commit from a private github repository, then execute code from inside that repository.
I'm using an Ubuntu-derived AMI that has the cloud-init…
![](../../users/profiles/116461.webp)
leted
- 11
- 1
- 2
1
vote
2 answers
Cloud-init not executing on Fedora 16
Cloud init does not come with the base instance I uploaded from Amazon(Fedora 16 x86_64), so I installed using
sudo yum install cloud-init
Now when I launch this instance via
ec2-run-instance -f my_bash_script
It copies my_bash_script to…
![](../../users/profiles/158828.webp)
Ed Sullivan
- 111
- 5
1
vote
0 answers
rhel - cloud-init changes SSH config
We want to use cloud-init to resize the rootfs in our pipeline. The resize itself works fine, but it seems like the default cloud-init config (/etc/cloud.cfg) changes also other settings like SSH for example.
We really dont want that, but there is…
![](../../users/profiles/981890.webp)
MSC
- 11
- 1
1
vote
1 answer
Debian 11 dpkg-reconfigure cloud-init does not run the graphical menu
I'm trying to run dpkg-reconfigure cloud-init on Debian 11
After I run the command, this shows up multiple times in the terminal:
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TIME =…
![](../../users/profiles/561728.webp)
Philip Scot
- 15
- 2
1
vote
0 answers
Not able to setup administrator password with cloudbase-init
i try to install a windows server 2019 with cloudbase-init. I did the following steps to do this:
Install a Windows Server 2019 with Desktop Experience
Install Cloudbase-Init
Added the following lines to "Cloudbase-init.conf" and…
![](../../users/profiles/953873.webp)
David Koenig
- 11
- 1
1
vote
1 answer
How to ensure Cloud-Init runs exactly once and once only?
As far as I can see, cloud-init runs every time the config changes. Not just the very first time the system boots, but every time the provided configuration changes. This makes somewhat sense, as I guess it's hard to define the "first time" (the…
![](../../users/profiles/319226.webp)
miho
- 192
- 12
1
vote
2 answers
Openstack ubuntuVM SSH public key Permission denied on first boot
I am deploying Openstack(I tried victoria and ussuri) with kolla-ansible on 3 CentOS 8 Nodes (1=Control+Compute,2 and 3=Compute). Deployments works fine without any problems but when I create a new VM with an ubuntu image…
![](../../users/profiles/948686.webp)
Michael
- 11
- 1
1
vote
2 answers
How do I download and install a regular DPKG package in a cloud-init script?
I'm spinning up lightweight containers on a Linux Host using LXD/LXC.
The sole purpose of these containers is to host "Dotnet & Dotnet core apps"
For a while I've been using Ansible, but recently I found that I could actually embed an init script…
![](../../users/profiles/95421.webp)
shawty
- 293
- 4
- 13
1
vote
0 answers
Cloud-init for ubuntu-20.04-server-cloudimg works but not ubuntu-20.04-minimal-cloudimg-amd64
So I'm trying to use cloud-init with minimal image ( https://cloud-images.ubuntu.com/minimal/releases/focal/release/ubuntu-20.04-minimal-cloudimg-amd64.img ) but it does not seem to work at all. The exact same procedure works with the server image (…
![](../../users/profiles/554791.webp)
Andrew
- 11
- 1
1
vote
0 answers
While creating instances, Cloud-init stops before creating the SSH keys
We have OpenStack v2.3.1, Mitaka with KVM installed on our cluster. While creating instances, the VMs are created successfully every time. However, Cloud-init randomly stops before creating SSH keys only on a few of the instances (this is not…
![](../../users/profiles/98021.webp)
ePezhman
- 11
- 1
- 6
1
vote
1 answer
How to configure multiple interface for cloud_init_nics using variables in ansible
i need some help on configure multiple cloud_init_nics using variable files.
Here is my variable files for example:
files/dict
vm:
all:
- name: rhel7
hostname: rhel7
dns: "8.8.8.8 8.8.4.4"
nic:
- nic_name: eth0
…
![](../../users/profiles/421958.webp)
sloweriang
- 21
- 1
- 6
1
vote
0 answers
How to pass VM name (not hostname) to VM during provisioning
THE SHORT VERSION
When provisioning a new VM through the vCenter API, we need to pass the VM's given name (the name given in the vCenter UI, not the hostname) to the OS during the initial boot/provisioning phase. I'm wondering if there's any way to…
![](../../users/profiles/590927.webp)
Kodo
- 121
- 4
1
vote
2 answers
powershell user data script run on restart of the Windows instance
We have windows servers that do application initialization which takes almost 3-4 hours for servers to be online. So to avoid downtime we use autoscaling group lifecycle hooks. Now we want to shut down all the servers at night and start them in the…
![](../../users/profiles/167266.webp)
Shailesh Sutar
- 1,427
- 4
- 22
- 40
0
votes
1 answer
cloud-init script with jinja template is not being processed with iinja
I have a cloud-init script, that is using jinja templating. It looks like this:
## template: jinja
#cloud-config
merge_how:
- name: list
settings: [append]
- name: dict
settings: [no_replace, recurse_list]
runcmd:
- mkdir -p…
![](../../users/profiles/26817.webp)
feroze
- 245
- 2
- 8
0
votes
1 answer
how to add network configuration to cloud init image to run a kvm image
I'm trying to use CloudInit to spin up VMs in a KVM hypervisor environment.
I have downloaded the Ubuntu 18.04 image and created the following config file:
#cloud-config
package_upgrade: true
users:
- name:
groups: wheel
…
![](../../users/profiles/534794.webp)
moses poudineh
- 11
- 1
- 4