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 ...

learn more… | top users | synonyms

0
votes
1answer
418 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
247 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...
1
vote
1answer
736 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 ...
1
vote
1answer
178 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 ...
3
votes
1answer
1k 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 ...
0
votes
1answer
266 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
310 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
350 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
423 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
167 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 ...
3
votes
1answer
149 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
2k 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 ...
5
votes
2answers
9k 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 ...
4
votes
2answers
5k 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
95 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). ...
5
votes
2answers
1k 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 > ...
3
votes
2answers
4k 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
2answers
823 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
339 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
100 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 ...
3
votes
1answer
234 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 ...
1
vote
1answer
1k 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
197 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
601 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 ...
21
votes
3answers
13k 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
321 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 ...
3
votes
1answer
436 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
2answers
1k 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 ...
7
votes
1answer
463 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
462 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
929 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 ...
2
votes
0answers
475 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
794 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 ...
8
votes
2answers
3k views

Is it possible to start LXC container inside LXC container?

Is it possible to start LXC container inside another LXC container?
3
votes
1answer
1k views

SSH traffic redirect for LXC containers

I use LXC containers for ssh hosting and I would like to redirect SSH/SFTP traffic (using port 22) to the container's private IP address but on a user/IP basis. That is - one source port, many ...
2
votes
0answers
1k views

User not recognized by underlying authentication

I'm running lxc on Linux Mint Debian Edition tracking Wheezy/Sid. I created a container using "lxc-create -t debian -n dev". In accordance with the Debian wiki article on LXC I have mounted the ...
8
votes
1answer
2k views

Is LXC secure enough for VPS hosting?

Right now I'm using Linux VServer for VPS hosting. But it's lacking some functionality I need (ex. cpu usage virtualization, quota support for guests, etc.) so I'm thinking about switching to OpenVZ ...
3
votes
3answers
626 views

LXC container templates?

Is it possible to create an LXC container that you maintain only for the purpose of copying as a template? If so, how does one properly copy an LXC container?
1
vote
1answer
344 views

NTP on main server, and alternative on virtual (LXC)

I am setting up a server with several VPS. I am using LXC. I am thinking it would be better to have only the main server equipped with ntp and have the virtual boxes just get the time from the main ...
1
vote
2answers
699 views

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 ...
0
votes
3answers
221 views

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 ...
10
votes
5answers
2k views

Compute a list of difference between packages installed on two hosts

I just add some problems with my Debian virtual servers and I add to reinstall all of them from scratch. However, I still had access to the old version and I could retrieve the list of installed ...
3
votes
1answer
602 views

With CentOS 6 and LXC, “ifconfig” is unable to see network interface (but busybox “ifconfig” works fine)

I've just started working with LXC under CentOS 6 (via the libvirt adapter). If I create an LXC container, I'm unable to see any network interfaces when using the native system tools: # ifconfig -a ...
5
votes
2answers
5k views

Running linux containers (lxc) on ubuntu to isolate web server processes (ruby/thin)

I am trying to setup a server where I would be running multiple apps. Mostly internal but could also be open source projects like Redmine. They would all be Rails/Ruby apps/test scripts running on ...
0
votes
1answer
368 views

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 ...
0
votes
1answer
980 views

lxc and networking setup

I'm hosting several VPS using linux-vserver. Now I want to switch to LXC. So far it looks promising, but I wonder how to setup networking. Especially which interface type to use and how to configure ...
0
votes
2answers
1k views

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, ...
5
votes
3answers
2k views

Explain in Plain English what is LXC and for what it is useful [closed]

What is LXC? For what it is useful? What are the differences between LXC and common virtualization?
1
vote
1answer
147 views

Process niceness value

I was just looking for some clarification about the niceness value of a process, or perhaps some advice if I'm going about this all wrong. Say I have a couple dozen web server processes on a single ...
1
vote
2answers
1k views

veth, macvlan or maybe sth else?

I don't understand the modes of lxc network. I'd like to have 4 guests: apache1, apache2, database and frontdoor frontdoor is a squid which decides which apache should be used It works perfectly ...