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

Is it possible to assign a static public ip to a Docker Container?

I have been trying to assign one of my five public ip's to my docker container. It seems like this should be possible because of the nature of docker and its uses. I found this website that I think explains what I want to do but it no longer works…
domsl
  • 87
  • 2
  • 9
0
votes
0 answers

has the linux kernel support sctp protocol in container of LXC/docker yet?

I'm using docker to set up an application in container which will use sctp for communication. The network connection is fine, i can ping each other, but I run the sctp-test from lksctp_tools and met problem below: [root@a2c771287273]#sctp_test -H 0…
0
votes
1 answer

Sharing namespaces within Docker

Consider that application A is an app that provides a form of clustering with an allowed designated number of slaves to join on this cluster. Applications B, C, and D would need to join this cluster in order to function properly. What I would like…
matt32
  • 157
  • 1
  • 10
0
votes
1 answer

lxc-clone: unrecognized option '--dir'

I try to change rootfs dir while cloning like: lxc-clone -o foo -n bar --dir /lxc/bar but i got this error: lxc-clone: unrecognized option '--dir' Then i try to use "-B" option and "lvm" value to set rootfs in a LV: lxc-clone -o foo -n bar -B…
Xurvan
  • 179
  • 2
  • 14
0
votes
1 answer

libvirt lxc error messages

I configure my first lxc container on CentOS7. When I start container everything is OK status 1 ) When I send init 6 inside container I have the following errors: Could not unmount /dev/ptmx: Device or resource busy Could not unmount /dev/ptmx:…
ijj
  • 189
  • 1
  • 11
0
votes
1 answer

creating redhat lxc inside redhat host machine

I was in the process of creating redhat based lxc in redhat host machine but lxc-create doesn't have any template for redhat. I like to know if there is any feasibility to create redhat lxc in redhat host machine.I have also read about virsh and…
user3550166
  • 129
  • 2
  • 14
0
votes
0 answers

Is it possible to run lxc based containers inside a docker based parent container?

I have an existing lxc based container building framework that I'd like to host inside of a docker based container. I've seen references to nesting lxc based containers, but I've seen nothing about nesting them with a docker based parent. First…
0
votes
0 answers

LXC implementation with Docker

I am new to Docker although I have used Linux containers in past. Can anyone explain how exactly Docker uses LXC (architecture would be very useful)?
Saturn
  • 966
  • 7
  • 14
0
votes
1 answer

What would be pros and cons of using Docker Vs Vanilla LXC?

I have mostly been an LXC guy running Vanilla LXC with BTRFS,and was wondering what would be the advantages & disadvantages of replacing this with Docker (I know Docker has features like Versioning,Sharing containers e.t.c) ? Is it a matter of ease…
hmmm
  • 93
  • 2
  • 9
0
votes
1 answer

postfix docker doesn't relay emails

Hi I am trying to create a docker container that relays emails via a smtp server, my Dockerfile is as follows - FROM ubuntu:trusty MAINTAINER dev ENV DEBIAN_FRONTEND noninteractive RUN apt-get update RUN echo "postfix…
g0c00l.g33k
  • 2,458
  • 2
  • 31
  • 41
0
votes
0 answers

Issues with docker 1.2

I'm trying to use docker version 1.2 and I'm having issues with it. When I restart the service it says running but when I run docker images (even with sudo) it gives me this error. Cannot connect to the Docker daemon. Is 'docker -d' running on…
Ananth Ravi
  • 717
  • 2
  • 7
  • 13
0
votes
1 answer

route set : SIOCADDRT failed: Inappropriate ioctl for device

This typical "route add default gw IP" program gives me error : SIOCADDRT failed: Inappropriate ioctl for device I did ifconfig to verify the interface name. Is there a way to list all the approprieate ioctl for my device ? int main(char** args) { …
resultsway
  • 12,299
  • 7
  • 36
  • 43
0
votes
0 answers

Enter sudo password for lxc-start in pexpect.spawn process with pexpect.spawn.interact

I want to start an lxc with sudo lxc-start -n --lxcpath=/some/custom/path in a python script and controll it with pexpect (login, install a package, add a user and logout/shutdown the lxc). An example would look like this (I'm pretty…
Kalle Richter
  • 8,008
  • 26
  • 77
  • 177
0
votes
1 answer

Can docker use the existing host system to run a command in isolation like lxc-execute

A lot of the docker examples I have seen involve images of an os, albeit proably a stripped down version. If you have an existing RHEL system with lxc you can just execute a containerized bash. Can docker do something similar or do you always need…
AntóinÓg
  • 511
  • 3
  • 19
0
votes
1 answer

Securty options in embeded linux?

I am working on an embedded Linux platform. In our platform there is only root user. Now we want to bring in security options like 1. Low Privileged user. 2. Allowing to run only executables from a particular location(only read permission). 3. Use…
jsaji
  • 900
  • 1
  • 15
  • 31