Skip to content

How is cloud-init working at all? #405

@prologic

Description

@prologic

Okay, let's leave #274 alone for the moment...

I have created a very simple template using Packer and that has worked, I can clone that as a new VM.

Here is now my main.tf using this provider:

resource "proxmox_vm_qemu" "cloudinit-test" {
  name = "tftest1"
  target_node = "vz1"

  clone = "burmilla-1-9-2-amd64"

  disk {
    storage = "zfs"
    type = "scsi"
    size = "60G"
  }

  cores = 2
  sockets = 1
  memory = 2048

  network {
    model = "virtio"
    bridge = "vmbr0"
  }

  ssh_user = "rancher"

  os_type = "cloud-init"
  ipconfig0 = "ip=dhcp"

  sshkeys = <<EOF
ssh-rsa xxx 
EOF
}

This gets created and boots just fine, but I don't see a CloudDrive created for it or anything under the "Cloud-init" section for that VM in the Proxmox VE.

What's going on here? Where is that sshkeys going here? I'm happy to debug this, but the docs are very confusing.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions