Creating a Debian12 KVM in Proxmox 8.x (cloud-init)

The image we are going to use can be downloaded from this URL:

We start by uploading the image to Proxmox:

../_images/01cl.png ../_images/02cl.png ../_images/03cl.png ../_images/04cl.png

Let’s start creating the VM:

../_images/1cl.png ../_images/2cl.png ../_images/3cl.png ../_images/4cl.png ../_images/5cl.png ../_images/6cl.png ../_images/7cl.png

We select the created disk to later detach and delete it

../_images/8cl.png ../_images/9cl.png ../_images/10cl.png

Now, from the console, we need to link the downloaded image (.qcow2) to the VM. To do that, type the following:

qm disk import <vmid> /path/donde/bajamos/imagen.qcow2 storage --format qcow2
../_images/11cl.png ../_images/12cl.png

Once the command is executed, go back to the UI. At this point, the new disk will appear as unused. To attach it, double-click on it and press the ‘Add’ button.

../_images/13cl.png ../_images/14cl.png ../_images/15cl.png ../_images/16cl.png ../_images/17cl.png ../_images/18cl.png ../_images/19cl.png ../_images/20cl.png ../_images/21cl.png ../_images/22cl.png ../_images/23cl.png

This is the final step, which consists of setting the boot order. Make sure to set the scsi0 disk we created as the first boot option:

../_images/24cl.png

If everything was successful, after starting the VM you will see the login prompt in the console.

../_images/25cl.png