How to create a LXC container in Proxmox?

In this section, we will detail the basic steps for container creation.

Step 1: Select the Option to Create an LXC Container

First, we access the Proxmox interface and choose the option to create an LXC container. Then, we follow the steps outlined below:

Step 2: Identify the LXC Container

  • Node: Select the node where the container will be created.
  • ID: Assign a unique ID to the container.
  • Name: Choose a name for the container.
  • Access Password: Set the password for the container’s root user. Alternatively, you can configure access using an SSH public key.

Step 3: Choose the Template

In this step, we select the template from which the container will be created. The available templates are those we previously downloaded and will be chosen from local storage. You can find how to add LXC templates to your proxmox using this guide  Telecu Knowledge Base - How to Add LXC Templates in Proxmox?.

Step 4: Select the Disk

Here, we configure the container’s root disk:

  • Storage Medium: Choose the storage location for the disk, such as local-pve, where it will be stored in a logical volume.
  • Disk Size: Define the disk size to be assigned to the container.

Step 5: Select the CPU

Choose the number of virtual CPU cores (vCPU) that the container will use.

Step 6: Configure Memory

Specify the amount of RAM that will be assigned to the container, measured in MiB (not MB!).

Step 7: Configure Networking

By default, the container will be connected to the external bridge vmbr0, and its network interface will be eth0. This configuration can be modified if necessary, allowing the assignment of a custom software-defined bridge. Additionally, we can choose between:

  • Automatic Network (DHCP): The network configuration will be assigned automatically.
  • Manual Network: We must specify the IP address (in IPv4/CIDR format) and the gateway.

Step 8: Configure DNS

Finally, we can configure the DNS servers the container will use. If left blank, it will use the DNS settings defined on the Proxmox server.


With these steps completed, the LXC container will be configured and ready for use in Proxmox.