Skip to main content
Mario Galán

Main navigation

  • Home
  • Contact
  • EN
  • ES
User account menu
  • Log in

Importing a Debian cloud-init image into Proxmox

Cloud-init is the standard for initializing virtual machines on any provider.

The instructions for Debian will be very similar to those used in the official documentation for Proxmox for Ubuntu.

First, we will need to download the appropriate Debian image for the Proxmox environment. We can use either generic or genericcloud, but the latter is lighter because the drivers for physical devices have been removed, so that is the one we will download.

To do this, we will open a shell in Proxmox and type:

We will create a new VM and import the image there.

The generated disk is only 3G, but we can expand it with the following command. In any case, we can change the disk size when instantiating the template, and on the first boot, the filesystem will adapt to the existing size.

We will assign a CD-ROM to the machine to load the cloud-init configuration.

The cloud-init options should appear as available in the web interface.

We will configure the image to boot from the main disk.

And finally, we convert the VM into a template from which we can quickly clone new VMs.

In the list of resources in Proxmox, we would have the following:

 

Tags

  • Proxmox
  • Debian

Comments

About text formats

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
RSS feed
Powered by Drupal