How to create lxc container proxmox

Content on WhatAnswers is provided "as is" for informational purposes. While we strive for accuracy, we make no guarantees. Content is AI-assisted and should not be used as professional advice.

Last updated: April 4, 2026

Quick Answer: To create an LXC container in Proxmox, navigate to your Proxmox VE web interface, select a node, click 'Create CT', and follow the wizard. You'll choose a template, set resource limits (CPU, RAM, disk), configure networking, and finalize the creation.

Key Facts

What is an LXC Container in Proxmox?

LXC (Linux Containers) is an operating-system-level virtualization method for running multiple isolated Linux systems on a single Linux kernel. In Proxmox Virtual Environment (Proxmox VE), LXC containers offer a lightweight alternative to full virtual machines (like KVM). They share the host's kernel, which means they consume fewer resources (CPU, RAM, disk space) and start up much faster than traditional VMs. This makes them ideal for running services, web servers, development environments, or any workload that doesn't require a different operating system kernel than the host.

Creating an LXC Container: Step-by-Step Guide

The process of creating an LXC container in Proxmox VE is straightforward and guided by a web-based wizard. Here’s a detailed breakdown:

1. Accessing the Proxmox VE Web Interface

Log in to your Proxmox VE management interface using your web browser. You will typically access it via an IP address or hostname followed by port 8006 (e.g., https://your-proxmox-ip:8006).

2. Selecting the Target Node

In the left-hand navigation pane, select the Proxmox VE node (server) where you want to create the LXC container. This is important if you have a Proxmox cluster.

3. Initiating Container Creation

Once the node is selected, click on the 'Create CT' button located in the top toolbar. This will launch the 'Create Container' wizard.

4. General Settings: Container ID and Name

The first step in the wizard is to assign a unique Container ID and an optional hostname for your new container. The Container ID is a numerical identifier automatically assigned by Proxmox VE. The hostname is the name the container will use within its operating system.

5. Choosing a Template

This is a critical step. You need to select an LXC template, which is essentially a pre-built operating system image. Proxmox VE supports various Linux distributions like Debian, Ubuntu, CentOS, and Alpine. You can download templates directly from Proxmox VE by navigating to Node > local (your_storage) > CT Templates and clicking 'Download'. Common choices include:

Select the desired template from the dropdown list. Ensure you have downloaded the template beforehand to your Proxmox VE storage.

6. System Settings: Network, DNS, and Timezone

In this section, you configure basic system settings:

7. Resource Allocation: CPU, RAM, and Disk

This is where you define the resources your container will have access to:

8. Advanced Settings (Optional)

The wizard offers advanced options for more granular control:

9. Confirmation and Creation

Review all the settings you've configured in the summary screen. Once you are satisfied, click 'Finish'. Proxmox VE will now create the container based on the selected template and your specified configurations. This process involves creating the disk image, setting up the network, and unpacking the template files.

10. Starting and Accessing Your Container

After creation, the container will appear in the navigation pane under your selected node. Select the container, and you can then 'Start' it. To access the container's shell, select the container, click 'Console' in the top toolbar, and then choose 'Shell'.

Best Practices and Considerations

By following these steps, you can efficiently create and manage LXC containers within your Proxmox VE environment, leveraging their lightweight nature for various applications and services.

Sources

  1. Proxmox VE Documentation - PCT (Proxmox Container)CC-BY-NC-SA-4.0
  2. LXD - IntroductionCC-BY-SA-4.0
  3. Linux Containers - WikipediaCC-BY-SA-3.0

Missing an answer?

Suggest a question and we'll generate an answer for it.