Linux Containers (LXC) is a program using Linux cgroup that let run multiple linux instances on one host.
5
votes
1answer
2k 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 ...
0
votes
1answer
155 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 ...
2
votes
0answers
18 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
0answers
51 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= ...
2
votes
0answers
174 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 ...
1
vote
0answers
32 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 ...
1
vote
0answers
58 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
126 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:
------------- ----------- ...
1
vote
0answers
44 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 ...
1
vote
0answers
116 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
31 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?