Questions tagged [lxc]

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 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 newer kernel versions. 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

420 questions
0
votes
1 answer

Can I make a single computer out of 3 with lxd cluster?

I'm setting up a LXD cluster on 3 machines. Though I'm concerned if a single container (a virtual machine) use all the resources of 3 machine. I mean Does a single container use all 3 machine's CPU? Does it fully use 3 machine's RAM? As for…
Ariunbayar
  • 13
  • 3
0
votes
0 answers

Proxmox LXC networking

We have 5 physical machines hosted at OVH. Each of them have Proxmox 5.2-10 installed Machines are inside of OVH vRack. we have separate LXC for database, separate LXC with loadbalancer and several separate instances with our web application stack…
ondrs
  • 101
0
votes
1 answer

What is standard way to give LXC public IP address?

I am researching LXC. The thing I was unable to find is how to give a container public IP address? Suppose we have a server with 5 IP addresses. Then we do 4 containers there and give somehow one address for each of them. I saw there is "standard"…
Nick
  • 826
  • 2
  • 15
  • 42
0
votes
0 answers

Slow running Cron tasks getting stuck in container

It is a Debian 9 container running on a Debian 9 host. Every now and then the container would grind to a halt. It is usually a slow task like apticron or munin. My last test was an idle container on an idle server, and the same thin happened again.…
Dax
  • 294
  • 2
  • 11
0
votes
1 answer

access webpage via url in an lxc container

I have installed a webserver in an lxc container. This webserver can be accessed from the outside world via its URL thanks to the following iptable rule: sudo iptables -t nat -A PREROUTING -i eno1 -p tcp --dport 80 -j DNAT --to 10.42.XXX.XXX:80 My…
oli
  • 115
  • 7
0
votes
1 answer

Openvas 9 - Continual logouts due to "Server reached connection limit (closing inbound connection)"

I keep having issues with getting logged out of Openvas/Greenbone Security Assistant, and after monitoring the logs while I was trying to run a scan, I finally noticed these lines that corresponded with when I had to reauthenticate: gsad…
4oo4
  • 303
  • 3
  • 10
0
votes
2 answers

How to create iptables rule to allow IP Address with any sub directory

I currently have a DigitalOcean Ubuntu 16.04x64 server with Linux Containers to house multiple sites. One of the containers has HAProxy installed and routes incoming traffic to their appropriate containers. Each container has a unique IP Address…
0
votes
0 answers

Is it possible to get dynamic lease of IP address from LXD container on Google Compute Engine?

Followed “Ubiquiti Networks UniFi Controller in an Ubuntu LXD Machine Container“ when setting up a new Ubuntu VM on Google Compute Engine. But the container tries to lease an IP address, but nothing responds. Is there some way to let the container…
rjt
  • 578
  • 6
  • 26
0
votes
1 answer

ssh chroot to lxc container

I have a PC with sshd service (192.168.1.1). The PC contains two users user1 and user2. I installed lxc service and configured a container. How can I configure ssh server on 192.168.1.1 that connecting user2 will be chrooted to lxc container.
0
votes
1 answer

mount LVM volume already mounted

Is it possible to mount an already mounted LVM volume somewhere else ? I have LXC using an LVM volume as storage, and I would mount the volume on the host for easier backup management. When I try to mount the volume, here is what I got : # mount…
Shengis
  • 23
  • 1
  • 6
0
votes
1 answer

CentOS7 LXC Container shell access on Ubuntu 17.04 Host

I know this is probably google skills deficiency on my behalf but for the love of god I cant shell into a CentOS 7 container on an Ubuntu 17.04 host. user@ubuntu1704:~$ lxc shell centos7 user@ubuntu1704:~$ absolutely nothing happens ... no error…
a.atlam
  • 261
  • 2
  • 6
0
votes
1 answer

LXC Container, no LAN - 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
  • 103
  • 1
  • 4
0
votes
0 answers

LXC can not take IP from DHCP

I am trying to assign an IP to lxc so that it become visible to other machine on network. host-machine:~$ /etc/network/interfaces auto lo iface lo inet loopback auto enp4s0 iface enp4s0 inet manual auto br0 iface br0 inet dhcp …
0
votes
1 answer

bridge connection between lxc container and virtual host

I'm relatively new to linux and network communication, and I'm been struggling with the following problem: I have a lxc container in a virtual machine host, and the host is connected to usrp devices via interface ens5. I'm trying to establish bridge…
Stephen
  • 1
  • 2
0
votes
1 answer

Is it possible to migrate a LXC Container from Ubuntu to libvirt-lxc (SLES)

i'm currently investigating a Scenario, where a LXC Container, which was created on Ubuntu, is supposed to be migrated to a Container on SLES. Is there a way to do that? Are there any Tools one could recommend?
user3383458
  • 113
  • 5