Questions tagged [cloud-init]

131 questions
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…
ePezhman
  • 11
  • 1
  • 6
1
vote
1 answer

Mount Azure virtual hard disks on filesystem during Azure Linux VM creation using Terraform

I am using Terraform to automate VM creation on Microsoft Azure. The Terraform script shall accept data disk configuration as below (refer data_disk_size_gb), create the virtual hard disk and subsequently mount it in the given filesystem…
zaidwaqi
  • 153
  • 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 …
sloweriang
  • 121
  • 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…
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…
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…
feroze
  • 245
  • 3
  • 10
0
votes
0 answers

Fedora 30 cloud-init unable to render networking error

I created a Fedora 30 template on Proxmox with KVM virtualization. When I create a VM from template and start it with cloud-init drive configured properly, I get unable to render networking error. NetworkManager service is enabled and running. How…
jwalker
  • 98
  • 7
0
votes
1 answer

Setting up DHCP with CloudInit and Bonding

I currently have a cloud init file that setsup the DHCP via the following: - path: /etc/systemd/system/dhclient@.service content: | [Unit] Description=Run dhclient on %i interface After=network.target [Service] Type=oneshot …
RickD
  • 155
  • 2
  • 3
  • 15
0
votes
1 answer

AWS EC2 instance stuck on cloud-init

Usually my AutoScaling group spawns instances using Launch Configuration pretty normally but today it gets stuck whilst launching a new instance at the [cloud-init] checking scripts ... Image for reference, I don't know what is wrong. It just shows…
0
votes
1 answer

set hostname using cloud-init

I recently tried changing an Ubuntu machine hostname. After a reboot, I found the name was reverted to it's previous one. A quick search suggested this was happening because of cloud-init. If I change the setting preserve_hostname to true, the…
GKman
  • 495
  • 3
  • 9
  • 16
0
votes
1 answer

AWS EC2 - Instance works as T2, but not M4 or C4

I'm having a very strange problem with server instance, which I'm trying to upgrade from PV to HVM. I've got through the migration process, and created an AMI. If I launch an instance from this AMI as a T2 type, of any size, it works fine. However,…
user1751825
  • 365
  • 6
  • 13
0
votes
1 answer

Disable CoreOS cloudinit

I wanted to try CoreOS for a new vServer. So far I like it but made i fatal mistake: I created it by a cloudinit file instead of the newer ignition method and now on every update reboot it resets my password and ssh settings... I was to lazy to…
Florian Brinker
  • 173
  • 1
  • 3
  • 10
0
votes
1 answer

Include cloudinit config to new VM

On my KVM hypervisor I would like to add a new VM with CentOS-7-x86_64-GenericCloud.qcow2 disk but with my custom cloudinit config to make sure that the new VM will start up with all users, correct hostname and network settings. I've tried to…
netmat
  • 61
  • 2
  • 4
0
votes
2 answers

Are there any examples of using cloud-init offline (or without cloud hosting)?

Note: This is NOT a Raspberry Pi specific question. It is a Linux System Administration question. Please do not try to have it removed from Server Fault. I see many "Hello, World" level demos that are specific to [insert cloud hosting platform…
Bruno Bronosky
  • 4,529
  • 3
  • 26
  • 34
0
votes
1 answer

Cloud-growpart what am I doing wrong with partitioning

I'm preparing a Centos7.4 cloud image and I have install cloud-init cloud-utils and cloud-growpart. When I import into Openstack as a qcow2 image it doesn't resize my root if I create an instance with a bigger disk than the orginal image. If I use…
AndyM
  • 948
  • 2
  • 16
  • 26
1 2 3
8 9