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 ...
1
vote
0answers
7 views
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:
<domain type='lxc'>
<name>vm1</name>
<memory>500000</memory>
...
2
votes
0answers
43 views
Allowed cgroup devices for libvirt/lxc container
I want to allow my libvirt/lxc containers to use tun/tap device. In order to do so I for a running container I can add it to the allowed devices by:
# echo "c 10:200 rwm" > ...
0
votes
0answers
20 views
lxc bridged interface random connection losses
First, I create the bridge:
brctl addbr mybr
Then configure it:
ifconfig mybr 10.2.0.0 netmask 255.255.0.0 up
Then in lxc.conf, I have:
lxc.network.type = veth
lxc.network.flags = up
...
0
votes
0answers
24 views
Virtualbox: Port forwarding to an IP other than the hosts fails
I've got an Ubuntu server image running within virtualbox using NAT.
I've started LXC containers within that ubuntu server image and configured bridged networking so they all have an IP on the same ...
1
vote
1answer
66 views
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 ...
1
vote
1answer
88 views
Managing LXC containers in EC2
I have an EC2 instance running inside a VPC. I need to run a service inside a LXC container started in that instance and to make the service available to the outside world.
I have therefore created a ...
0
votes
0answers
151 views
LXC, Port forwarding and iptables
I have a LXC container (10.0.3.2) running on a host. A service is running inside the container on port 7000.
From the host (10.0.3.1, lxcbr0), I can reach the service:
$ telnet 10.0.3.2 7000
Trying ...
0
votes
0answers
65 views
deny usage of host consoles to lxc
I'm running an ubuntu quantal host and setup one lxc guest, also running quantal. So far everything works fine, except that after starting lxc I cannot access the first four ttys on the host anymore. ...
8
votes
3answers
233 views
Technology for short-lived private VMs
I'm trying to build a system that will run short-lived (CI and test builds) of software components, it's mandatory according to my requirements that each live on a private host. I'm taking that ...
2
votes
3answers
290 views
Running systemd based container in LXC
I'm currently trying to run an Arch Linux container using LXC on an Ubuntu 12.04 host. Arch Linux has recently migrated to systemd, which according to a variety of places has some problems operating ...
1
vote
0answers
91 views
Mounting a network file system inside LXC on Ubuntu 12.10
On an Ubuntu 12.10 server, I created an Ubuntu cloud lxc container. In the /var/lib/lxc/MY_CONTAINER/config file, I uncommented the line:
lxc.aa_profile = unconfined
and started the container.
...
0
votes
0answers
119 views
Networking an LXC Fedora Container on Ubuntu 12
I've had a look at these but had no luck doing it myself:
LXC container network/routing issues
http://libvirt.org/drvlxc.html
I have an Ubuntu 12.04 dedicated server, with an Ubuntu 12.04 LXC ...
0
votes
1answer
138 views
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 ...
1
vote
1answer
87 views
Missing lxc administration tools
Do you know how to backup and/or clone a lxc container ?
I'm under Debian 6, and there is no lxc-clone, lxc-backup commands !?
Lxc administration seems pretty tough...
0
votes
1answer
133 views
lxc vm access outside the host
On Debian 64bit, I configured a lxc like this :
host ip : 172.16.0.25
vm guest on this host : 172.16.0.44
I've done the bridge on my host
auto eth0
iface eth0 inet manual
up ...
0
votes
1answer
68 views
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 ...
2
votes
1answer
142 views
eth0 on lxc does not work
I am facing some problems that the eth0 on lxc container does not work. I already tried
Bridging LXC containers to host eth0 so they can have a public IP, but it does not help.
On my host (Ubuntu on ...
-1
votes
1answer
73 views
Executing lxc control command as non-root user [closed]
I experiment with Ubuntu 12.04 LTS as host and wonder what would be the best way to allow non-root users control LXC instances (lxc-start, lxc-stop, lxc-shutdown). I know I can create a linux group ...
0
votes
1answer
64 views
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 ...
0
votes
0answers
92 views
Systemd under LXC does not believe network device exists
I am running Arch Linux under LXC. I have a systemd unit file for dhcpcd (a DHCP client) that includes:
BindsTo=sys-subsystem-net-devices-eth0.device
And indeed, eth0 exists and is functioning:
# ...
0
votes
2answers
76 views
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
...
1
vote
0answers
217 views
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 ...
2
votes
1answer
97 views
NAT for static private addresses
Could someone please help me out with the following scenario:
I have a machine that hosts 3 lxc containers, and acts like a router for them. The LXC containers have private ip addresses set on the ...
2
votes
1answer
89 views
OpenVZ has vzctl exec, what is the equivelent for lxc
I'm switching from OpenVZ to lxc. The one thing that is really bugging me is that I can't find a lxc alternative to vzctl exec. Before on OpenVZ I could do vzctl exec 1033 restart nginx. Now, all I ...
1
vote
1answer
551 views
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 ...
0
votes
0answers
63 views
propietary ATI video driver access inside lxc?
Since lxc is a kernel level super-chroot, i've been wondering what sort of video driver does the containers have:
My host is ubuntu 12.04 64-bit machine with ATI gpu. Will the lxc container have ...
3
votes
2answers
2k views
Bridging LXC containers to host eth0 so they can have a public IP
UPDATE:
I found the solution there:
http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge#No_traffic_gets_trough_.28except_ARP_and_STP.29
# cd /proc/sys/net/bridge
# ls
...
0
votes
2answers
712 views
Limit memory and cpu with lxc-execute
I would like to isolate processes using lxc-execute. Is it possible to set bandwidth, cpu and memory limit?
I had a look in the man of lxc.conf but I did not find it exhaustive.
1
vote
1answer
48 views
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).
...
0
votes
0answers
62 views
OpenVZ VPS: Partitioning Services on the VPS with LXC Containers [closed]
Has anyone tried this? I wanted to make full use of a cheapo VPS (and to work on my skills), and I thought it might be wise if I have an OpenVPN instance for me a few close friends to be in a ...
3
votes
2answers
362 views
lxc bandwidth control using tc
I am trying to restrict bandwidth inside my containers.
I have tried using the following commands , But I think it is not getting effective.
cd /sys/fs/cgroup/net_cls/
echo 0x1001 > ...
1
vote
2answers
978 views
No tun device in lxc guest for openvpn
I am trying to set up an openvpn server inside a lxc guest. However, it seams there is no tun device available in the container.
Starting openvpn inside the container gives me this error:
Tue Sep 18 ...
0
votes
1answer
281 views
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 ...
0
votes
1answer
192 views
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
...
1
vote
0answers
77 views
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 ...
0
votes
0answers
125 views
issue with lxc cgroup config
$ cat stage_container.conf
lxc.cgroup.cpu.shares = 512
lxc.cgroup.memory.limit_in_bytes = 1024M
lxc.cgroup.memory.memsw.limit_in_bytes = 3072M
$ lxc-create -t ubuntu -n demo -f stage_container.conf
...
2
votes
1answer
116 views
Link all LXC node APT caches to the host machine's APT cache
I have a number of LXC containers (ubuntu template) which all have their own separate APT caches.
/var/lib/lxc/*/rootfs/var/cache/apt/archives/
I would like to have these linked to the host ...
0
votes
1answer
515 views
“mount error(13): Permission denied” only in LXC container for CIFS/Samba share
I have a samba share that mounts just fine under the Ubuntu 12.04 host:
root:~# mount -t cifs -o credentials=/var/lib/lxc/vpn/rootfs/etc/samba/desktop.credentials //desktop/Media /media/Media
But ...
1
vote
1answer
138 views
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 ...
2
votes
1answer
291 views
firehol (firewall) with bridge: how to filter
I have two interfaces: eth0 (public address) and lxcbr0 with 10.0.3.1.
I have a LXC guest running with ip 10.0.3.10
This is my firehol config:
version 5
trusted_ips=`/usr/local/bin/strip_comments ...
6
votes
3answers
1k views
How to disconnect from lxc-console
I'm working with lxc in Ubuntu 12.04, and it's really great. However, I am unable to disconnect from a lxc-console session after I've connected. I read somewhere that Ctrl-aq will disconnect me from ...
0
votes
1answer
224 views
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 ...
2
votes
1answer
221 views
fail2ban on server with LXC Containers
The issue is modprobe and iptables don't work inside an LXC Container.
LXC is the userspace control package for Linux Containers, a
lightweight virtual system mechanism sometimes described as ...
0
votes
1answer
450 views
When I restart my LXC environment, the container does not re-bind to the IP address
The IP does no longer respond to a remote ping
With restart I mean:
lxc-stop -n vm3
lxc-start -n vm3 -f /etc/lxc/vm3.conf -d
--
/etc/network/interfaces
auto lo
iface lo inet loopback
up route ...
6
votes
1answer
198 views
Can I use a different linux distribution in an LXC container?
We are developing a server product targeted for Debian Lenny (and some others). However, due to driver needs, developers' personal choices etc. we run Ubuntu (12.04) on the hardware.
Is it possible ...
1
vote
2answers
273 views
Proper way to expose VirtualBox' machine to network via “one MAC” security locked switch port
Say, we need to expose LXC container (LXC) or Virtualbox VM (VBM) to public network with its own IP-adress (within additionaly assigned network — ADD-net) which is to be routed through main host. When ...
2
votes
1answer
434 views
How to start external programs in “unshare” container, with sending of file descriptors?
With unshare or lxc-execute I can create environments with separate network/mount/whatever namespaces. But starting programs there from outside is not really straightforward. Usually network and sshd ...
1
vote
0answers
280 views
FTP proxy with SSL support
I have a bunch of LXC containers with vsftpd daemon installed on each. I would like to forward/proxy traffic from dom0 server port 21 to particular containers based on ftp user name e.g. ...
2
votes
1answer
337 views
modprobe inside an LXC container
I need to run a WebDAV server inside of an LXC container, but I'm being told that modprobe is not available (even as root). I've seen that this was requested by developers, but how can I get around ...
5
votes
1answer
735 views
Is it possible to start LXC container inside LXC container?
Is it possible to start LXC container inside another LXC container?
