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

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

Move an LXC container to a dm-crypt/LUKS filesystem

I need to move a container to a different filesystem, specifically a subdir of an already mounted LUKS/dm-crypt home dir. I tried moving it there and then bind mounting or symlinking it to /var/lib/lxc/foo but when I do lxc-start -n foo just exits…
Ross Patterson
  • 149
  • 2
  • 7
0
votes
2 answers

Networking (dhcpcd) under LXC

I would like to boot an Arch Linux instance using LXC. Just about everything works, but I'm encountering the following error when trying to configure an interface using dhcpcd: # dhcpcd eth0 dhcpcd[4213]: version 5.6.4 starting dhcpcd[4213]: eth0:…
larsks
  • 41,276
  • 13
  • 117
  • 170
0
votes
3 answers

LXC container network/routing issues

I have been experimenting with LXC virtualisation in order to run virtual machines on a dedicated server, but am having trouble setting up the networking properly. I am using veth bridged networking, as instructed here:…
Ellis Grouse
0
votes
2 answers

howto remove udev from centos(lxc-guest) without dependencies

i downloaded a openvz template for my lxc server to create a new centos 6.3 guest. Now the guest is not starting because udev is hanging in the boot process. Last time i didn't had this problem but now i have to disable or remove udev from the…
user61664
  • 103
  • 3
0
votes
1 answer

Debian bridged network between virtual machines

I installed two linux containers (lxc) in a debian squeeze server so the environment is as follows: Physical server: 192.168.2.200 Linux container 1: 192.168.2.201 Linux container 2: 192.168.2.202 Bridge between physical server and containers:…
Roland
  • 1
  • 1
0
votes
3 answers

Find ip address of VM or Container using a bridge

I have a virtual machine/LXC container that is using a bridge (on br0) to access the network. On the system that is hosting the virtual machine and the bridge, I would like to be able to tell what IP address was assigned (dhcp). I don't want to go…
0
votes
1 answer

How can I set up my own DHCP subnet on Rackspace?

Update: As per grawity and MonkeeSage's comments, it seems my question was pointed in the wrong direction. I've updated the title and question below... I'm currently evaluating LXC as an option for my company to safely and easily deploy several…
bloudermilk
  • 101
  • 3