Containerization vs Virtualization
Containerization vs Virtualization
Curiously, what options do you have? I currently host three Linux VMs (Debian and Ubuntu) via KVM on an Ubuntu server. I'm exploring LXC as a way to reduce resource usage on my hardware. I'd like to know if anyone has experience with LXC and how it compares to KVM in terms of resource consumption. Regarding networking, if I need separate containers for a MySQL server and another for NGINX or Apache, will I lose advanced networking capabilities? Is there a method around this other than using reverse proxying? Are there any practical setups you've shared on forums or websites that demonstrate this? I'm interested in learning more about LXC before starting.
I've mainly used the older OpenVZ setup, but if LXC is an improvement, it's essentially running distinct systems with their own virtual network connections and IP addresses. This allows you to implement any advanced networking features you desire. RAM and disk consumption are significantly reduced since only one kernel is active.
KVM is the clear choice here. OpenVZ offers no real value—it's just a placeholder. Connecting containers to networks feels like using a virtual network card. The host handles routing, directing traffic between nodes and containers. For example, you can place your MySQL server at 10.12.11.5 and your web server at 10.12.11.23, as long as the node establishes proper ARP connections.