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
3 answers

Cannont create lxc container with ubuntu template using lxc 1.0.0.alpha 1 on Ubuntu 13.04 Raring version

I am unable to create a Ubuntu container using lxc 1.0.0.apha1 version on Ubuntu 13.04 raring. Is there anything obvious that I am missing here root@ubuntu:~# lxc-ls --fancy NAME STATE IPV4 IPV6 …
Santhosh
  • 891
  • 3
  • 12
  • 31
0
votes
1 answer

Continuous delivery of infrastructure projects

I'm using Jenkins to achieve Continuous Delivery on some infrastructure projects. ATM Master-Slave Jenkins model is used where the jobs are always built by some some slave and not by the master, my intentions are to build and run test-kitchen and…
Carlos Castellanos
  • 2,358
  • 4
  • 25
  • 43
0
votes
1 answer

Vagrant-lxc container not starting

Firstly I'd like to say that I'm new to LXC and I may have some problems getting the right idea of how the things should work. The thing is I'm trying to start a previously download vagrant-lxc box that holds an Ubuntu 12.04 x32. My development PC…
Carlos Castellanos
  • 2,358
  • 4
  • 25
  • 43
0
votes
1 answer

Automating connecting to lxc container and executing commands inside the container

Hi I am trying to automate lxc container creation/starting/stopping and executing commands inside them via script (Bash/Python). I was able to create a container which is a very simple step lxc-create -t ubuntu -n CONTAINER1 Now I want to start…
Santhosh
  • 891
  • 3
  • 12
  • 31
0
votes
1 answer

Global file to LXC containers?

Is there a way to make a file accessible from all the LXC containers? I have a SQLite database that i want to share with all my containers, is this possible?
Mugiwara
  • 866
  • 1
  • 11
  • 33
0
votes
1 answer

Can I install and run a RHEL based lxc on CenOS?

I have been playing with LXC for the past few days and was wondering it is indeed possible and how do I make it work
harshad
  • 21
  • 4
0
votes
1 answer

Is it possible to restrict access to lxc containers?

I would like to run a docker or LXC container but restrict access to the container itself. Specifically, is it possible to prevent even the root (root on the host) from accessing the container? From access, I mean SSH in to the container, tcpdump…
NetCubist
  • 61
  • 2
  • 6
0
votes
1 answer

Does anyone have experience on running MapReduce on LXC containers?

I just have some questions about the performance of Hadoop based on LXC. So I am wondering if anyone have such kind of experince before? Is there any impressive improvements of performance like mem or disk usage? It will be nice if you have any test…
harryz
  • 4,980
  • 6
  • 31
  • 34
0
votes
1 answer

how to run a daemon process in docker container with API/v1.5?

I'm tring to run a daemon process in the docker container with API/1.5,and here is my POST request, and the containter is created successed while the command seemed run failed,what's the problem here?pls give me some advance,thanks. { …
rpbear
  • 640
  • 7
  • 15
0
votes
2 answers

Is it possible to allow the containers running on the same image to share their filesystem?

I am going to explain the question with an example. Suppose that we are running two seperate processes on the same image. One of them creates a file and continues to execute. I need the other process running in a different container to see, inspect,…
sarslanhan
  • 517
  • 2
  • 7
  • 13
0
votes
1 answer

lxc network type empty

I want to run lxc machine without network. I write in config file "lxc.network.type=empty" and boot instance image, but image not booting (hovered, freeze). In documentation written that: empty: will create only the loopback interface. So, what i…
Logioniz
  • 891
  • 6
  • 15
0
votes
1 answer

How to launch ephemeral lxc with static ip address in such a way that it can connect to the internet?

I'm usung the lxc-start-ephemeral utility in Ubuntu 12.10. I've noticed that the ephemeral container starts up pretty quickly, but that it takes a long time (~20s) before ifconfig shows an ip address for its eth0 interface. I'd like to reduce this…
Anand Patil
  • 113
  • 1
  • 5
0
votes
1 answer

core dump are not generated on lxc guest

I set ulimit as unlimited for core files on both host and lxc guest even for root on host, I'm able generate core file on host but not on lxc guest. Is there any configuration in lxc for core file generation? My host is ubuntu 12.04, lxc guest is…
harun
  • 1
  • 2
0
votes
0 answers

Execute mongod in linux container with limited resources

Can you tell me how is it possible to start mongodb in an isolated enviroment with limited resources? Mongod keeps filling all my RAM so I would like to restrict it. I am thinking about a linux container like LXC. Can you give me an example of how…
Giorgos Komnino
  • 433
  • 1
  • 7
  • 20
0
votes
1 answer

execute terminal command in isolated unix environment

I am writing a webapplication in which users are able to execute git, bzr, and hg commands on the server. Basically, a user writes the git/bzr/hg command into a html form, hits a button, the command is sent to the server, and executed in the…
David Graf
  • 1,152
  • 2
  • 13
  • 24