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

-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 ...
0
votes
0answers
25 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 ...
0
votes
0answers
23 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
21 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
101 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 ...
1
vote
0answers
103 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
33 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
49 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 ...
3
votes
0answers
20 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
59 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 ...
0
votes
0answers
67 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
402 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
1answer
53 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
1answer
47 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 ...
1
vote
1answer
42 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
35 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 ...
0
votes
1answer
148 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 ...
0
votes
1answer
64 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
83 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 ...
0
votes
3answers
136 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 ...
-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 ...
4
votes
2answers
384 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 ...
1
vote
1answer
663 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
112 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 ...
3
votes
0answers
337 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 ...
2
votes
1answer
117 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 ...
0
votes
1answer
362 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
279 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
1answer
1k 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 ...
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 ...
1
vote
1answer
331 views

Setup public IP address on LXC container

Can anyone tell me how to setup a network interface for each LXC container so that each container can have its own dedicated IP address? Here's what the /etc/network/interfaces file on my host node ...
0
votes
0answers
36 views

Bridging Interfaces and limiting Egress of children

HISTORY: First let me explain what I want to do: I want to setup a development / staging environment based on LXC so our developers can rapidly deploy and tear down VMs. We have a single public ...
1
vote
0answers
67 views

lxc / docker wake on lan?

Has anyone successfully implemented "wake on LAN" functionality in a linux container? In my setup each client has his own container for a vpn, but I only want the container to "boot up" when the ...
0
votes
0answers
142 views

docker-py + lxc driver: net not working

I use docker (versio 1.5.0) with the lxc driver (version 1.0.4-3). When I create a new container from the shell like this it works fine: docker run \ -d \ --name $username \ --net="none" \ ...
2
votes
0answers
58 views

How to make a device node persistent in a LXC

I need /dev/fuse inside a LXC. cgroups are properly configured, i.e. I can manually create the device node and everything is fine - until I restart the container, then the node is gone. Of course I ...
0
votes
0answers
151 views

how to monitor lxc services in production server

I want to monitor services running in lxc such as nginx, node, database, ect.. I have installed lxc in our production server to have service run in separate containers like database run in one lxc ...
1
vote
0answers
92 views

Share serial port between linux containers

I have a requirement to share a single serial port between two or more linux containers. The LXCs are spawned by the host linux. I explored the option of socat, wherein the host will open a TCP ...
0
votes
2answers
311 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
474 views

How to connect a /dev USB modem in an LXC container?

I've been struggling with various tutorials to hook up my /dev/ttyACM0 in a lxc container. Basically I've tried adding the following line in my lxc config : lxc.cgroup.devices.allow = c 166:* rwm ...
0
votes
1answer
20 views

Is it possible to set the backing FS directory of a specific LXC?

So they don't all go to the same folder (e.g. /var/lib/lxc)? This would let the user take advantage of other partitions/disks when the default one becomes full. lxc version: 1.0.6
0
votes
1answer
795 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 ...
2
votes
1answer
49 views

Why does the lxc container binds more than the configured ip?

I set up several ubuntu LXC containers on my ubuntu server. They all have a unique IP configured. As they start up, some of them do bind more than the defined IP address. For example container A ...
0
votes
0answers
163 views

nftables, bridge, lxc. Can't call into container

My first post so bear with me. I am using nftables to start to replace old ones. I am loving it, but obviously, my approach is a bit iptables-like and also highly procedural, rather than using the ...
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 ...
1
vote
1answer
870 views

systemd-journal in Debian Jessie LXC container eats 100% CPU

After creating fresh LXC based on Debian Jessie, on a Ubuntu 14.04, systemd-journal eats all CPU available. lxc-create -n jessie -t debian
0
votes
0answers
101 views

LXC Container with public IPv6 network

I have a setup where I wanna be able to access a LXC Container by there public IPv6 Address from public. At the moment I'm getting stuck while trying to access any other net than the network provided ...
1
vote
0answers
33 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
26 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 ...