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
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,505
  • 1
  • 12
  • 30
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
  • 495
  • 1
  • 13
  • 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
  • 291
  • 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
  • 720
  • 1
  • 9
  • 29
0
votes
0 answers

How lxc-console implements implementation of the process into container?

Let's assume that we have some host with containers on it. When I type lxc-console I can get access from host's cmd to container's cmd, so I want to know what exactly happens? I mean how lxc-console implement process into container and get access to…
zerospiel
  • 467
  • 1
  • 5
  • 10
0
votes
3 answers

Interface for accessing to guest OS via libvirt

Is there any possible (not necessary native) ways to get access (e.g., terminal usage is the main purpose for me) to guest OS with *nix using libvirt/LXC(not as libvirt module) capabilities? And I don't mean to use methods like lxc-console commands.
zerospiel
  • 467
  • 1
  • 5
  • 10
0
votes
1 answer

use ssh-agent to connect to vagrant-lxc machines

I'd like to connect to a vagrant-lxc machine using a ssh-key which is already loaded. To make it a little bit more clear, here's my setup: Load ssh-key in Windows via PuTTy connect to vagrant host machine via Putty with agent forwarding…
john.dough
  • 103
  • 1
  • 10
0
votes
2 answers

How can I create an LXC container in a custom directory

My root filesystem is full and I'd like to create a container in my home directory, which has a lot of free space. I made a config file like this: LXC_AUTO="true" LXC_DIRECTORY="/home/al/lxc" And I'm creating a container like this: $ sudo…
Alex Marandon
  • 115
  • 1
  • 6
0
votes
1 answer

How do I configure routing from host system to virtual machine?

I have an Ubuntu host system that is running a MAC-VLAN virtual interface on top of eth0 interface, ipv4 routing is enabled. Also, this system has a Docker (LXC) container running: docker0 Link encap:Ethernet HWaddr d6:00:77:0f:ab:9e inet…
demeshchuk
  • 111
  • 2
0
votes
1 answer

memory size error linux container

container name: vm1 config: lxc.tty = 4 lxc.pts = 1024 …
Yaşar içli
  • 101
  • 3
0
votes
1 answer

Minimal container ubuntu image docker like

I'm playing around with LXC. My goal is to run a single process within a container and I'm now focusing on processes running within my container. When I create a basic LXC template on ubuntu 12.04, I've got about ten processes running (including…
rmonjo
  • 231
  • 2
  • 4
  • 12
0
votes
1 answer

Different behavior of ubuntu-cloud image between LXC and libvirt-lxc

I've used ubuntu-cloud template as LXC containers, and they all worked fine. Recently I switched to use libvirt-lxc, and followed instructions in Ubuntu document, but the image initialized differently from LXC: Tried to connect to AWS's meta-data…
snowmantw
  • 111
  • 4