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!
 
1. why? is this a proxmox thing?

i dont use proxmox, i only read the forums. but i am using for years debian + lxd and now incus container. Max ressources for every container is default setting. running multiple docker inside incus and never had any problem.
 
1. why? is this a proxmox thing?
It tends to break in unpredictable ways when LXC or kernel or systemd is upgraded. Containers inside of containers. What is the point of that again?

i dont use proxmox, i only read the forums. but i am using for years debian + lxd and now incus container. Max ressources for every container is default setting. running multiple docker inside incus and never had any problem.
Good for you.
 
  • Like
Reactions: Kingneutron
It tends to break in unpredictable ways when LXC or kernel or systemd is upgraded. Containers inside of containers. What is the point of that again?

How do you run docker software without doing a fat virtual machine then on proxmox? I dont think the idea of docker was to be running inside a vm. But you have to go with development and docker is a thing everywhere. We are using it in our production.

It can break things? Where the hell isn't that possible in IT :D
 
How do you run docker software without doing a fat virtual machine then on proxmox? I dont think the idea of docker was to be running inside a vm. But you have to go with development and docker is a thing everywhere. We are using it in our production.
I thought the whole point of Docker was to be able to put a bunch of containers on a computer and have them be isolated from each other. Which is what LXC does. Using the exact same mechanisms but with different management schemes.
 
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?
set the cpu max count to the total threads of a SINGLE socket. If you set it to higher you may end up with performance issues. see https://pve.proxmox.com/pve-docs/chapter-pct.html#pct_cpu for more information.

How do you run docker software without doing a fat virtual machine then on proxmox?
This is where I think you may want to rethink your entire approach. For better or worse, docker is not a first class citizen in PVE. There are philosophical reasons for this- dig through the forums to gain insight as to the devs position on the subject. If you're designing a docker/k8s farm, you're better off with a docker specific distro.
 

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!