Published Nov 30, 2026, 1:30 PM EST His love of PCs and their components was born out of trying to squeeze every ounce of performance out of the family computer. Tinkering with his own build at age 10 turned into building PCs for friends and family, fostering a passion that would ultimately take shape as a career path. Besides being the first call for tech support for those close to him, Ty is a computer science student, with his focus being cloud computing and networking. He also competed in semi-pro Counter-Strike for 8 years, making him intimately familiar with everything to do with peripherals. A lot of people that run Proxmox on their home lab or server utilize its excellent capability as a hypervisor for full-fat VMs, and many use those VMs to run their services. You can upload virtually any ISO and create a VM from it and for anyone who's just starting out home labbing, it's reasonable that someone would reach for it over an LXC, especially if they don't know what the latter is. A virtual machine boots a complete operating system with its own kernel, and because of that, it treats the RAM you give it as its own. Proxmox ships with a second option that feels almost purpose-built for home labbers. If you run some of your self-hosted services in LXC containers, it shares a kernel with the host, and frees up a lot of memory for everything else. When I first started using Proxmox, I basically ignored them, and my home server's memory usage paid the price. Why a VM holds more memory than it needs to This isn't exclusive to Proxmox A VM is basically a fully-fledged computer that's being run in software. Before your app or service even gets to start, the guest has booted its own kernel on emulated hardware, and just like a real computer, all of that stuff has to run somewhere, and in a VM, it's running on the CPU cores and RAM you assigned to it. The overhead of this virtual kernel and operating system is pretty modest for one or two VMs, but once you start putting all of your services onto them, it can add up really quickly. Caching is one of the bigger factors because Linux treats unused memory as wasted memory. On its own, Linux will fill spare RAM with something called a page cache, which is tasked with holding onto several recently read files in case they're needed again in the short-term future. On your bare metal workstation that runs Linux, that's just a good performance measure, but on a VM, the host can't reclaim that cache on its own. That's also why most Linux VMs often look nearly full in the Proxmox dashboard. Proxmox is able to claw some of that memory back via the balloon driver, which runs inside the guests. For Linux guests, it's built right into the kernel, but Windows VMs have the same thing through the VirtIO driver. When the host needs more RAM and the minimum memory value is set below the max, Proxmox can tell the driver to "inflate" like a balloon, which claims some memory inside the guest so that the guest's own services and apps can't use it, allowing the host to gain some of it back. When memory pressure eases, the balloon "deflates" and the guest gets that memory back. Proxmox will only start to inflate the VM balloons once the host reaches 80 percent usage by default, but you can set this how you like. Containers only take what they actually use Much better for a system running many different services An LXC container is much more conservative in its use of host resources, and part of that has to do with it running directly on the host's kernel. What's left is a lightweight userspace that can have services installed on it without a ton of fuss. How they use memory is also a key difference here, and it's what makes them more suited to running some home services. A container's RAM allocation is enforced by the host kernel's cgroup memory controller as a ceiling. If you set a container's limit generously at 8GB, but its service only needs 2GB, it'll use what it needs the rest stays available to the host and every other guest. The container still benefits from page cache, but the host kernel manages that cache alongside everything else and can reclaim it under pressure rather than leaving it wasted inside of a guest. GPU sharing can happen across multiple LXCs Hardware passthrough is easier through containers Access to a GPU can be a game changer for services that can use CUDA or hardware transcoding, and while you might be tempted to just stuff them all into one VM and pass your graphics card through to it, you don't have to do it that way. Containers use the host's GPU driver, so several LXCs can use the same card at once instead of relying on just a single virtual machine. Bind mounts are another benefit of containers over virtual machines. A container can mount a directory or ZFS dataset from the host with a single line in its config. Compare that to a VM, which would need a network share configured the same way that a physical machine would, and that's significantly more setup. The catch with binding is file ownership: unprivileged containers map their users to different IDs on the host, so bind-mounted folders need their permissions set with that in mind. VMs are more isolated, and that can be an advantage The Freeform app open on a macOS Ventura VM The shared kernel is a double-edged sword: it's efficient because it shares a kernel, but that same efficiency is what opens it up to vulnerabilities. A kernel vulnerability that can be exploited from inside a container is a potential path to the host and every other guest on it, and conversely, a VM sits behind hardware virtualization, which exposes far less of the host to whatever runs inside. Sharing a kernel also means you're limited in your OS choice: Proxmox containers can only run Linux distros, so anything like Windows, FreeBSD, and appliance-based operating systems like OPNsense require VMs to run. Many users, including myself, run Docker instances inside LXCs, but Proxmox officially recommends that you run them inside a VM when you need maximum isolation. If you run your containers as privileged to get around some of the LXC Docker quirks, it'll work, but it's not recommended and is against Proxmox's official guidelines as well. The right tool for the right job makes all the difference VMs are excellent when you need isolation or cleaner Docker deployments, but when it comes to light services otherwise, an LXC saves a ton of performance, especially in the memory department. For the media servers, DNS blockers, and photo libraries that make up most home labs, starting them as unprivileged containers made a huge difference for me.
I switched my Proxmox VMs to LXC containers and they use a fraction of the RAM
Full Article
Original Source
Read the full article at Xda-developers →KhanList aggregates and links to publicly available news content. We do not host full articles from third-party sources. Always verify important information with original sources.