Create lxc template with proxmox

Step 1) Download the LXC/openVZ template
Step 2) Create an LXC container with this template
Step 3) Boot the container
Step 4) Enter the container via console (pct enter <id>)
Step 5) Install / modifY anything you want
Step 6) Remove the network configuration from the network interface
Step 7) Shutdown the container
Step 8) Make a backup with vzdump and select tar.gz as extension
Step 9) Move and rename your xyz.tar.gz to /var/lib/vz/template/cache/template-version.tar.gz
Step 10) Use your new template on new containers

  • 4 Users Found This Useful
Was this answer helpful?

Related Articles

Restore LXC container to specific storage

If you want to restore an LXC container (ID 102) to a storage pool called "pool01", you can do so...

Calculate the pg_num on proxmox

The formula to calculate the pg_num on Proxmox is as followed:                 (OSDs * 100)Total...

Prevent LXC containers from using dmesg

  Step 1: Create the directory to put the configuration file in to prevent 'dmesg' from working:...

Prevent dmesg on LXC node for all containers

By default on proxmox, the command 'dmesg' gives the global output from the main node. You don't...