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

591 questions
0
votes
1 answer

LXC container shows disk space of main node

I have installed lxc on centos 6 and file based container and one lv based container however both show disk space of the main node and not the resources allocated to the containers after df -h df -h Filesystem Size Used Avail Use% Mounted…
0
votes
1 answer

lxc - Linux container can not access device node

I used the following configuration to bind the lirc0 into the container. lxc.mount.entry = /dev/lirc0 dev/lirc0 none bind,optional,create=file The attribute of the /dev/lirc0 in the host as follows. crw------- 1 root root 251, 0 Jul 16 20:00…
user1395066
  • 127
  • 1
  • 1
  • 11
0
votes
2 answers

How to install LXC c libraray?

I know Linux Container (LXC) has an API. We can use it via liblxc, which should be a c library. But I cannot find any? So, how people use this API currently?
Xin Li
  • 139
  • 9
0
votes
1 answer

segfault appears in linux container start, but fine with chroot?

I build a linux container from scratch and wanna start it. First, I use chroot to test like run "chroot rootfs/ /init", it starts correctly. However, when i try to use "lxc-start -n mycontainer", one of its process has segfault problem and dmesg…
jasonNew
  • 5
  • 5
0
votes
1 answer

lxc-create --download gives different list as root

My system: Ubuntu 14.04.2 amd64 See this: $ lxc-create --template download --name mycontainer Setting up the GPG keyring Downloading the image index --- DIST RELEASE ARCH VARIANT BUILD --- centos 6 amd64 default 20150415_02:16 centos 6 …
Eduar
  • 111
  • 4
0
votes
1 answer

Linux Containers lxc-create

I've been trying to work on Linux Containers (lxc). Post installation, I tried to create a container. I'm working on Ubuntu 14.04, with lxc-1.1.1. I'm prompted with this error when i try to create a new container : lxc-create: error while loading…
sukrit6
  • 11
  • 1
  • 3
0
votes
1 answer

Why does lxc function as expected with lxc-webpanel and not from either CLI or python?

observations: lxc-webpanel functions as expected lxc commands issued from command line interface and returns non-zero exit status 1 functions called from lxclite module within a python interpreter raise exceptions question: How can I locate the…
dmmfll
  • 2,666
  • 2
  • 35
  • 41
0
votes
1 answer

Fail to start linux container after upgrading to docker 1.5

I used to use docker 1.3 and it worked well. There're some problems after upgrading to docker 1.5. Is there something about my lxc? And I have tried apt-get purge lxc and apt-get install lxc to re-install it. ➜ ~ sudo docker version Client…
tobe
  • 1,671
  • 2
  • 23
  • 38
0
votes
2 answers

Cloudera installation dfs.datanode.max.locked.memory issue on LXC

I have created virtual box, ubuntu 14.04LTS environment on my mac machine. In virtual box of ubuntu, I've created cluster of three lxc-containers. One for master and other two nodes for slaves. On master, I have started installation of CDH5 using…
Krunal C
  • 1
  • 3
0
votes
2 answers

LXC Container as VPS

I've been looking into LXC containers and I was wondering as to whether or not it is possible to use an LXC container like an ordinary VPS? What I mean is; How do I assign an external IP address to an LXC container? How do I ssh into an LXC…
Francis
  • 23
  • 1
0
votes
1 answer

How LXC implements network namespace?

I would like to know how LXC implement network namespace. One particular aspect is how it connects the virtual interface in a namespace to the physical interface. Assume that the network in a namespace connects to a veth, and the root namespace uses…
JustWonder
  • 2,373
  • 3
  • 25
  • 36
0
votes
1 answer

monitor services running in lxc container in ubuntu server

I want to monitor services running in lxc such as nginx, node, database, ect.. I have installed lxc in our production server to have service run in separate containers like database run in one lxc container while nginx run in another lxc…
niren
  • 2,693
  • 8
  • 34
  • 58
0
votes
2 answers

Issue in starting OPenstack Nova while installing using devstack

I got below issue when nova tried to start. /usr/local/bin/nova-compute --config-file /etc/nova/nova.conf cloud@CloudServer:/opt/stack/devstack$ /usr/local/bin/nova-compute --config-file /etc/nova/nova.conf 2015-02-10 07:26:42.226 DEBUG…
Cloud
  • 123
  • 2
  • 9
0
votes
1 answer

Grouping all the containers on a Docker.io host: advantages or not?

There is something that still doesn't convince me in using Docker.io. Let suppose to deploy a MongoDb replica set on 3 three different containers installed on a Linux VM running on AWS. If for any reasons the VM goes down then all the mongo…
Mazzy
  • 13,354
  • 43
  • 126
  • 207
0
votes
1 answer

Weird RIAK behavior

I'm a sysadmin and I managing 5 cluster of RIAK: two of them are LXC containers on the same physical machine (3 nodes per cluster) one of them are LXC containers located on different physical machines (6 nodes) one of them are LXC containers…
DemonCcC
  • 31
  • 1
  • 3