How to configure an LXC container to use all available resources like in Docker?

bolvan

New Member
Jul 8, 2024
3
0
1
Hello,

I am using Proxmox and creating LXC containers. I need one of the LXC containers to utilize all available resources (CPU, RAM, disk) similar to how Docker containers can access all host resources.

Could someone guide me on how to properly configure an LXC container for this? What parameters and settings need to be adjusted?

I would appreciate detailed instructions or links to documentation.

Thank you!
 
CPU: You can delete the value in "Cores". This will remove the limit and give the container access to all available CPU cores.

RAM: Just increase the value. This seems to be the hard limit which the container is allowed to use. It isn't reserved for the container.

Disk: The default disk is using a file which contains a filesystem. Additionally add mount points to a directory on the host. This way you use the filesystem of the host directly and you can even share files between multiple LXCs.

Documentation: https://pve.proxmox.com/wiki/Linux_Container#pct_settings
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!