LXC container configuration file

From Proxmox VE 4.0, OpenVZ has been dropped in favor of LXC containers. LXC is derived from OpenVZ for the mainline kernel. One of the main advantages of LXC is that it can be used on top of the standard Linux kernel without needing a special kernel, as is the case for OpenVZ.

When using LXC, keep in mind that live migration of a container is not possible as of Proxmox VE 5.0. The container will need to be powered off to commit offline migration.

The following is the LXC configuration file of the container #101 in our example cluster, which is located in /etc/pve/lxc/101.conf:

LXC container configuration is ...

Get Mastering Proxmox - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.