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

What is required to activate cgroups in Linux

I have a Debian squeeze kernel (linux-image-2.6.32-5-openvz-amd64) which according to the Doku should support cgroups. When I look into the kernel configuration, it does (or is some other kernel ...
-3
votes
0answers
46 views

Default gateway is not reachable [migrated]

I have a vmware player on which i have installed CentOS 6.5. And on that CentOS 6.5 i have installed lxc and on that lxc i have installed centos 6.3. I am using NAT and bridger as a Network adaptor ...
4
votes
2answers
967 views

LXC networking with public IP

I have installed LXC in ubuntu server 12.04 using this link. It was installed successfully and i am able login using ubutu/ubuntu as username and password. Then I tried to setup network for LXC ...
0
votes
1answer
7k views

SLES DHCP Dynamic DNS: Unable to add forward map…: not found

I have a SUSE Linux Enterprise Server 11.3 install running on Amazon EC2 based off the official AMI. With DHCP and BIND configured (via yast) I'm having issues with Dynamic DNS. When a client ...
0
votes
0answers
21 views

Restarting network on Ubuntu 14.04 host running lxc

I know /etc/init.d/networking restart isn't supposed to work on Ubuntu 14.04 but I altered the script that it works. It always worked on all the Debian distributions I have used before and I do not ...
7
votes
3answers
2k 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 ...
0
votes
0answers
19 views

How to monitor keystrokes of an lxc guest that is connected via ssh?

I have an unprivileged LXC container which runs an SSH server (both LXC guest and LXC host are Ubuntu 14 servers) . The ports to connect to the container are forwarded, so one can connect from outside ...
0
votes
0answers
16 views

iptables open port to an LXC container with public IP

I've encountered a strange problem I have no idea how to fix. I'm trying to close all ports on my server, and open only the ports I need in the directions I need. Thus, I ended up with: IF=eth0 ...
1
vote
2answers
84 views

Enable SELinux on Centos7 LXC container with Ubuntu 14.04 host

I'm trying to setup an LXC container for testing which is running CentOS 7 with SELinux enabled to meet the requirements for a test I'm trying to run. Despite all my efforts, I'm still unable to get ...
5
votes
4answers
1k 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 ...
5
votes
2answers
1k views

Running containers inside a virtual machine?

It is my understanding that containers are much more lightweight than VMs because they do not virtualize the hardware but instead just isolate the software running in them from software running in ...
13
votes
2answers
6k 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
100 views

Ipv6 over bridged network stops working after some time (Ubuntu LXC)

i hope you can help me. I am running several Linux Containers on a bare metal server which is provided with an Global Ipv6 address as well as an 64-bit network by my provider. I have configured IPv6 ...
0
votes
1answer
31 views

Change shell prompt based on container name?

I have been doing a lot of work using Linux containers, and I keep forgetting which of the terminals on my screen is running inside which container, particularly when I leave them open overnight. How ...
0
votes
1answer
46 views

Forwarding all traffic coming into eth0 on host to eth1 on LXC container

I'm trying to monitor all the traffic coming into my computer using software running in an LXC container. The software on the LXC expects to be monitoring eth1. Thus, I would like to Create an ...
10
votes
4answers
11k 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 ...
3
votes
0answers
19 views

/dev/ttyS0 in lxc container

How to set up lxc to get /dev/ttyS0 in lxc container. I add # /dev/ttyS0 lxc.cgroup.devices.allow = c 4:64 rwm into config but nothing works - If I add manually mknod in running container ...
0
votes
1answer
44 views

lxc - how to make a mount survive an external unmount / mount (eg. sharing folders on a USB key)

I have an LXC container, where I setup the fstab to use a directory situated on an external usb disk. I need this because I use this container for disk intensive computations on my laptop, and I need ...
0
votes
0answers
53 views

LXC containers on a OpenVZ VPS

I am trying to run LXC on a VPN that is hosted in OpenVZ, I have tried doing this with multiple image flavours, ubuntu. centos, debian... with no luck. LXC installs correctly but containers fail to ...
1
vote
1answer
49 views

How to set DHCP IPs of stanard lxc containers?

When you create some containers on a host, e.g: sudo xlc-create -n container1 -t ubuntu sudo xlc-create -n container1 -t ubuntu the lxs system creates IP address for the hosts on a new subnet, e.g. ...
0
votes
0answers
63 views

Make LXC containers directly accessable with ipv6

First off I have a special IPv6 address allocated to my dedicated server, just 1. A ::1/128 one. But I can assign addresses to eth0 (eg ::2/128, ::3/128, etc). Now I would like to run LXC containers ...
5
votes
1answer
397 views

Do I need a CPU that supports Virtuallization to do Containerization?

I've read that Containerization is cheaper than virtualization; I know that containerization uses less resources than virtualization since there's only one OS involved and no virtualized hardware. ...
0
votes
0answers
65 views

Can not connect to OpenVPN server from LXC container

I can't seem to connect to an OpenVPN server from an LXC container. I have spent some time searching around and tried the suggestions many have posted but I still can't seem to get this working. I was ...
1
vote
6answers
4k views

Can Docker help me install Oracle 11g database on Ubuntu?

We are struggling with a common problem of trying to provide an Oracle 11g instance for our developers to test with. Our standard build agents are based on Ubuntu 12.04 but Oracle supports only RedHat ...
1
vote
1answer
40 views

Running LXC and Docker on the same host

I'm running a private server for a some time now and back when I set it up, I used LXC to separate the different services from each other. About a month ago I've started to use docker (for work as ...
-2
votes
1answer
32 views

Link containers on cockpit

I think this is a pretty common scenario, but I don't seem to find a solution. Given: 1. A container with an application that requires a database, 2. A database container; I need to link those ...
7
votes
2answers
13k views

Bridging LXC containers to host eth0 so they can have a public IP

UPDATE: I found the solution there: http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge#No_traffic_gets_trough_.28except_ARP_and_STP.29 # cd /proc/sys/net/bridge # ls ...
26
votes
4answers
20k views

How to disconnect from lxc-console

I'm working with lxc in Ubuntu 12.04, and it's really great. However, I am unable to disconnect from a lxc-console session after I've connected. I read somewhere that Ctrl-aq will disconnect me from ...
0
votes
1answer
134 views

linux container bridge port forwarding?

How to setup linux container bridge port forwarding? I start using LXD, and looks like their policy is to setup port-forwarding with OS base unlike docker. I want to build a web server, so 80 port ...
11
votes
4answers
7k 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
3answers
127 views

How can I install multiple Atlassian applications in a single server?

Ok, this is a two-part question. I got an unmanaged VPS with CentOS from a hosting company in order to install several Atlassian tools, however, I ran into the problem that when starting a second ...
3
votes
0answers
307 views

What is the best practise to autostart unprivileged lxc containers on Ubuntu 14.04 64bit? [duplicate]

The current implementation of the LXC technology deals nicely with an issue of starting the privileged containers upon system start.. Users of the unprivileged containers (which arguably promise ...
4
votes
2answers
3k 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 ...
0
votes
1answer
60 views

Nginx forward ssl to ISPConfig lxc container

I am having issues with https connexions to the ISPConfig admin panel (port 8080). My setup is relatively standard. I own a physical host, which routes all traffic on common ports to an LXC container ...
0
votes
0answers
82 views

LXC containers - Duplicate tty on Gentoo guest

I'm trying to run Gentoo inside LXC container on Centos 7 host machine. I have prepared the guest OS on another (Gentoo) machine by following this tutorial https://wiki.gentoo.org/wiki/LXC. On this ...
4
votes
2answers
368 views

LXC container shows host's full RAM amount and CPU count

I've been using LXC containers for a few years and have recently expanded the types of applications that run inside of container environments. I'm starting to limit resources at the container level ...
-2
votes
3answers
99 views

Can Docker Corrupt a Software RAID Setup? [closed]

I read that software RAID should not be implemented on a machine that also has ESXi virtual machines running. Does this mean that I would want to avoid LVM and or LXC/Docker containers as well on this ...
1
vote
1answer
623 views

How to create /dev/tun device inside unprivileged LXC container?

This question is similar to No tun device in lxc guest for openvpn . The LXC has evolved and the unprivileged LXC containers were introduced recently that offer another layer of security against ...
0
votes
0answers
109 views

Vagrant lxc container fails to start

I`m trying to set up a vagrant box with lxc container on Ubuntu 14.10. I use vagrant-lxc plugin and "fgrehm/trusty64-lxc" box. When I use vagrant up --provider=lxc console stops on ==> ...
0
votes
0answers
26 views

Prevent container from shutting down at console exit

As the manual clearly states, an LXC container automatically destroys (shuts down) itself when you exit the console. However, we're using these machines as servers (sshd, sometimes apache, ...) and I ...
2
votes
1answer
111 views

LinuxContainers arch-linux double login tty

Since upgrading to LXC 1.0 with the new Arch Linux template when I create a new instance I have a double tty when invoking: lxc-console --name <container> This is the output: Arch Linux ...
9
votes
3answers
2k 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 ...
3
votes
0answers
329 views

Unprivileged lxc container as root

I have successfully been able to run privileged lxc containers (as root). My system: uname -a Linux ruby-dev 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 ...
0
votes
2answers
225 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 ...
8
votes
2answers
3k views

Is LXC secure enough for VPS hosting?

Right now I'm using Linux VServer for VPS hosting. But it's lacking some functionality I need (ex. cpu usage virtualization, quota support for guests, etc.) so I'm thinking about switching to OpenVZ ...
0
votes
1answer
340 views

How to run Fedora container on Ubuntu host?

I'm using Ubuntu 14.10 and was trying to run a Fedora container. The container I created via given templates does not work properly. I guess the reason is that systemd is not set up correctly. ...
0
votes
0answers
266 views

NFS service fails on LX-Containers

When I restart NFS daemon on my LX-Container I see below mssages service nfs restart Shutting down NFS daemon: [FAILED] Shutting down NFS mountd: ...
0
votes
2answers
307 views

LXC container gets 2 IP addresses

I want to have a flat configuration where the host and guest all have their own static addresses on the network. For some unknown reason however, the container is assigned 2 addresses, 192.168.0.110 ...
0
votes
1answer
994 views

Easy way to transfer files between host and LXC container on LVM

This is an easy task in the case of containers that share the same filesystem but I'm not sure what would be the proper approach for containers that use LVM disks. I know I could use rsync or scp but ...
0
votes
1answer
760 views

Vsftpd don't work fine in passive mode in LXC container

I'm beginner in Docker, I have a vsftpd in a Debian and for passive mode I configured in vsftpd: pasv_enable=YES pasv_min_port=65000 pasv_max_port=65000 pasv_address=192.168.1.31 and I show with ...