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

1
vote
0answers
391 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
159 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
138 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
1k 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
7k 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 ...
3
votes
2answers
4k 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
90 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). ...
4
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
3k 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
671 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
315 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
95 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
210 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
891 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
188 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
530 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 ...
17
votes
3answers
10k 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
296 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
392 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
930 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
374 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
422 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
793 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
441 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
715 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
769 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
573 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
292 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
661 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
208 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 ...
9
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
570 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
4k 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
355 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
918 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
1k 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
136 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 ...
1
vote
2answers
465 views

Linux Containers: share box ip address?

I would like to run services like mysqld, apache and vsftpd in separated environment: w/o access to other processes, w/o access to devices, w/o access to binaries and don't execute uploaded files. As ...
0
votes
3answers
234 views

What creates /dev/stderr in FC14?

I'm wondering what creates /dev/stderr on FC14. rpm -qf doesn't show any package ownership. I've dug through the init scripts and can't find it anywhere. To provide some context, I'm creating a ...
6
votes
2answers
3k views

use LXC under heavier virtualization (Xen, KVM,Hyper-V,VMVare)

Is it possible to use LXC under heavier virtualization (Xen DomU,KVM,Hyper-V,VMVare) ? I would like to use it as security (isolation) tool, the ability to limit resource consumption is not priority ...
1
vote
2answers
1k views

How to configure `lxc` like `openvz`

I was going to fire up a OpenVZ node to test out some software, but it looks like OpenVZ is no longer supported in Ubuntu (deprecated in favor of lxc. It looks like can do more than simply ...
7
votes
3answers
3k views

Why LXC when there is linux-vserver?

I am no LXC expert, but as far as I know it is really similar to linux-vserver. If that is correct, I wonder why there is another player in the already crowded virtualization camp? What does LXC ...