View Categories

Proxmox LXC Templates

1 min read

Proxmox LXC Templates are pre-made templates that you can use to get started quickly. There are basic containers for every major distribution but also a lot of images that come prepared with various software-stacks like LAMP, Redis, OwnCloud and so on.

pveam available

this command will list all the templates that are currently available for download. These are maintained by the Proxmox Team (and/or turnkey developers), which means they are battle-tested for Proxmox and are safe to use

To download a single template, use the

pveam download <storage> <file>

command, where “storage” is the Proxmox storage where you want to save the template and “file” is the file-name, so for example:

pveam download local debian-11-standard_11.3-1_amd64.tar.zst

This will download the Debian 11 container-image to your local storage.

Templates sometimes get updates with new features, or just a new build, so in order to keep your templates up to date, use the

pveam update

command, which will update your local database, so you can re-download the images you need.

Sometimes it might be desirable to download all the available templates in the repositories to your storage. For that, someone on the Proxmox Forums wrote a simple one-liner:

pveam available | xargs -0 | awk '{print $2;}' | while read template; do pveam download <storage> $template; done

This will loop over all available templates and pipe that output into the download command. Make sure to replace “storage” with your actual storage.

Sources:
https://pve.proxmox.com/pve-docs/pveam.1.html
https://forum.proxmox.com/threads/bulk-template-download.27655/#post-323704

Powered by BetterDocs

Leave a Reply

Your email address will not be published. Required fields are marked *