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
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
  • 913
  • 3
  • 15
  • 36
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
  • 818
  • 2
  • 11
  • 29
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
  • 4
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…
0
votes
1 answer

Nginx forward ssl to ISPConfig lxc container

I am having issues with https connexions to the ISPConfig admin panel (port 8080). My setup is relatively standard. I own a physical host, which routes all traffic on common ports to an LXC container which acts as a router. This runs an Nginx…
scx
  • 101
  • 3
0
votes
0 answers

Prevent container from shutting down at console exit

As the manual clearly states, an LXC container automatically destroys (shuts down) itself when you exit the console. However, we're using these machines as servers (sshd, sometimes apache, ...) and I want the machines to be running until I shut them…
sudoremo
  • 101
  • 2
0
votes
1 answer

How to run Fedora container on Ubuntu host?

I'm using Ubuntu 14.10 and was trying to run a Fedora container. The container I created via given templates does not work properly. I guess the reason is that systemd is not set up correctly. First, I installed lxc on the host. Then I create a…
Tianren Liu
  • 111
  • 1
  • 5
0
votes
1 answer

Is it possible to set the backing FS directory of a specific LXC?

So they don't all go to the same folder (e.g. /var/lib/lxc)? This would let the user take advantage of other partitions/disks when the default one becomes full. lxc version: 1.0.6
0
votes
0 answers

less doesn't work in LXC container

I'm experiencing some trouble running less and expect inside LXC container (whether using console or SSH) Expect won't work before I won't add an "interact" anywhere in the script, and less doesn't show any output, and exits with status 1…
aqz
  • 1
0
votes
1 answer

Why port 22 redirection causes lxc containers to ssh to host?

I have a host A on which I have 2 lxc container (X and Y). I originally had port 22 on my host (A) forwarded to X. Using this configuration, I wasn't able to ssh out of the container X and when ssh-ing out of contianer Y, it caused the ssh…
Erwald
  • 185
  • 1
  • 1
  • 11
0
votes
1 answer

LXC container clone has no network and SSH stopped

I was having this networking problem with LXC containers (question and answer here:bridging LXC containers to host network with different IP range) and if I have found a solution, I still have not found the reason of the problem: I started with a…
MrE
  • 418
  • 1
  • 6
  • 14
0
votes
0 answers

Can I create separate bridges for every lxc user?

I have successfully created unprivileged lxc containers for one user on a system. All of those containers use the default lxcbr0 bridge. Now I want to allow other users on the system to create unprivileged lxc containers. How do I create more…
HRJ
  • 225
  • 2
  • 10