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
1
vote
2 answers

why docker not executing init as lxc

Docker is not running init. So services are not started during startup. Lxc runs init during lxc-start.Since Docker is using lxc why it is not running init. What are the advantages of not running init and depending on supervisord for daemonization?
kalyan
  • 249
  • 1
  • 3
  • 11
1
vote
1 answer

docker/lxc bridged networking

I have this server (the host) which has 1000 external ip addresses. I created a docker container running squid3 and I need to use those ip addresses. I can enable forwarding from the host but that just forwards the request to the local docker ip…
Romeo Mihalcea
  • 522
  • 1
  • 9
  • 27
1
vote
1 answer

how do I enable seccomp with lxc

I can see in the lxc repo README there is a trivial example: lxc.seccomp = /var/lib/lxc/q1/seccomp.full whith some commands to fill up a file with a whitelist which (it is claimed) allows everything. Is there any documentation of what you can do…
Michael Neale
  • 3,704
  • 5
  • 28
  • 26
1
vote
1 answer

Execute virtualbox in LXC ? /dev/vboxnetctl: No such file or directory

I have Jenkins installed in a LXC container. In one Jenkins job, I want to test my project deployment with vagrant + Virtualbox. So, I try to execute VirtualBox in my LXC container. First difficulty, load vbox kernel modules. To fix this first…
1
vote
6 answers

Can Docker help me install Oracle 11g database on Ubuntu?

We are struggling with a common problem of trying to provide an Oracle 11g instance for our developers to test with. Our standard build agents are based on Ubuntu 12.04 but Oracle supports only RedHat based OS's. There are some hacks about…
Capt. Crunch
  • 839
  • 2
  • 12
  • 25
1
vote
1 answer

Cannot start XML defined Linux Container, faulty cgroup mount

Using ubuntu 13.04 latest; i've installed lxc and various other tools Here's my XML definition: vm1 500000 exe /bin/bash 1
Disco
  • 1,421
  • 5
  • 20
  • 34
1
vote
1 answer

Configuring bridging between a linux containers (LXC) interface and the hosts

I want to run 2 LXC containers under a host, and I want each to have their own IP on the network, let's say the host has 10.10.1.10 and the containers have 10.10.1.11 and 10.10.1.12. Does my setup require that I configure 2 bridged interfaces in the…
davidparks21
  • 928
  • 1
  • 12
  • 27
1
vote
1 answer

lxc-console only works once

I have a debian-squeeze host-system on which I have installed lxc. i created a (squeeze) container, and started it. then I'm trying to get inside the container with lxc-console. everything works fine so far. but the weird thing is, lxc-console only…
RazorHail
  • 165
  • 1
  • 9
1
vote
0 answers

Set up LXC container as VM with its own IP address

I need to set up a fenced environment in on Ubuntu server. The actual use case is to have two separate websites running on the same physical box, but I want one of those websites running in a fenced environment. I figured that the best way to do…
vonconrad
  • 1,281
  • 2
  • 9
  • 9
1
vote
1 answer

How to create a LXC container on LVM from an OpenVZ template?

I have a lot of experience using OpenVZ, but I want to give LXC a try on a server where perfect isolation is not a concern. The main reason for the switch is preferring Ubuntu Server LTS as the base OS, but the OpenVZ project currently only supports…
jimp
  • 638
  • 3
  • 11
  • 20
1
vote
1 answer

Chef-Server fails startup

I've installed chef-server from the chef apt repository using these instructions and everything seems to work until I try to start chef-server. I'm running Debian Squeeze in a Linux container (LXC). This is an example of the output I get when I try…
Matt
  • 111
  • 4
1
vote
0 answers

Why can't rsyslogd find libgcc_s.so.1?

Scenario: Running a debootstrapped Ubuntu 11.4 lxc guest on a Ubuntu 12.4 lxc host. Inside the lxc guest, rsyslogd is constantly crashing with SIGABRT stating: libgcc_s.so.1 must be installed for pthread_cancel to work 0334.380551272:7f4128a84700:…
UsAaR33
  • 1,096
  • 3
  • 11
  • 20
1
vote
1 answer

installing debian with debootstrap and lxc instead of debootstrap and chroot

So I need to 'install' (or rather prepare a root filesystem for) a Debian system and that was done with debootstrap and chroot before. However due to the not-very-existent isolation of chroots (with regards to networking, reboots, etc.), this is a…
Michael
  • 285
  • 4
  • 16
1
vote
1 answer

Linux Container conversion to Vagrant and back

The situation is the following: we have an lxc (linux-container), which contains a Debian Squeeze distribution, built up with a preseed file. We wanted to add some extra packages (packages for the OMF testbed) which are not part of the main, contrib…
atobi
  • 49
  • 1
  • 5
1
vote
2 answers

Real life virtual bridge setup on Debian

How do I get the bridge setup done with multipe IP addresses. Ideally, I would have 4 virtual systems each with it's own IP address but also an intranet address (like 10.#.#.#). So that they can communicate with each other, without going over the…
RoboTamer
  • 502
  • 1
  • 4
  • 17