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

Layered file systems and volume mounts

I'm having trouble understanding how using volumes for storage will affect my disk space usage. I have image A which is a base image and comes with a lot of utilities my apps need. I have apps B and C which are images built from base image A. They…
Jonathan
  • 10,792
  • 5
  • 65
  • 85
0
votes
2 answers

Freeswitch server getting INVITE request in ngrep but nothing in fs_cli

I am trying to route the call from opensips server to freeswitch server. My freeswitch server is actually a container which i have created using 'lxc/lxd' and it is running CentOS. When I route the call from opensips server to freeswitch server…
glarkou
  • 7,023
  • 12
  • 68
  • 118
0
votes
3 answers

Want to use the `Vlan` feature of `OpenVSwitch` with `LXD/LXC`

I want to use the Vlan feature of OpenVSwitch. This is what I have done so far; hussain@hussain:~$ lxc list +----------+---------+------+------+------------+-----------+ | NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS…
Nagri
  • 3,008
  • 5
  • 34
  • 63
0
votes
1 answer

How to give docker exclusive access to cpus?

Is there any way I can give a docker instance exclusive access to some of the cpus?
smz
  • 391
  • 1
  • 3
  • 11
0
votes
1 answer

Backup and restore LXC container with LAMP stack - MySQL cannot start in container

I've followed these simple instructions in order to backup and restore an LXC container: https://stackoverflow.com/a/34194341 The backup and restore procedure go well. I've made triple sure I use the --numeric-owner flag when tar and untar'ing, and…
Arni J
  • 385
  • 1
  • 4
  • 9
0
votes
1 answer

How to forward ports to lxc containers running inside virtualbox vm?

I've got ubuntu/xenial64 VM with port forwarding set up (config.vm.network "forwarded_port", guest: 80, host: 8080). Inside the VM I've created an lxc container (ubuntu/trusty), and added iptables rule: iptables -t nat -A PREROUTING -i lxcbr0 -p tcp…
x-yuri
  • 16,722
  • 15
  • 114
  • 161
0
votes
1 answer

Running qtcreator 4.0.1 on a lxc-container

Using this link I created a container and after getting some packages, I want to start a qtcreator 4.0.1 on it. I use a ssh connection to connect to the container. After launching qtcreator I get an error such as this: This application failed to…
motam
  • 677
  • 1
  • 6
  • 24
0
votes
1 answer

How to configure lxc 2.0 configueration file to use multiple overlayfs lowerlayer?

I am using lxc 2.0 and using salt to invoke creation of container. I have multiple layers which I want to mount as overlayfs. I tried with lxc 1.0 using mount bind and it worked. mount -t overlay overlay -o…
Kapil
  • 193
  • 2
  • 14
0
votes
2 answers

How does horizontal scaling decrease load of a system?

In theory, say I have a 3 node LXD cluster running under a load balancer. Traffic begins ramping up and I need to scale horizontally by adding another node into the cluster. At this point, I have a 4-node cluster under the LB. In what ways in this…
Ryan Shocker
  • 693
  • 1
  • 7
  • 22
0
votes
1 answer

do linux containers go to sleep?

I keep receiving randomly "refused connection" while trying to ssh into linux containers. In order to try to find if it was a rogue computer that was impersonating the IP of the container, I ran an arping on the interface of the machine what was…
Kaz
  • 1
  • 2
0
votes
0 answers

How does sbt determine that it needs to update

I've tried to run application inside firejail without network. When I run sbt in host system, all goes ok, sbt finds all libraries. Then I try to run sbt inside restricted environment with read-write access to ~/.sbt, ~/.ivy2, ~/.m2 and project…
ayvango
  • 5,867
  • 3
  • 34
  • 73
0
votes
0 answers

How microservices communicate each other when implemented using Docker?

As preferred communication between microservices is RESTish protocol which is same as URL based communication on top of HTTP . As docker containers also runs in a network based environment, so is it like each container has to know how to process…
Tinkaal Gogoi
  • 4,344
  • 4
  • 27
  • 36
0
votes
1 answer

Ping through an LXC container

I'm dealing with LXC, iptables and route, and at this point I'm not even sure what I'm doing anymore. For the sake of simplicity, every policy in iptables is set to ACCEPT and forwarding is set to 1 in sysctl.conf in each host or container. My goal…
MathT
  • 1
  • 1
0
votes
1 answer

how to keep jobs with nohup in lxd

I made python script that needs to run background. This script is in lxd image which is running (checked by 'lxc list') got into image and tried to keep it run in background. local> lxc exec image-name -- bash image-root> nohup python test.py…
J.Done
  • 2,783
  • 9
  • 31
  • 58
0
votes
2 answers

What is image "containersol/minimesos" in minimesos?

I was able to setup the minimesos cluster on my laptop and also could deploy a small command-line utility. Now the questions; What is the image "containersol/minimesos" used for? It is pulled but I don't see it running, when I do "docker ps".…
soupybionics
  • 4,200
  • 6
  • 31
  • 43