Import LXC container template from linuxcontainers.org

andreisrr

New Member
Feb 2, 2024
20
4
3
How can one import a LXC container template from linuxcontainers.org?
According to https://images.linuxcontainers.org/ there are many more LXC container templates then those available as predefined templates by PROXMOX. Understandably, since those in the template list are officially supported by PROXMOX.

LXC containers from linuxcontainers.org don't seem to be available as direct downloads, but only available through:
Code:
lxc create -name NAME -t download

Such a command will create a container on a generic system, but not one manageable through ProxmoxVE.

Apparently a Proxmox template (tried some Turnkey templates) is a .tar.gz or .tar.zst archive of the entire root filesystem of what is supposed to be the container.

Documentation here https://pve.proxmox.com/wiki/Linux_Container does not handle importing templates (ie from linuxcontainers).

I found this link https://wiki.chucknemeth.com/proxmox/lxc/lxc-template showing how to create your Proxmox LXC template from a modified container, but this relies on starting from an existing template.
 
I'd suggest to use the pveam command from the shell:
Bash:
pveam available
pveam download <storage> <name>
I find this the easiest way.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!