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

4
votes
0answers
939 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 GNU/...
4
votes
0answers
132 views

Configuring Container with bridges and vlans (server only?)

I have two groups of lxc contianers on a server and want to isolate their network traffic for security reasons. I will be using port forwarding so the containers much each have separate IP's. I know I ...
3
votes
0answers
130 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 ...
2
votes
0answers
38 views

LXC bridge with several IP addresses

While trying to setup a small server with LXC containers, I encountered a problem: I want to assign 4 different IP addresses: 1 address for the host and 3 addresses in a different net for the ...
2
votes
0answers
322 views

dnsmasq and lxc with wildcard DNS subdomains

I'm using LXC to create a new containers. All of them are using dnsmasq with DHCP to get their IP address and to have local DNS server. I setup a domain .lxc in dnsmasq. So every container will get ...
2
votes
0answers
2k views

lxc container doesn't start because - lxc_conf - failed to setup the console

I use ubuntu 12.04 server with all updates I was restarted lxc container by a command in shell: "reboot" lxc version is: 1.0.0~alpha1.0+master~20130930-1830-0ubuntu1~ppa1~precise1 #uname -a Linux ...
2
votes
0answers
509 views

Networking with lxc containers with local dhcp and external ipv6 double bridge problems

I want to use both ipv6 externally on all my containers, and ipv4 external only on the hosts. I am using Ubuntu 12.04 64bit. For ipv4 on the container I use the DHCP that came with the lxc ...
2
votes
0answers
2k views

User not recognized by underlying authentication

I'm running lxc on Linux Mint Debian Edition tracking Wheezy/Sid. I created a container using "lxc-create -t debian -n dev". In accordance with the Debian wiki article on LXC I have mounted the ...
1
vote
0answers
33 views

replicate lxd bridge in /etc/network/interfaces and dnsmasq

I have a Ubuntu 16.04 server and default LXD configuration. Typically, when an image comes up, this happens: eno1 Link encap:Ethernet HWaddr b8:ae:ed:ea:69:41 inet addr:192.168.0.3 ...
1
vote
0answers
34 views

Can't ping my LXC container

I have set up a linux container on my server. The problem I have right now is that I cannot ping my linux container from my laptop, but I can ping the hypervisor. I created the LXC by using: lxc-...
1
vote
0answers
25 views

What is the network connection speed between two containers communicating via a virtual bridge running on the same host?

Does a virtual bridge (added to /etc/network/interfaces) limit the transfer speed of data from the memory of one lxc/docker container to another? For example does the memory throughput drop to that ...
1
vote
0answers
45 views

Proxmox: Add IPs from different subnets to LXC-container

I am using proxmox 4.1. If I add IP-addresses to my CentOS-7-LXC I can only do that if this IP is from the same subnet. If I'm using another subnet with another gateway the container is not pingable ...
1
vote
0answers
416 views

Copy lxd containers between hosts

I've installed lxd on two ubuntu hosts that can only communicate via an intermediate server (on which I don't have su privileges). I've created a container on my localhost and now wish to load the ...
1
vote
0answers
78 views

Mount ZFS dataset in unprivileged container

First a bit of information about my configuration: Ubuntu 15.10 ZFS pool created LXC containers stored in pool/lxc Dataset created in pool/mydataset owned by user1 Now I need one of the containers ...
1
vote
0answers
73 views

yum halts after installing 7 packages on centos container

I was curious about containers, so decided to give it a try. Prepared a server as host with a fresh install of CentOS 7, installed lxc and lxc-templates and configured a bridge interface. I've ...
1
vote
0answers
81 views

Executing Cuda script in LXC container results in “cuda error: no CUDA-capable device is detected”

I followed the following instructions in order to set up Cuda inside an LXC container. When I try to execute the sample ./deviceQuery script inside the container following error is returned: $ ./...
1
vote
0answers
218 views

LXC Error -> Failed to reset devices.list on /lxc/103/system.slice/proc-diskstats.mount: Permission denied

unfortunately I'm getting a lot of errors like these ones in my debian 8 LXC-container: Failed to reset devices.list on /lxc/103/system.slice: Permission denied Dec 17 16:34:37 systemd[1]: Failed to ...
1
vote
0answers
184 views

IOTOP on LXC -> Netlink error

unfortunately I can not use iotop on proxmox-lxc-container and debian 8 template. This is the output: Traceback (most recent call last): File "/usr/sbin/iotop", line 17, in <module> main() ...
1
vote
0answers
38 views

Strange messages in my syslog on Debian

I am getting strange messages on my /var/log/syslog that aren't usual. I am running a Debian Jessie LXC Container inside of a Debian Wheezy machine. But I believe this is not the problem. An example ...
1
vote
0answers
182 views

LXC Snapshotting on Ubuntu 15 and BTRFS file backend

i have a dedicated server with Ubuntu 15 Wily and i want to play/study with LXC. My main goal is to snapshot and clone containers without stopping them, and for so i have formatted a partition with ...
1
vote
0answers
194 views

How do I edit LXC/LXD's raw.lxc config key?

I corrupted my raw.lxc key trying to setup lcd/lxc on ubuntu server(15.10 Wiley) by writing some junk to it. Image related lxc commands now return: 'error: problem applying raw.lxc, perhaps there is ...
1
vote
0answers
587 views

Debian container unable to start after migration from OpenVZ to LXC on Proxmox 4

After migrating a Debian 7 OpenVZ CT from Proxmox 3 to a LXC on Proxmox 4 it does not appear to start correctly. Fristly, migration was done by stopping the container on Proxmox 3, backing up to ...
1
vote
0answers
88 views

Centos lxc container won't start on Ubuntu 14.10

I am trying to run Centos containers in Ubuntu 14.10 Utopic and also Ubuntu 14.04 trusty. I created the container in several different ways and no matter what it won't start and spits those lines: # ...
1
vote
0answers
246 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 ...
1
vote
0answers
165 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 ...
1
vote
0answers
190 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 ...
1
vote
0answers
40 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 ...
1
vote
0answers
517 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
312 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 ...
1
vote
0answers
364 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 ...
1
vote
0answers
153 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 ...
1
vote
0answers
170 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
0answers
563 views

Set up LXC container as VM with its own IP address

I need to set up a fenced environment in on Ubuntu server. The actual use case is to have two separate websites running on the same physical box, but I want one of those websites running in a fenced ...
1
vote
0answers
110 views

Why can't rsyslogd find libgcc_s.so.1?

Scenario: Running a debootstrapped Ubuntu 11.4 lxc guest on a Ubuntu 12.4 lxc host. Inside the lxc guest, rsyslogd is constantly crashing with SIGABRT stating: libgcc_s.so.1 must be installed for ...
0
votes
0answers
19 views

Automate the LXD configuration interactive setup?

I realize lxd init has an interactive setup for networking, etc. I'm looking to automate some VM's running LXD and was wondering if there is a nice CLI command that documents this configuration as a ...
0
votes
0answers
23 views

Containerized Local Web Server Behind EdgeMax Router

I have an Edgemax Lite router with a couple of machines on a single lan. I have one of the machines set up with Ubuntu server 16.04 running LXD. I want to be able to run applications in containers on ...
0
votes
0answers
51 views

Apache2/Httpd does not start after boot on CentOS7/LXC. Manual restart gets it working

I'm facing a strange problem: I got Apache2 installed on my CentOS7-based VPS. If I reboot the container the httpd does not start: ● httpd.service - The Apache HTTP Server Loaded: loaded (/usr/...
0
votes
0answers
36 views

LXC host share cgroup directory with container

I run priviledged containers on Centos 7. I want to have isolated cgroups inside container, so I don't want other containers to see cgroups of other containers. I have set lxc.mount.auto to cgroup:...
0
votes
0answers
35 views

Cannot start mongo - Mongo killed

I tried to migrate my Mongo installation from 14.04 to 16.04 using a new LXD Container. I used the previous configuration file that can be found below. mongod.cnf # mongod.conf # for ...
0
votes
0answers
36 views

LXC containers cannot connect outside of VM

I have two CentOS 7 LXC containers on a RHEL 7.2 VM using virbr0 as a virtual bridge. Originally, container1 could connect out and do e.g. yum installations, but after I created container2, neither ...
0
votes
0answers
44 views

Dovecot auth-worker permission denied to PAM and even /dev/log

Problem I have a problem dovecot authenticating users via pam_sss.so (in an LXC container, which may be related or may be not). # doveadm auth login semenov Password: passdb: semenov auth failed ...
0
votes
0answers
32 views

How to isolate two containers connected to the same bridge?

I have several LXD containers which are bound to a single bridge (the default lxdbr0 or another one, it does not matter). The host itself has another two interfaces, one ultimately connecting it to ...
0
votes
0answers
118 views

Flat LXD network?

I have a rather simple network setup, and from what I see LXD defaults to veth networking model, I was hoping for a simpler flat networking (external DHCP, direct access to external LAN) to run ...
0
votes
0answers
59 views

Merge btrfs subvolumes of lxc container

Problem: I've made some snapshots of an lxc container in the past. When I tried to make one earlier using the command lxc-snapshot -n base -c commentfile it echo'd Container is not defined. I ran that ...
0
votes
0answers
123 views

Where are network namespaces in lxc / lxd?

I am trying to understand namespaces in the context of lxd / lxc. I have two containers which respective eth0 is bridged to br1 and br2 on the host. This is done via a Virtual Ethernet interfaces ...
0
votes
0answers
66 views

squid in lxc container - don't want to work

I have a default Debian Jessie (amd64) host, minimal install, which runs a linux kernel 4.3.5 form backports repo. I've installed on it an lxc container (template download, selected system is a debian ...
0
votes
0answers
121 views

LXC SSH too slow in CentOS7

I have a newly created centos7. I installed the LXC and create a configuration: lxc.network.type = veth lxc.network.link = lxcbr0 lxc.network.hwaddr = fe:84:8b:f1:76:8e lxc.network.flags = up lxc....
0
votes
0answers
61 views

postgresql in lxc container doesn't start after reboot

Debian stable (Jessie) I have few containers - in one container there is postgresql. I want to start it first (I hope that my config does it). After reboot all containers starts, but i can't log in ...
0
votes
0answers
71 views

NAT for LXC Containers Debian 8 - no connection

I have a Debian 8 server running on a physical host machine. To seperate some services, I have created a lxc container (also debian 8). I am currently trying to set up a working NAT so my lxc ...
0
votes
0answers
113 views

Proxmox LXC-guest: Cannot open /proc/stat: Transport endpoint is not connected

since a few seconds I can not use htop or top in my LXC-containers: Cannot open /proc/stat: Transport endpoint is not connected Same problem on reloading php5-fpm Dez 18 13:40:31 systemd[1]: ...