Questions tagged [lxc]

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 on steroids”.

LXC provides operating system-level virtualization not via a full blown virtual machine, but rather provides a virtual environment that has its own process and network space. LXC relies on the Linux kernel cgroups functionality that became available in version 2.6.29 and is now available in all newer kernel versions. Cgroups was developed as part of LXC. It also relies on other kinds of namespace-isolation functionality, which were developed and integrated into the mainline Linux kernel. LXC is similar to other OS-level virtualization technologies on Linux such as OpenVZ and Linux-VServer, as well as those on other operating systems such as FreeBSD jails. LXC Containers can define various cpu limits, memory limits etc. (In short all parameters that can be set via CGROUPS) to prevent any one container from interfering with all other containers running on the same LXC host. LXC uses the linux bridge-utils commands to create local VLANs, and attach containers and physical interfaces to them. With containers the physical overhead (ram, swap space, one kernel per VM, plus hypervisor) that is present in virtualization methods is reduced. With containers, one kernel and one virtual memory space is shared between all the containers running on that host. For a comparison of other Operating System virtualization techniques, see this link

420 questions
0
votes
0 answers

Strange behavior of web stress tests

After some server configuration, i decided to do a stress test using siege. 2 front servers in lxc containers, load balancing nginx - on the host machine. (if need, I add nginx and sysctl configs later) Host machine - dedicated server on OVH: Intel …
0
votes
1 answer

LXC Networking: Access other container from another container throug host's domain

This is my first question here so sorry for any mistakes I make. I've not found any solution for my question yet here in serverfault. I setup two LXC Containers: one ("A") with Dovecot and Postfix, the other one ("B") with nginx and Roundcube. Both…
nee6AGag
  • 11
  • 4
0
votes
2 answers

Proxmox VE 4.2 issue on OVH servers,LXC can't access internet

I have replaced the IP with dummy IPs. 1.2.3.4 is the main IP 5.6.7.194 is the LXC Dedicated IP Details for main server: Main IP network interface 1.2.3.4 auto lo iface lo inet loopback iface eth0 inet manual auto eth1 iface eth1 inet manual auto…
Arvind
  • 1
  • 2
0
votes
0 answers

Softether on lxc container with bridged connection

I've configured an lxc container with softether. The lxc container has a bridge connection, so I have a LAN IP with my lxc container. Here's the IPs of my office: Router/DHCP Server: 192.168.1.1 LXC Host: br0 - 192.168.1.2 LXC Guest:…
choldi
  • 1
0
votes
1 answer

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 extra fields: user=semenov # tail…
Ilya Semenov
  • 191
  • 1
  • 8
0
votes
1 answer

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:66 When I start it, I get: # lxc-info -n FOO |…
0
votes
2 answers

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 have LXC installed, and want to bridge (rather than…
eos
  • 551
  • 4
  • 10
  • 27
0
votes
0 answers

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 jessie amd64), with NAT networking. Until this…
user344776
0
votes
2 answers

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 something happening on a container which causes heavy…
MyFault
  • 913
  • 3
  • 15
  • 36
0
votes
1 answer

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 proxmox-server kernel: [1922972.974633] audit: type=1400…
MyFault
  • 913
  • 3
  • 15
  • 36
0
votes
1 answer

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: iptables: Invalid argument. Run `dmesg' for more…
pleasedesktop
  • 201
  • 1
  • 4
  • 9
0
votes
1 answer

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?
Tester
  • 1
0
votes
1 answer

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 using first one from the pool (*.*.56.234). I want my…
Mike
  • 161
  • 1
  • 1
  • 6
0
votes
1 answer

systemd-networkd not recieving DHCP IP in cloned container

I am trying out LXD, and created a barebones Arch Linux image from scratch. It works perfectly the first time the image is used, but cloning the container or reusing the image causes networkd to not broadcast a DHCP request. The logs don't say…
0
votes
1 answer

How do I provision a new LXC container using saltstack?

I've got a host server which runs Jenkins. I'd like Jenkins to automatically create new containers and prepare those containers with SALT. The ultimate purpose is to use these containers to test code. What is the best way to create a new container,…
sbrattla
  • 1,578
  • 4
  • 28
  • 52