Freshly Packaged
LXC containers are not just for developers. Adventurous users can also find uses for them.
|
LXC containers are not just for developers. Adventurous users can also find uses for them.
Containers is the current buzzword in terms of application development and cloud computing and has been ever since Docker achieved notoriety about a year and a half ago. We've reported on containers previously and predicted that end users will also benefit from this new free technology. In this article, I'll explore how things might look in time.
Some readers might remember the first appearance of the free VirtualBox hypervisor in 2007 that made Linux distribution testing easier. Previously, there was the VMware Player, but VMware is not free and there was the constant problem of update breaking and having to wait for the latest kernel patch to make things work again.
With VirtualBox and help from DKMS [1] such problems are a thing of the past, and ISO images of the newest distribution can be prepared for testing in a matter of minutes. The only limitation to the number of simultaneously bootable distributions is main memory and processor speed. Here, container solutions can make headway with end users, because their resource superstructure is much less resource-hungry than that of hypervisors. Hundreds of containers can theoretically share the same host kernel. Containers virtualize at the operating system level, whereas with hypervisors this happens on hardware.
In this article, therefore, I'll test how easy it now is to get a container to run on a distribution, with the graphical output redirected to the host.
Containers aren't as new as many think; in fact, Linux Containers (LXC) [2] have been around since 2006 but didn't acquire a large user base until the spring of 2013 when Docker [3] appeared on the scene. Outside of Linux, similar technologies already existed, such as FreeBSD Jail [4] or the Solaris Zones [5] that were originally built on Jails.
The granddaddy of all these is, of course, the well-known Unix chroot [6], even if the application scenarios are different. In a chroot, it might be desirable for a process to "break" from an environment, which is something that can't happen in containers.
The current hype about Docker and containers in general comes from the fact that increasingly specialized applications are making their way into the business environment, pushing out the more static software stacks of the past.
The easily copied, lightweight, and portable containers are particularly well-suited for developing applications as modules from local computers, to servers and the cloud. What I'm interested in here, however, are the qualities of the LXC and Docker container solutions for end users.
I will start with LXC and attempt to open a container on an installed Ubuntu 14.10 with a CentOS image on it (Figure 1). Ubuntu will be used as the host, because the default kernel and system settings are the most user-friendly.
Here also the lxcbr0 network bridge is already integrated, which requires somewhat more configuration in Debian. The goal is to get to a functioning container up and running as easily as possible.
Pages: 5
Docker is an economical alternative to conventional virtualization. Because each Docker containers share the underlying operating system, it enjoys the resource isolation and allocation benefits of VMs but is much more portable and efficient.
Clear Linux is an innovative cloud operating system optimized for the Intel architecture.
These package systems have names that make them sound like they could be crunchy candy bars, but in fact, they are formats that could revolutionize software installation.
Testers constantly encounter new trends in the experimental branches of Linux distributions. I look at who drives Linux forward and how the future is shaping up.
Bedrock transparently combines virtually any number of distributions with different architectures, package management, and init systems under a filesystem.
© 2024 Linux New Media USA, LLC – Legal Notice