Questions tagged [lxc]

LXC is an operating system-level virtualization method for running multiple isolated Linux systems (containers) on a single control host. It is sometimes referred to as “chroot on steroids”.

LXC provides operating system-level virtualization not via a full blown virtual machine, but rather provides a virtual environment that has its own process and network space. LXC relies on the Linux kernel cgroups functionality that became available in version 2.6.29 and is now available in all further kernel distibutions.

Cgroups was developed as part of LXC. It also relies on other kinds of namespace-isolation functionality, which were developed and integrated into the mainline Linux kernel.

LXC is similar to other OS-level virtualization technologies on Linux such as OpenVZ and Linux-VServer, as well as those on other operating systems such as FreeBSD jails. LXC Containers can define various cpu limits, memory limits etc. (In short all parameters that can be set via CGROUPS) to prevent any one container from interfering with all other containers running on the same LXC host.

LXC uses the linux bridge-utils commands to create local VLANs, and attach containers and physical interfaces to them. With containers the physical overhead (ram, swap space, one kernel per VM, plus hypervisor) that is present in virtualization methods is reduced. With containers, one kernel and one virtual memory space is shared between all the containers running on that host.

For a comparison of other Operating System virtualization techniques, see this link

591 questions
0
votes
1 answer

Multiple LXD containers on single macvlan interface

I'm a little confused as to how the following scenario works. It's a very simple setup, so I hope the explanation is simple. I have a host with a single physical NIC. I create a single macvlan sub-interface in bridge mode off this physical NIC. Then…
Andi Jay
  • 5,882
  • 13
  • 51
  • 61
0
votes
1 answer

How to enable Linux namespace in system based on kernel 2.6.38 and initd?

I want to run LXC 2.0 on linux kernel 2.6.38 and init.d, whether both kernel version and initd are mandatory. I have recompiled the Kernel with namespace support as follow. # Kernel…
teotanin
  • 1
  • 2
0
votes
1 answer

LXC Container, no Internet access

I'm setting up an LXC container on an openSuSE 42.1 host. The host has full Internet access but the container hasn't. The container can ping the host, but nothing else on the LAN or Internet. I think the issue could be how the bridge is configured…
Tom
  • 1,436
  • 24
  • 50
0
votes
0 answers

vagrant-lxc with redir on VPS

I installed vagrant-lxc on my VPS ( VmWare virtualization ). Container created correctly with provisioned application - Drupal. Now I'd like to open site from the outside: Vagrant container have private IP address: 10.0.3.1 - interface "lxcbr0" (…
dawideq03
  • 1
  • 1
0
votes
0 answers

Docker container exits immediately after DOCKER RUN command

Please do not ignore this, I have tried to go through the other solutions proposed on the forum and none solved my problem. I am kick-starting with Docker and the DevOps stuff. Started with the basic get-started tutorial on their page. I am unable…
verane
  • 61
  • 4
0
votes
1 answer

Ubuntu lxc container giving gtk.GtkWarning: could not open display error

I created a new container using lxc on my ubuntu platform, created a sudo user, installed Uhd and finally gnuradio. However, when I try to run gnuradio I get the following error: ~$ sudo gnuradio-companion Traceback (most recent call last): File…
BDunn
  • 1
  • 1
0
votes
2 answers

neo4j 3.2.2-1 constant restart just after Failed to find a usable hardware address

I am trying to get neo4j to run on a minimal install of Centos 7.2, neo4j installed through yum. However it seems to start booting up, but fails, shuts down, then restarts in a continuous loop: 2017-07-18 03:06:34.731+0000 INFO…
Jake Callery
  • 63
  • 1
  • 5
0
votes
1 answer

Jenkins and Vagrant there is very strange situation

I have a last version Jenkis (run under the Tomcat) and the Vagrant and LXC container. Tomcat running under jenkins user. I have next Vagrantfile Vagrant.configure(2) do |config| config.vm.box = "arjenvrielink/xenial64-lxc" config.vm.provider…
Stan Dudikoff
  • 94
  • 1
  • 8
0
votes
1 answer

route all traffic over gre tunnel

I have an openvswitch sw1 with subnet 10.207.39.0/24 that has lxc containers attached and I have the same on another physical server and I have successfully connected these using a GRE tunnel. However, the lxc containers have additional ports on…
gstanden
  • 16
  • 2
0
votes
1 answer

Need to update my Python version to 2.7 in my lxc container

I couldn't remove 2.6 Python which is already installed Because if I remove then the system is breaking down. If I install 2.7 and tried to see python version in the base (rpm -q --provides python | grep abi) python(abi) = 2.6 python-abi = 2.6 I…
0
votes
1 answer

startxfce4 in lxc container got error

I want to launch GUI in my lxc container. The container I used ubuntu 14.04 with xfce4. ubuntu@test1:/usr/lib/x86_64-linux-gnu/dri$ startxfce4 [1459480.127] X.Org X Server 1.15.1 Release Date: 2014-04-13 [1459480.127] X Protocol Version 11,…
Lew1s
  • 1
0
votes
1 answer

Resources required for running application on server VS running application in LXC container?

LXC/LXD offers a virtual machines like openVZ but removes the overhead of having custom kernel installation on GUEST systems. What will be overhead on the GUEST operating system for running application server like JETTY/TOMCAT in a LXC container…
forum.test17
  • 2,119
  • 6
  • 30
  • 62
0
votes
0 answers

Resource use for MySQL & nginx (LXC container)

I have been hitting my head against a wall for a couple of days now. One of our sites has thousands of concurrent users but I have been unable to get the nginx & mysql to use available memory and CPU resources. So far mysql only seems to use 1 of…
SamTzu
  • 167
  • 1
  • 7
0
votes
0 answers

Timeout while connecting to mongo database with mongo php ext

Timeout while connecting to MongoDB database with mongo php ext under Ubuntu 12.04 and php 5.6 I'm using latest Apache 2.4 Ubuntu 12.04 php 5.6 with mongo ext Version 1.6.14 MongoDB v3.4 running in an lxc container And the problem is when I…
Marek G.
  • 99
  • 9
0
votes
1 answer

Need to configure second NIC to bridge LXC

I installed Ubuntu 16.04 Server on a machine with 4 network cards. I have interfaces eth0 and eth1 connected to the same switch. The interface eth0 is meant for the remote SSH connection to manage the server. I want to use eth1 to be bridged by br0.…
iJar
  • 147
  • 2
  • 15