Questions tagged [lxc]

LXC short for (Linux Containers) LXC is an operating system-level virtualization method for running multiple isolated Linux systems (containers) on a single control host. LXC is the userspace control package for Linux Containers, a lightweight virtual system mechanism sometimes described 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 newer kernel versions. 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

420 questions
1
vote
2 answers

bridging LXC containers to host network with different IP range

I'm pretty new to linux, and I have been struggling with a problem for the past week or so... I am trying to setup a cluster of LXC containers on a workstation (host) which is has IP 192.168.10.33 connecting to a gateway with IP 192.168.10.1 the LXC…
MrE
  • 418
  • 1
  • 6
  • 14
1
vote
1 answer

How do base linux distributions differ from the same distro on a VPS

I have centos 6.5 vps hosted by a 3rd party. I had planned to install docker on the vps but started to recieve lxc-start errors. This was wierd as I installed the docker without issue on a Vagrant box with a base centos 6.5 base image. I ran uname…
user2108258
  • 303
  • 1
  • 4
  • 10
1
vote
1 answer

Running tor on lxc-based virtual infrastructure

I tried to set up a tor relay node on my server running debian squeeze with linux containers for better maintainability. Installing from main repository and tor repository failed. In debug.log there is only one error message: Sep 20 21:24:12.402…
David
  • 29
  • 1
  • 4
1
vote
0 answers

lxc command always "get error 4 in libc-2.12.so"

I've tried several time to find out why suddenly my LXC not working, I use dmesg | tail it shows: lxc-start[2777]: segfault at fffffffffffffffc ip 000000390347b82c sp 00007fffd9046c18 error 4 in libc-2.12.so[3903400000+18b000] lxc-start[3311]:…
1
vote
0 answers

How to change docker lxc/cgroup configuration at runtime

I would like to change docker lxc/cgroup settings while a container is running. As an example, if I launch a container like this: docker run --lxc-conf="lxc.cgroup.cpuset.cpus = 0" ... How do I adjust the setting to "lxc.cgroup.cpuset.cpus = 1"…
kanaka
  • 291
  • 1
  • 6
1
vote
0 answers

Publish or forward ipv6 port range to Docker container

I'm building a IPv6 enabled FTP container based on pure-ftpd and I have the problem that passive mode needs the client to connect on any port in the range of 30000 to 50000 to the server on the container. Right now I don't have a solution for…
Phillipp
  • 492
  • 1
  • 3
  • 12
1
vote
2 answers

What is Linux containers after all?

I've been reading many documentations on Linux containers. I also tried it out the CentOS way and the Ubuntu way . Wikipedia says it is an operating system–level virtualization. Linuxcontainers.org says LXC is a userspace interface for the Linux…
beginer
  • 279
  • 5
  • 12
1
vote
1 answer

LXC networking not giving outgoing connection

I have a LX container on Ubuntu 13.04 which has worked flawless for the last 161 days. I restarted the host and started all the LXC's and I'm allowed to connect to the LXC containers from the outside. But I can't establish connections from inside a…
Repox
  • 265
  • 1
  • 3
  • 14
1
vote
2 answers

Requirements to move an LXC container from host to another

What are the requirements and things to know to move an LXC container from an host to an other ?
bux
  • 626
  • 2
  • 6
  • 20
1
vote
1 answer

LXC setup with multiple LVM-backed disks

I'd like to set up an lxc container on an ubuntu host with multiple back-end disks. At least two: /boot / /opt, maybe Is there a way to, in one lxc-setup command, to accomplish this? Below is what I"ve curently been using to create…
stetter
  • 11
  • 4
1
vote
1 answer

IP address reuse on macvlan devices

I'm trying to create easy to use and possibly simple testing environment for some product and got some strange behaviour of macvlan's. What I'm trying to achieve: make a toolset for one-line start/stop of lxc containers(via docker) bound to…
1
vote
1 answer

syslog-ng fails to log on lxc host

we are running CentOS 6 servers with multiple lxc-containers. For system logging we are using syslog-ng. After a while the syslog-ng daemon stops logging messages, but the daemon keeps running. This happens on the host and inside the containers…
john.dough
  • 103
  • 1
  • 10
1
vote
0 answers

Make LXC containers available from the physical network

I've been trying to achieve the following. I want to use LXC as a thin isolation layer inside our physical machines, meaning each machine will have only one container running. For this container, I want to have an internal network IP to be assigned…
demeshchuk
  • 111
  • 2
1
vote
1 answer

How accessing a NATed, virtualized (LXC) server over public IP from client itself on a bridged network?

Setup ____________________________ ____________________________ | Host | | Client | | Public IP: 66.66.66.66 | | | | Internal IP:…
geo_so
  • 111
  • 1
  • 3
1
vote
0 answers

LXC and proxying port 22 (ssh)

I have installed LXC on my Ubuntu 12.04 server and have created a couple of containers. I have only 1 external IP address, thus I am using nginx on my host machine to proxy HTTP requests from certain hosts to the relevant containers. I'm only…
badsyntax
  • 111
  • 4