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
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…
Remo
  • 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
  • 408
  • 1
  • 5
  • 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
0
votes
2 answers

LXC Container Networking

I just started to experiment with LXC containers. I was able to create a container and start it up but I cannot get dhcp to assign the container an IP address. If I assign a static address the container can ping the host IP but not outside the host…
digitaladdictions
  • 1,465
  • 1
  • 11
  • 29
0
votes
3 answers

Reverse Proxy Linux Containers

I am trying to set up a reverse proxy on my ubuntu 14.04 host so that I can run multiple websites, each in their own LXC container (one day docker but one step at a time). In this example the sites/hostnames…
Programster
  • 485
  • 12
  • 22
0
votes
1 answer

LXC not respecting netmask on Ubuntu 14

I have a LXC machine configured with bridging so that it has its own public IP address and is accessible over the internet. Even though it's working, the netmask address set in the VMs /etc/network/interfaces is not being kept. The interface eth0…
EthernetCable
  • 281
  • 1
  • 2
  • 7
0
votes
1 answer

Linux Containers (LXC) : lx-execute and networking

I have a question about LXC Containers. I have some containers, if I lxc-start them, they come up with networking fine, but I want to just be able to run commands against them using lxc-execute, without starting the whole thing. However, when I do…
0
votes
2 answers

Error Installing lxc 1.0.0

I am trying to install lxc 1.0.0 but I get this error when I run this command I have added the following repos to my sources.lst file deb http://ppa.launchpad.net/ubuntu-lxc/daily/ubuntu saucy main deb-src…
Santhosh
  • 111
  • 3
0
votes
2 answers

LXC container starts with readonly root filesystem

I am running LXC on Debain Wheezy using BTRFS, and have created a container using lxc-create using the "debian" template (yesterday). When starting the container, the root filesystem in the container is read only. I expected the rootfs in the…
Lee Begg
  • 36
  • 1
  • 5
0
votes
2 answers

How to share an LXC container between two compatible hosts?

I use Linux and I am in the process of migrating from one Linux Mint 15 into Linux Mint 16. Each OS is installed on the same partition as a different subvolume on the same btrfs partition. As I use both systems at the moment, I'd like to share all…
Adam Ryczkowski
  • 690
  • 1
  • 9
  • 29