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
1answer
17 views

Prioritizing I/O in LXC on Debian (without LXD)

I had a couple machines where I used OpenVZ and recently, on newer versions of Debian (Jessie), I've been using LXC. I need a way of giving one container priority on host I/O resources, I could do ...
0
votes
1answer
107 views

Mount Block Device in LXD

I have been experimenting with LXD on Ubuntu Server 16.04 and i'm trying to figure out how to mount a linux block device from the host in the container. I was able to successfully add the device using ...
5
votes
2answers
307 views

What is the difference between containers and virtual machines?

I want to comprehend all that differ a container from a virtual machine. A filesystem with all operational system can be observed for both of these virtualization methods. But in a Docker container, e....
0
votes
0answers
21 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
25 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
1answer
91 views

How to shrink the disk of a LXC container on Proxmox 4?

I would like to shrink the main disk of a LXC container on a Proxmox VE 4.2, from 30GB to 20GB for instance. Shrinking seems not to be supported yet : $ pct resize <VMID> rootfs 20G unable to ...
0
votes
0answers
55 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/...
3
votes
1answer
57 views

SELinux on CentOS7-based LXC?

Is there any way to enable SELinux on LXC-based container using proxmox 4.2?
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
1answer
58 views

IPv6 and LXC connectivity

I am struggling a bit on how to equip my LXC configuration with IPv6 currently. What's the setup? Ubuntu 16.04 LTS LXC2-beta from the Ubuntu PPA's (feature IPv6 connectivity) I use a netcup IPv6 ...
0
votes
0answers
38 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:...
1
vote
1answer
34 views

Port forwarding prevents container from updating

I use the following route on my host machine in order to pass all my traffic to a NGINX server running at port 8080. -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080 Unfortunately when I ...
1
vote
0answers
37 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-...
0
votes
0answers
36 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 ...
1
vote
1answer
21 views

Upgrading Debian Squeeze with OpenVZ to Debian 7/8 with LXC

I have a few servers which are running Debian 6 (Squeeze) which uses OpenVZ to run containers. The containers are some Debian 6 and some Debian 7. Squeeze was the last version of Debian to support ...
1
vote
1answer
28 views

LXC (proxmox) JBD high (100%) IO utilisation

We have a dedicated server running a number of smaller guest VMs containing for example, HTTP server, MySQL and some real-time applications. However we find that JBD inside the guests are often ...
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 ...
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 ...
0
votes
1answer
112 views

FreeIPA in LXD/LXC containers - cannot switch user

The Setup consists of one FreeIPA-Server and one Client, which both reside in unprivileged LXD-Containers on the same Host. Both containers and the host machine run Ubuntu 16.04. All Settings are ...
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 ...
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
1answer
258 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
1answer
52 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 = 00:16:3e:aa:aa:...
0
votes
0answers
34 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 ...
1
vote
1answer
36 views

Connect virtual subnets from two physical host

I have proxmox 4 based on debian 8 on two hosts A and B. Both have two NICs. One NIC from each host is connected via a Crossover cable. Host A: eth0: public IP eth1: 10.0.0.2/24 vmbr1: 10.0.0.1/24 ...
0
votes
0answers
120 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 ...
27
votes
7answers
6k views

Can you run Docker natively on the new Windows 10 (Ubuntu) bash userspace?

My understanding was that the primary limitation of running docker on other OSs was the Linux Network containers that made it possible. (Certainly for Macs). Recently Microsoft announced a beta of a ...
1
vote
1answer
73 views

lxc, how to control which interface lxcbr0 is defined on?

We have a host with production and management networks. Using the default setup, containers use lxcbr0. However, we cant find where this interface is defined, or which of our networks (management o ...
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
124 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
2answers
162 views

ubuntu 14: how to configure bridge for bonded interface?

We have a server connected to 2 switches via two NICs. On each NIC are 2 VLANs, management and production. Right now we only have one switch connected, so haven't setup the spanning tree etc. We ...
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
123 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
2answers
110 views

Proxmox: Node's load at 70, 2 containers are not responding, but top shows nothing

I got a huge problem. Some of my Proxmox-based LXC-containers are not responding since 2 days if I do not reboot the node. This happens always at the same time in the night (I guess there is ...
1
vote
1answer
37 views

zombie lxc swap file: text file busy but no pid

I have a server running Ubuntu 12.04.5 LTS (Precise Pangolin). On that server I created a new Linux container: $ sudo lxc-create -n mycontainer After a while I decided to get rid of this container: ...
1
vote
1answer
25 views

lxc 1.1.2 on Debian Squeeze

I am running lxc 0.8.0 inside Debian Squeeze (Linux kernel 3.4.34). Does anyone run lxc 1.1 or newer inside Linux kernel 3.4? As I know, docker require Linux kernel version at least 3.16. What is the ...
1
vote
2answers
161 views

Will Linux/Ubuntu running in an LXC container understand cgroup memory limits?

I'm planning to rent a physical server and run MySQL inside an LXC container on that server. I'd like to control maximum memory usage for the MySQL instance using cgroup limits : lxc.cgroup.memory....
0
votes
1answer
76 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 ...
3
votes
1answer
220 views

CGroups memory limit not working

I am trying to limit memory usage for a LXC container using CGroups, but I can't limit the memory. # lxc-cgroup -n maxdaniel981 memory.limit_in_bytes 134217728 lxc_container: failed to assign '...
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
1answer
79 views

lxc/lxd iptables ouput owner rule errors out with “Invalid argument.”

If I try to run the following command in my lxc/lxd Ubuntu 14.04 amd64 container: iptables -A OUTPUT -p tcp -m owner --uid-owner 0 -m tcp --dport 80 -j ACCEPT I get the following error message: ...
0
votes
1answer
315 views

Why is zfs/btrfs recommended for an lxd host?

Note that for maximum performance, it's recommended to have /var/lib/lxd on a btrfs filesystem or setup ZFS or LVM and configure LXD to use a ZFS pool or LVM VG. Source Why is that? I.e. How ...
2
votes
2answers
2k views

How to make lxd containers accessible to the LAN

If I use Virtualbox to spin up a VM, I can select "bridged" as the network adapter type and this results in the guest/virtual NIC being connected to my physical LAN and hence getting a LAN IP from my ...
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 ...
1
vote
0answers
422 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 ...
2
votes
2answers
254 views

MySQL doesn't start after upgrading to Debian Jessie

I have a server with Proxmox 3.4 with several OpenVZ-containers. Host and all guests are running Debian 7 x64. Now I want to migrate my old setup to a new server with Proxmox 4 (based on Debian 8). I ...
0
votes
1answer
42 views

Is it possible to run Ubuntu 15.10 in a lxc container on an Ubuntu 14.04LTS host?

I did not find any hint about it... Is it possible to run Ubuntu 15.10 in a lxc container on an Ubuntu 14.04LTS host?
0
votes
1answer
33 views

Having one of many public IP addresses for LXC only

I have VPS server hosted using Xen from hosting provider. I am assigned few IP addresses (*.*.56.234, *.*.56.235, *.*.56.236, ...), however there is one physical network device eth0. The host is ...
1
vote
0answers
79 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
1answer
26 views

Why do I need to start services using sudo when logged in as root in an LXC container?

I've got an unprivileged LXC container which I've set up following the steps outlined on Stèphane Graber's website. Things work pretty well, but I'm having trouble starting php-fpm even though I am ...