Managing an LXC container
In Proxmox, each LXC container has two configuration files. One defines the raw resource allocation while the other, used by Proxmox, is used to define a container. The Proxmox container configuration file can be found at the following location:
/etc/pve/local/lxc/<container_id>.conf
For our example container ID #101
, the following are the contents of this configuration file:
![](https://static.packt-cdn.com/products/9781788397605/graphics/f2c294e0-a5f2-4ddb-8603-f3bcb8ea0f82.png)
The raw container configuration file can be found at the following location:
/var/lib/lxc/<container_id>/config
The following is the content of the resource allocation configuration file for our example container:
![](https://static.packt-cdn.com/products/9781788397605/graphics/8862a231-6c88-4cff-bcca-569a2586944a.png)
There is another directory for the root filesystem that is a mount point for the allocated storage space inside the container. The location of the directory is /var/lib/lxc/<container_id>/rootfs/
.
But in Proxmox, this directory is not used to store container data. For local storage, the container virtual disk image is created in /var/lib/vz/images/<container_id>...