Questions tagged [lxc]

LXC is an operating system-level virtualization method for running multiple isolated Linux systems (containers) on a single control host. It is sometimes referred to as “chroot on steroids”.

LXC provides operating system-level virtualization not via a full blown virtual machine, but rather provides a virtual environment that has its own process and network space. LXC relies on the Linux kernel cgroups functionality that became available in version 2.6.29 and is now available in all further kernel distibutions.

Cgroups was developed as part of LXC. It also relies on other kinds of namespace-isolation functionality, which were developed and integrated into the mainline Linux kernel.

LXC is similar to other OS-level virtualization technologies on Linux such as OpenVZ and Linux-VServer, as well as those on other operating systems such as FreeBSD jails. LXC Containers can define various cpu limits, memory limits etc. (In short all parameters that can be set via CGROUPS) to prevent any one container from interfering with all other containers running on the same LXC host.

LXC uses the linux bridge-utils commands to create local VLANs, and attach containers and physical interfaces to them. With containers the physical overhead (ram, swap space, one kernel per VM, plus hypervisor) that is present in virtualization methods is reduced. With containers, one kernel and one virtual memory space is shared between all the containers running on that host.

For a comparison of other Operating System virtualization techniques, see this link

557 questions
12
votes
1 answer

Lost memory on Linux - not cached, not buffers

My Ubuntu 12 server is mysteriously losing/wasting memory. It has 64GB of ram. About 46GB are shown as used even when I shutdown all my applications. This memory is not reported as used for buffers or caching. The result of top (while my apps are…
David Bourget
  • 121
  • 1
  • 4
10
votes
1 answer

Linux Namespaces: Is it possible for a network namespace to exist without being associated with a process?

The ip netns creates the reference to the (named) network namespace in /var/run/ns, which could be easily tracked. Also, the same could be determined through /proc/[pid]/ns/net. However, it is possible for some custom program to create a net ns and…
user31986
  • 1,234
  • 1
  • 8
  • 25
10
votes
4 answers

What's the difference between Docker and Rocket from CoreOS?

Can anyone understand and explain the fundamental differences of Docker and Rocket? I don't seem to get it. Maybe it's just too new of a direction. Hope someone can explain the fundamental pros and cons of Docker vs…
stashfree
  • 625
  • 5
  • 19
10
votes
1 answer

How to create a LXC container without rootfs

I want to create a container without "rootfs" in lxc 1.0.5 and Ubuntu 14.04. I did it before in previous versions of lxc. In previous versions if we use lxc-create without "-t" option, it will create a container without "rootfs". so I…
Mojtaba
  • 179
  • 2
  • 13
10
votes
3 answers

LXC - Linux Containers - Add new network interface without restarting

Searching on google, there's only way to add new network interface is adding to config file. Is there any lxc command that we can add lively, (don't need to restart the container)? The page mentioned how to add second network interface:…
Diamond
  • 173
  • 1
  • 2
  • 13
10
votes
5 answers

Can docker run inside a Linux Container?

Koding is a collaborative programming environment, which creates a virtual machine for multiple user to colaborate on software development. They use Linux Containers to virtualize the machines. I'm not being able to install docker on…
tiagoboldt
  • 2,336
  • 1
  • 22
  • 30
10
votes
2 answers

How to configure docker to be able to have internet access via wireless connection?

I am trying to build a docker image by using the ones in the repository however i haven't been able to run 'apt-get update' 'apt-get install' commands because it seems that the container is not connected to the internet. I think the problem is…
sarslanhan
  • 507
  • 2
  • 7
  • 13
10
votes
1 answer

LXC without chroot

Is there any way to use LXC for resource management using process groups without creating containers? I am working on a service that runs arbitrary code inside a sandbox, for which I am only interested in hardware resource management. I don't want…
Jeroen
  • 28,942
  • 33
  • 116
  • 190
10
votes
3 answers

Why can't rsyslogd find libgcc_s.so.1?

Scenario: Running a debootstrapped Ubuntu 11.4 lxc guest on a Ubuntu 12.4 lxc host (both 64 bit) Inside the lxc guest, rsyslogd is constantly crashing with SIGABRT stating: libgcc_s.so.1 must be installed for pthread_cancel to…
UsAaR33
  • 3,218
  • 2
  • 26
  • 53
9
votes
1 answer

proxmox lxc container failed to start

When I try to run my lxc container, I get: lxc-start: 100: lxccontainer.c: wait_on_daemonized_start: 751 No such file or directory - Failed to receive the container state lxc-start: 100: tools/lxc_start.c: main: 371 The container failed to…
0xdeface
  • 249
  • 2
  • 11
9
votes
3 answers

How to programmatically monitor if a docker container exited?

I am running multiple named docker containers (200+) on my VM Host. I have a manager script/code that is supposed to manage the containers from the host. I would like to know if there is any event-based mechanism to get notified when a container…
Nataraj
  • 359
  • 7
  • 15
9
votes
2 answers

How does Docker share resources

I've been looking into Docker and I understand from this post that running multiple docker containers is meant to be fast because they share kernel level resources through the "LXC Host," however, I haven't found any documentation about how this…
blankenshipz
  • 366
  • 2
  • 8
9
votes
2 answers

view tags of a docker image from index.docker.io?

How does one view what tags are available for a docker image on index.docker.io before pulling? Using sudo docker pull debian will get me all the tags associated with debian which I don't need.
Sindhu S
  • 803
  • 9
  • 17
9
votes
3 answers

docker attach vs lxc-attach

UPDATE: Docker 0.9.0 use libcontainer now, diverting from LXC see: Attaching process to Docker libcontainer container I'm running an istance of elasticsearch: docker run -d -p 9200:9200 -p 9300:9300 dockerfile/elasticsearch Checking the process it…
Luca G. Soave
  • 11,195
  • 10
  • 55
  • 105
8
votes
1 answer

Is it possible to read messages passed over stdout from within a Docker container? (without `docker logs`)

Motivation: To run a basic health-check on a docker container by counting that a certain number of messages flow across stdout over a certain time horizon Immediate goal: From within a shell started by docker exec, read data that is being piped to…
JacobWuzHere
  • 763
  • 6
  • 11
1 2
3
37 38