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 ...

learn more… | top users | synonyms

0
votes
0answers
9 views

LXC backing directory on a per container basis? [closed]

Is is possible (and if so, how?) or are we only able to set the LXC storage directory for all containers (via lxcpath)?
1
vote
0answers
19 views

(Unexpected?) blkio controller behavior

I'm using docker 1.4.0 with lxc-1.0.6 and cgroup-lite-1.1.5 on Ubuntu 12.04. I have 3 hard disks (/dev/[sdb-sdd]) that I write to from 3 distinct containers. They have only one XFS partition, mounted ...
0
votes
0answers
13 views

less doesn't work in LXC container

I'm experiencing some trouble running less and expect inside LXC container (whether using console or SSH) Expect won't work before I won't add an "interact" anywhere in the script, and less doesn't ...
0
votes
1answer
22 views

Why port 22 redirection causes lxc containers to ssh to host?

I have a host A on which I have 2 lxc container (X and Y). I originally had port 22 on my host (A) forwarded to X. Using this configuration, I wasn't able to ssh out of the container X and when ...
2
votes
1answer
132 views

LXC container not starting

My CentOS LXC containers are not starting anymore on an Ubuntu 14.10 machine. I think that the problem started after a reboot, but I am not sure. I had a similar problem after an yum update, when the ...
1
vote
3answers
139 views

Missing packages after clean Debian install

I've just installed a clean version of Debian (Wheezy) using the netInstall image. I feel like there's a lot of missing package (that are usually installed by default when I used to use the full ...
0
votes
0answers
38 views

LXC container clone has no network and SSH stopped

I was having this networking problem with LXC containers (question and answer here:bridging LXC containers to host network with different IP range) and if I have found a solution, I still have not ...
2
votes
2answers
1k views

Docker containers can't resolve DNS on Ubuntu 14.04 Desktop Host

I'm running into a problem with my Docker containers on Ubuntu 14.04 LTS. Docker worked fine for two days, and then suddenly I lost all network connectivity inside my containers. The error output ...
0
votes
2answers
81 views

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 ...
0
votes
0answers
48 views

could not create lxc container where linux distribution is different than the linux host?

My linux host is ubuntu 14.04 x64. I tried to create a centos lxc container sudo lxc-create -n centos -t centos but return errors Host CPE ID from /etc/os-release: 'yum' command is missing ...
0
votes
0answers
16 views

LXC breaks IP-connectivity

I have i Libvirt/KVM-host with two physical ethernet cards. I use two bridges for these cards, one bridge for a local DHCP-based network and one for static public adresses. I use the first bridge to ...
1
vote
1answer
91 views

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 ...
0
votes
0answers
10 views

LXC utsname does not work

I have created a LXC by cloning it from already existing LXC by using command lxc-clone -o u1 -n u2. When I start the u2 it comes with a prompt u2 login. Till this point it is fine. However, when I ...
1
vote
2answers
82 views

How do I configure LXC to allow the use of SCHED_RR in a container?

Any ideas on how I can configure LXC/cgroups, to allow the use of SCHED_RR for applications in a container? On the internet I have seen mention of unmounting the cpu-cgroup, I have tried that, ...
0
votes
1answer
52 views

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 ...
0
votes
0answers
23 views

Can I create separate bridges for every lxc user?

I have successfully created unprivileged lxc containers for one user on a system. All of those containers use the default lxcbr0 bridge. Now I want to allow other users on the system to create ...
4
votes
4answers
81 views

Setting the noatime flag for filesystems inside an lxc container

My host filesystem is ext4 mounted with the noatime flag. But inside an lxc-container, the flag is absent. Here's the output of mount on the host: /dev/sdb1 on /home type ext4 (rw,noatime) And ...
4
votes
1answer
674 views

Mount Docker container contents in host file system

I want to be able to inspect the contents of a Docker container (read-only). An elegant way of doing this would be to mount the container's contents in a directory. I'm talking about mounting the ...
3
votes
1answer
258 views

How to auto-start unprivileged lxc containers?

On Ubuntu 14.04, I have created an unprivileged container that I can manually start and stop. But I would like this to start and stop along with the system. I have added the following to the ...
1
vote
0answers
221 views

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 ...
1
vote
0answers
131 views

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 ...
2
votes
0answers
49 views

LXC containers act differently on difrent servers [closed]

I have two physical servers A and B. I wanted to upgrade them from Ubuntu 12.04 to 14.04. Here is my current setup (if I'm left out any info here, let me know and I'll add it): Server A: Ubuntu ...
1
vote
0answers
214 views

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 ...
2
votes
1answer
607 views

Can a Docker container uses the full CPU power and memory of the host OS?

I am new to Docker, but I have experience of using VM and hypervisor. Referring to Docker introduction and this image, Docker containers are isolated but share the same host OS. If we deploy only 1 ...
2
votes
1answer
293 views

Ubuntu LXC 14.04 Error

I had installed LXC in ubuntu 14.04. I had used an existing template and created a VM by executing the below command. /usr/share/lxc-templates/lxc-ubuntu -p /lxc/vm0 After the installation getting ...
5
votes
1answer
571 views

Proper way of handling LXC containers on btrfs

Lets say we have one server with lxc installed, and a lxc container used for as a base img /var/lib/lxc/ubuntu_base. For simplicity let's forget the config changes after copying the base img. some ...
1
vote
2answers
121 views

What is Linux containers after all? [duplicate]

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. ...
0
votes
2answers
1k views

LXC Container Networking

I just started to experiment with LXC containers. I was able to create a container and start it up but I cannot get dhcp to assign the container an IP address. If I assign a static address the ...
1
vote
1answer
61 views

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. ...
0
votes
0answers
199 views

Configure Nginx with multiple lxc containers, virtual hosts and subdomains

I want to use multiple (at least 3) lxc containers running Apache2 on port 80. I want to configure Nginx such that www.mydomain.com serves the content on the host machine while sub1.mydomain.com , ...
0
votes
0answers
63 views

lxc - java out of memory issues

I have a set of virtual machines on lxc container that run Ubuntu 14.04. All share same host and some of them are currently experiencing problems with java. Running java -version throws OutOfMemmory ...
-1
votes
1answer
110 views

OpenVZ Web panel: no such file to load when add physical server

I'm trying to use on my (testing) lxc server. I've on my server "potager.local": root@potager:~# lxc-list RUNNING FROZEN STOPPED web I've installed OpenVZ Web Panel on it and it ...
0
votes
3answers
452 views

Reverse Proxy Linux Containers

I am trying to set up a reverse proxy on my ubuntu 14.04 host so that I can run multiple websites, each in their own LXC container (one day docker but one step at a time). In this example the ...
1
vote
1answer
145 views

Logical volume attributes

I've used lxc-clone command to clone my lvm-based container (test_lvm was copied to create u33). Container works fine, but the output of sudo lvs confuses me: LV VG ...
3
votes
1answer
126 views

Why are cgroups (blkio serviced bytes) and iotop producing diverging results

I work with lxc user space tools on ubuntu 14.04 and I want to perform some stress tests and benchmarking within a container. I know that free and htop are not working properly in a container. I am ...
0
votes
2answers
474 views

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 ?
1
vote
1answer
257 views

Iptables prerouting based on destination's DNS name?

I've got a question concerning iptable prerouting. I'm not that familiar with networking/routing/iptables so I hope this is not a stupid question, at all. So I ask for your understanding and ...
0
votes
0answers
85 views

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 ...
1
vote
1answer
343 views

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 ...
1
vote
2answers
149 views

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 ...
0
votes
1answer
67 views

LXC not respecting netmask on Ubuntu 14

I have a LXC machine configured with bridging so that it has its own public IP address and is accessible over the internet. Even though it's working, the netmask address set in the VMs ...
12
votes
2answers
4k views

Linux containers (LXC) on Red Hat/CentOS EL6 - lxc-create versus libvirt?

It's tricky trying to stay within the good graces of Red Hat and still plan for system longevity... I've been a proponent of Linux Containers (LXC) for over a year. My initial installations were ...
1
vote
0answers
99 views

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 ...
0
votes
1answer
559 views

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 | ...
6
votes
2answers
3k views

docker: set hostname for container

I'm having trouble setting the hostname on a running docker container. I'm also having trouble understanding how to specify hostname after the image is started. I started a container from an image I ...
0
votes
1answer
75 views

Linux Containers (LXC) : lx-execute and networking

I have a question about LXC Containers. I have some containers, if I lxc-start them, they come up with networking fine, but I want to just be able to run commands against them using lxc-execute, ...
3
votes
1answer
418 views

LXC and Saltstack minion_id configuration on Ubuntu

I'm using LXC as a lab platform for testing SaltStack scripts. The lab consists of +5 Ubuntu 12.04 LTS containers, which I create by cloning a template container with salt-minion pre-installed. Once ...
0
votes
2answers
90 views

Error Installing lxc 1.0.0

I am trying to install lxc 1.0.0 but I get this error when I run this command I have added the following repos to my sources.lst file deb http://ppa.launchpad.net/ubuntu-lxc/daily/ubuntu saucy main ...
1
vote
0answers
85 views

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 ...
1
vote
2answers
398 views

How to route public ipv6 address to private lxc container address?

I have a pool of public ipv6 address I want to use to expose lxc containers. On the host machine I created a macvlan interface eth0-macvlan and bound a public address to it 2600:3c01:e000:83::1/64. I ...