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
854 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 ...
4
votes
0answers
129 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
103 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
22 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
307 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
503 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
158 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
41 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
67 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
47 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
137 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
124 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
35 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
157 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
131 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
498 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
75 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
213 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
148 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
169 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
39 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
479 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
293 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
349 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
147 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
161 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
553 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
108 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
9 views

LXD 2.0 on Debian 8.4

I'm running Debian 8.4 and would like to set-up recently released LXD 2.0. Is this feasible, or should I stick with LXC? It seems all focus is on using LXD with Ubuntu.
0
votes
0answers
10 views

bridged LXC: container's mac address learned on wrong interface

Ubuntu host has p2p1.17 physical interface attached to bri17 bridge. LXC container FOO has following net config: lxc.network.type = veth lxc.network.link = bri17 lxc.network.hwaddr = ...
0
votes
0answers
9 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
53 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
21 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
49 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
34 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
60 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 ...
0
votes
0answers
32 views

Proxmox-Server reboots sporadically

I just mentioned that my proxmox-system is rebooting from time to time when performing backup-tasks (bacula, not the proxmox-backup-system). The logs are showing the following: Mar 8 02:30:01 ...
0
votes
0answers
31 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
45 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
90 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]: ...
0
votes
0answers
31 views

Do LXC containers have access to PCI components such as PCIe SSDs and GPUs?

Do LXC containers have access to PCI components such as PCIe SSDs and GPUs? Do they support exclusive usage by using PCI passthrough like in a KVM?
0
votes
0answers
18 views

Controlling Remote Processes from Linux Access Server

I have constructed a HA web cluster in LXD with each major service run within its own container. I.e, 2 x Nginx servers in a container each, 2 x MySQL etc. I would like to add a management container ...
0
votes
0answers
27 views

CPU, RAM, DISK quota for LXC on Ubuntu 14.04

I read the LXC official website articles and googled quite a bit, but still haven't figured out how to setup resource quota for LXC on Ubuntu 14.04. It seems LXC has changed a lot since Ubuntu 14.04. ...
0
votes
0answers
87 views

lxc-* commands do not work

I have a problem where I can issue: $ sudo lxc list +---------+---------+------------+------+-----------+-----------+ | NAME | STATE | IPV4 | IPV6 | EPHEMERAL | SNAPSHOTS | ...
0
votes
0answers
22 views

Is an unprivileged LXC where the host user itself is mapped to 0 less secure of one where one of its subids is mapped to 0, and why?

Instead of creating "common" LXC unprivileged containers where all the users are mapped to (unprivileged) subuid/gid of my host user, I'm considering a mapping where my host user itself will be mapped ...
0
votes
0answers
131 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
58 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
171 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 ...