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
1
vote
1 answer

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 machine, and I'm worried about any given one of…
jvnk
  • 123
  • 4
1
vote
2 answers

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 i understand linux containers are able to provide…
Daniel
  • 304
  • 1
  • 4
  • 17
1
vote
2 answers

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 virtualize an entire system, and I'm having trouble…
cam
  • 123
  • 6
1
vote
0 answers

Debian 10 to 11 upgrade LXC unpriv fails to get IP assigned to veth

Just upgraded from Debian 10 to 11 and my unpriviledged container is no longer assigned an IP through the config file. /var/lib/lxc/DNS/config # Template used to create this container: /usr/share/lxc/templates/lxc-download # Parameters passed to the…
user609425
1
vote
1 answer

MariaDB regularly freezes every 1-2 days

I'm using MariaDB on Ubuntu 22.04 running on a Proxmox container (LXC). I have two instances for two different services, but since upgrading from 21.10 to 22.04 both instances completely freeze once every 1-2 days. Trying to restart MariaDB doesn't…
1
vote
0 answers

Any way to do virtual 802.1x inside Linux?

I'm trying to test out 802.1x in a virtual environment but I haven't been able to find any good resources/guides on how to do that. The scenario is something like this: I have a Linux host machine (OS: ubuntu jammy) with a couple of lxc containers…
A. Trevelyan
  • 478
  • 1
  • 10
1
vote
0 answers

Need help regarding NFS shares permissions

I recently switched to using Proxmox as my OS of choice from OMV as the main OS and running a bunch of docker containers on the same host. I installed OMV (OpenMediaVault) inside a VM. I passed through my already existing 4TB drive and everything is…
apoorv569
  • 11
  • 2
1
vote
0 answers

How to bridge only IPv6 and drop all IPv4 traffic on a Linux bridge with NFT?

Currently, we have a network where apps on host and VMs are connected together and all VMs are behind the NAT as below ||=> Host ISP Router => enp1s0 |--> lxdbr0 => VM 1 ||====> VM 2 …
1
vote
3 answers

How do I download and install a regular DPKG package in a cloud-init script?

I'm spinning up lightweight containers on a Linux Host using LXD/LXC. The sole purpose of these containers is to host "Dotnet & Dotnet core apps" For a while I've been using Ansible, but recently I found that I could actually embed an init script…
shawty
  • 293
  • 4
  • 15
1
vote
1 answer

LXD on ZFS on LVM on H/W RAID 10

I have a Dell R540 with PERC H730P running RAID 10 over 12 DISK to the tune of ~22TB. I want to run various applications/services in LXD containers. I understand that ZFS is preferred for LXC storage pools, and that ZFS prefers direct access to raw…
simonw
  • 35
  • 6
1
vote
1 answer

LXC Container on same network as host with internet access

First of all let me tell what network configuration I am trying to achieve: LXC container should be exposed to my local network LXC container should have internet access Here's what I have been able to achieve so far: I have referred to…
1
vote
1 answer

What is an appropriate backup strategy for LXD with BTRFS storage backends

I'm about to re-configure my home server from scratch and am wondering what would be the best strategy to backup my LXD containers. Meanwhile I am running Ubuntu 20.04 LTS and have some services configured to run as LXD/LXC containers. For…
sandman85
  • 11
  • 1
  • 3
1
vote
2 answers

Debian LXC command not found

I am trying to do things with LXC and I have been able to manage with the lxc-* commands but now I have been forced to copy a file and I'm stuck because I can't get to copy the file, I have read that using lxc file I can do it. But at all times the…
ICIM
  • 150
  • 1
  • 9
1
vote
3 answers

How to fix ContainerCreating errors while deploying metallb?

For testing purpose, I have installed ubuntu 21 on vmware esxi server. On that machine, spinned up kubernetes using lxc containers following this repository LXC is spinned up and running. adminuser@testing:~/Desktop$ lxc…
uday
  • 352
  • 10
  • 30
1
vote
0 answers

Why does this systemd service not run at the right time (loading encryption keys from a network drive which are required for lxc containers)?

In Debian with systemd, I use zfs and lxc. My zfs datasets are encrypted and their keys can be loaded from a network host via my /etc/zfs/zfs-load-key.sh script. My LXC containers are started by lxc.service. Loading the keys requires the network up…
divB
  • 568
  • 1
  • 7
  • 23