Linux Containers (LXC) is a userspace interface for operating system-level virtualization features in the mainline Linux kernel, such as kernel namespaces and control groups (cgroups). These allow multiple distinct user space instances to be run on a single kernel.

learn more… | top users | synonyms

3
votes
1answer
2k views

How to setup Git server on Linux Container in Debian

I have a LXC container on my Debian system. I want to setup a public Git server on it so that it's accessible to other people. How can I do this? UPDATE #1 Link to apache2.conf: ...
1
vote
0answers
98 views

benchmarking ftp in 3 methods of virtualization

My Bachelor Final Project is about benchmarking visualization methods with ftp, web and mysql services: installing Debian on xen (para-visualization) kvm and lxc with equal resources config (equal ...
1
vote
2answers
259 views

lxc: running virtualbox inside a container

I've install virtualbox inside an lxc container. However when I try to start a VM I get the message: kernel driver not accessible (rc=1909) ....permission problem with /dev/vboxdrv. This obviously ...
2
votes
0answers
68 views

LXC apparmor profile limits executing scripts in /run/*

LXC is blocking a trusted container from running scripts in /run/*, how do I configure LXC to allow scripts to run here?
2
votes
2answers
242 views

Can I have a bridged interface without an IP?

I have 2 NICs: eth0 & eth1 on a host OS which runs some VMs (LXC) under it. The hosts eth0 is connected to a private network and configured as the primary interface. The hosts eth1 is connected ...
1
vote
0answers
140 views

vi hangs when run in /dev/console under LXC

I'm running an Arch Linux container from within lxc. The lxc-start command connects to the internal /dev/console, on which I have agetty running using the following command: /sbin/agetty --noclear -a ...
3
votes
0answers
118 views

To what extent does LXC manage configuring the network interface in a container?

In the LXC config file we can specify an IP address for a container: lxc.network.type=veth lxc.network.link=br0 lxc.network.ipv4 = 10.1.0.35/16 lxc.network.flags=up lxc.network.hwaddr= ...
1
vote
0answers
154 views

Network in LXC not forwading through a bridge

I've got an LXC container, on the host I've got a bridge between the LXC container and eth0. The LXC container can ping it's Host 10.1.0.5, but can't ping the gateway of 10.1.0.2. The host is able to ...
1
vote
0answers
979 views

Using a bridge, an LXC container can't ping router, but the host OS can

I've got a virtual machine running under virtualbox, and in that virtual machine I've got an LXC container I'm trying to bridge to virtualbox's NAT interface: ------------- ----------- ...
2
votes
2answers
2k views

Extra bridge interfaces get added automatically

I have a bridge set up between eth0 and br0, the bridge works fine, but sometimes, for unknown reasons and circumstances, I keep getting these off vethXXXXXX interfaces added to the bridge. When this ...
1
vote
2answers
396 views

cgroups: blkio.weight doesn't seem to have the expected effect

I've got 2 LXC containers with these cgroup settings: lxc.cgroup.blkio.weight = 200 lxc.cgroup.cpu.shares = 200 and lxc.cgroup.blkio.weight = 800 lxc.cgroup.cpu.shares = 800 I have verified in ...
0
votes
1answer
192 views

LXC: How can I mount a drive/directory without restarting the container?

If I configure LXC's fstab and restart, there's no problem with the mount, but do I have to restart?
7
votes
2answers
4k views

LXC: How do I mount a folder from the host to the container?

I'm trying to mount a folder on the host to an LXC container. The host has a folder /mnt/ssd/solr_data created (this is currently on the root filesystem, but later I'll mount an SSD drive there, so ...
3
votes
2answers
91 views

Reference documentation for cgroups (control groups) settings

I'm looking for some reference documentation to explain what each of the settings are, for each control group. For example, there's cpuset.cpus, I think setting this to 0 means use all CPUs, setting ...
1
vote
0answers
337 views

lxc networking quesion

I have a similar requirement to the OP of this thread. I want the following configuration: -Physical host (PhyHost) reachable from the network at IP 10.1.101.89 -LXC container (LxcHost) ...
1
vote
0answers
68 views

lxc-unfreeze does not resume the guest if the host is rebooted

Does a guest that has been frozen with lxc-freeze survive a reboot of the host? I.e. after rebooting the host, can the guest be unfrozen with lxc-unfreeze?
5
votes
1answer
440 views

SquashFS image as rootfs in LXC

Is it possible to use a SquashFS filesystem as an LXC rootfs? I can mount an ext3 image as a rootfs just by setting lxc.rootfs to the filename, but if it's any other type of image, lxc-start just says ...
8
votes
3answers
11k views

How to configure external IP addresses for LXC guests?

I'm exploring the LXC features in Ubuntu 12.04 and I really want to set up a network like this: client1: 192.168.56.101/24 lxc-host: 192.168.56.102/24 guest1 192.168.56.201/24 guest2 ...
6
votes
2answers
3k views

Fast X for LXC guest on localhost?

How can I run X apps inside an LXC container efficiently? ssh -Y guest is too slow - there is no graphics acceleration with ssh -Y - everything has to travel over the virtual network with the ...
5
votes
1answer
2k views

How do I disable udevd in systemd?

I'm trying to boot a Fedora Rawhide LXC container from a Fedora 16 host, and it's not working - systemd just keeps dropping into emergency mode. Because udevd doesn't work in LXC containers, I thought ...
2
votes
1answer
548 views

How can I use Skype with lxc?

Under Scientific-linux? https://en.wikipedia.org/wiki/LXC I just want to separate Skype, because I don't trust it. We are using it only to call/chat with people, no file transfers!