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
3 answers

apache - how to redirect to another server

I have the following problem: I have my HomeServer on IP 192.168.0.1, it's an exposed host, getting every access from outside. On this Server I have running some lxc containerts, two of them have apache2, etc on it. Now I want to access every server…
Fachinformatiker
  • 160
  • 1
  • 17
0
votes
1 answer

Best way to simulate old, slow processor on modern hardware?

I really like the idea of running, optimizing my software on old hardware, because you can viscerally feel when things are slower (or faster!). The most obvious way to do this is to buy an old system and literally use it for development, but that…
bukzor
  • 37,539
  • 11
  • 77
  • 111
0
votes
2 answers

Proxmoxer : how to create LXC container specifying disk size

I'm running version 5.2 of proxmox, and 1.0.2 of proxmoxer python library. Latest as of today. So far I didn't manage to create a LXC container specifying a disk size and will always default to 4G. I didn't find this option in Proxmox…
wsteven
  • 67
  • 1
  • 8
0
votes
1 answer

LXC - Can't access package manager from linux container

I have LXD installed on a fedora 27 machine. I configured it a while ago, and it has worked fine long enough that I forgot how I set everything up. I just tried to create a new container and it creates successfully, but I can't get it to access the…
Yurelle
  • 348
  • 2
  • 13
0
votes
1 answer

LXD Container in ERROR State

I have a Ubuntu 16.04 LTS system where i created 3 LXD containers. They where working fine. The system was reseted without stopping the containers by accident. Now they are in a ERROR state and I cannot start them. When i try to start any of them i…
nacho
  • 5,280
  • 2
  • 25
  • 34
0
votes
1 answer

Assigning a local IP to docker containers

Is there a way to have docker automatically give it’s containers a local IP address that you can reach with it’s ports exposed? For example, LXC has ways to do this. lxc-create -t ubuntu -n myname lxc-start -n myname -d Which will then assign a…
Chaos
  • 471
  • 4
  • 20
0
votes
1 answer

Wordpress site in conteiner does't redirect to subdirectory

For one of my client that has his website in wordpress I need to add some extra features to his custom them. Because I’m working on Ubuntu I decided to make a copy of this website and install it on my container to have backup on which I can work and…
cyprian
  • 497
  • 1
  • 6
  • 21
0
votes
0 answers

How to implement local ICMPv6 neighbor discovery?

I'm implementing my own IPv6 networking stack and am having problems getting ICMPv6 neighbor discovery to work. The stack works by capturing packets of an existing interface, picking out the ones addressed to it and sending out new packets from the…
Adam Lindberg
  • 16,447
  • 6
  • 65
  • 85
0
votes
0 answers

Common utility for different container

I am looking for a common utility in python that can be used to operate for different container types like jails, docker, lxc etc based on OS and user needs For example : when user selects docker in config and creates a container using this utility,…
Darshan
  • 94
  • 1
  • 8
0
votes
0 answers

Move an LXC Container from one host to another through an API

I'm new to LXC containers and i'm aware of how to move a container from one host to another using the cli move code, but how would it be possible to do this using the pylxd api or any other apis, i need to be able to do this for my upcoming project,…
Jonathan Kumar
  • 553
  • 1
  • 6
  • 20
0
votes
0 answers

LXC Container getting a SSH-Connection from Container to Container with root

Currently, I'm investigating an issue with my container. I've got a Host with 2 Container which should be linked via Corosync. It's essential that these need to be connected with SSH for Corosync, but if I add normal users I can get the public key…
Breedi
  • 75
  • 2
0
votes
0 answers

LXC running php application

I have this code in file called index.html in directory /var/www/html/index.html. But when I try to see what it prints on the browser it doesn't show anything at all, or sometimes it…
0
votes
1 answer

Exposing kubernetes service locally (without minikube)

I'm using lxc/lxd to play with the kubenetes cluster. Is there a way to expose a deployed service locally without using minikube, so that I could access it from the local machine? I can access it from any of the nodes in the cluster but not from…
rweye
  • 83
  • 1
  • 6
0
votes
0 answers

Run a sub-process with minimal capabilities

I need to run various text-processing utilities (like latex) on untrusted files, as part of some build script. How can I do that safely, without needing root access? I'm thinking of writing a Python script which "drops privileges/capabilities"…
Stefan
  • 27,908
  • 4
  • 53
  • 82
0
votes
1 answer

New google cloud instance with no ping no ssh after import from LCX container

I would like to migrate from my ProxMox server to Google Cloud Engine service. I tried to create an image from one LCX container then import on Google cloud. I did these steps: create a backup from LCX container (with entire filesystem) from the…