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

414 questions
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
  • 893
  • 3
  • 14
  • 35
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
  • 893
  • 3
  • 14
  • 35
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
  • 4
  • 8
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
  • 162
  • 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,456
  • 3
  • 26
  • 48
0
votes
1 answer

Does LXC support IPSET6+?

I would like to use a new firewall-extension for PLESK on a Proxmox-LXC. Now the support of the firewall-extension wrote me this message: Does LXC support ipset 6+? If not then I wouldn't recommend using our product within a VPS. Good question.…
MyFault
  • 893
  • 3
  • 14
  • 35
0
votes
2 answers

sshd doesnt work (but started) in lxc (ubuntu)

When I'm trying to connect with ssh ubuntu@10.0.0.* it fails with Read from socket failed: Connection reset by peer, and I can connect to containers only with lxc-attach -n (name). How can I fix this? UPD 0: $ ssh -vvv…
0
votes
0 answers

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 that I can ssh to, issue commands, for example,…
minus8
  • 72
  • 1
  • 1
  • 7
0
votes
2 answers

Deny usage of host consoles/ tty to lxc container

I'm running Ubuntu 12.04.5 LTS (lxc package 0.7.5-3ubuntu69) with a single lxc guest. Everything works fine, except the lxc container seems to use/ mess with the hosts tty devices. As soon as the container is started I can no longer login into the…
gucki
  • 788
  • 2
  • 10
  • 28
0
votes
1 answer

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 eth1 interface on the LXC and forward all traffic…
0
votes
2 answers

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 start due to networking, it seems this is to do…
RichyHBM
  • 103
  • 3
0
votes
1 answer

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 to keep being able to work on it. If I unmount…