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

414 questions
0
votes
1 answer

lxc and networking setup

I'm hosting several VPS using linux-vserver. Now I want to switch to LXC. So far it looks promising, but I wonder how to setup networking. Especially which interface type to use and how to configure it. This is my setup/ what I need: The host has a…
gucki
  • 788
  • 2
  • 10
  • 28
0
votes
3 answers

What creates /dev/stderr in FC14?

I'm wondering what creates /dev/stderr on FC14. rpm -qf doesn't show any package ownership. I've dug through the init scripts and can't find it anywhere. To provide some context, I'm creating a chroot'd jail to start with lxc.
Noah Campbell
  • 599
  • 2
  • 8
  • 15
0
votes
0 answers

LXD Routed Nic not getting internet access

I have an address of 10.1.1.24 which is my IP to the internet. I have made a profile as follows: config: user.network-config: | version: 2 ethernets: eth0: addresses: - 10.1.1.24/24 nameservers: …
Definity
  • 115
  • 3
0
votes
2 answers

A few users and subuid/subgid mapping

I cannot get my head around the userns-idmap mapping ie with sub{uid,gid} mapping stuff. Here's what I have: # lxc launch images:ubuntu/22.04 c1 # lxc config device add c1 home disk source=/home/user3/ path=/home/user3 # lxc config device add c1…
dogman
  • 11
  • 3
0
votes
0 answers

How can I (re)create a LXC image with ansible?

I have a server with custom made LXC images. My users can create containers from thoses images. Until now, when I needed to change some configuration to the image, I went into a tedious workflow of making a container from the current image, applying…
SteeveDroz
  • 101
  • 3
0
votes
0 answers

Setting up Kubernetes on LXC: Kubeadm init times out, cannot connect to API server

Situation: I am trying to create a Kubernetes cluster running on Linux containers, however Kubeadm init fails by timing out (four minutes pass). I have done the same on Ubuntu VMs before with no issue, and that cluster is running happily. The…
Paradoc
  • 101
  • 2
0
votes
0 answers

Network separation/isolation - is this setup sufficient?

I want to separate two networks (A+B) but still be able to use the internet (terminal based access is sufficient) of network A from a device (PC running arch Linux, let's call it "host pc") inside network B. I want to make sure, that no…
0
votes
0 answers

How to bridge only IPv6 and drop all IPv4 traffic on a Linux bridge wiith 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 …
0
votes
0 answers

when I use the LXC IP on the browser it gives "This site can’t be reached"

Basically I want to establish website with the LXC. so I installed LXD and created LXC called app1, then installed apache2. All are running, but when I use the LXC IP on the browser it gives "This site can’t be reached", I disabled the ufw even…
Astro
  • 101
  • 3
0
votes
1 answer

Proxmox container moved to the wrong machine and now it is trapped there

I have a HA proxmox cluster with three nodes. I have replication between two nodes. Each of those two nodes have a ZFS pool that is used for replication. I have replication rules setup between those two servers with ZFS for HA. I have an older third…
Danielo515
  • 103
  • 3
0
votes
0 answers

LXD export backup failed. Snapshot error

I tried to make lxc backup and get's error that failes on some snapshot for 2 years ago. run test command lxc export backup /tank/local/lxd/backups-temp/backup_test.tar.gz -v Error message: Error: Create backup: Backup create: Snapshot…
Pulsar
  • 19
  • 4
0
votes
0 answers

Routing from LXC to WAN

I have a VPS with one public IP, 64.x.x.x which is assigned to enp1s0. My goal is to have LXC container/s running on this VPS which have connectivity with the host and with WAN. That means traffic is routed from Container > lxcbr0 > enp1s0 > WAN I…
Tobe
  • 151
  • 2
  • 6
0
votes
1 answer

Why do I routes to containers locally and how can I do better?

I'm setting up a new server at a new site. The server is placed behind a router / firewall. The server shall run several LXC containers for various services. The LXC containers are connected to a bridge brlxc. The server furthermore connects to…
Lars Hanke
  • 281
  • 2
  • 15
0
votes
0 answers

LXD vs libvirt LXC driver

Are LXD and libvirt with LXC driver doing the exact same thing (just provision LXC containers)? If so, is there any advantage in using one over the other?
0
votes
0 answers

LXD and Multipass - will LXD 5.0 LTS support or use multipass

I am thinking about using multiple microk8s nodes on MacOs M1. If I am using LXD I can have multiple VMs running microk8s in a virtuel cluster simulating one-n k8s nodes. LXD looks very good for managing vm and system containers. I found that LXD…
Chris G.
  • 157
  • 5