Skip to content

Provisioning Task: VM Provisioning (Proxmox + Cloud-Init)

Goal

Deploy a virtual machine using a prebuilt Proxmox template with Cloud-Init for automated configuration.

Steps

  1. Clone from template

    qm clone 9000 105 --name new-vm --full
    

  2. Configure Cloud-Init

    qm set 105 --ciuser username --cipassword 'changeme' --ipconfig0 ip=dhcp
    qm set 105 --sshkey ~/.ssh/id_rsa.pub
    

  3. Resize disk (optional)

    qm resize 105 scsi0 +20G
    

  4. Start the VM

    qm start 105
    

  5. Login and verify

    ssh username@<vm-ip>
    

Output

A ready-to-configure VM with user, SSH, and network settings applied via Cloud-Init.