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

Controlling virsh filters right way

I'm running centos 7, lxc for containers, virsh for setting up a bridge. Upon creation, virsh set up some firewall rules for virbr # iptables-save | grep virbr -A POSTROUTING -o virbr0 -p udp -m udp --dport 68 -j CHECKSUM --checksum-fill -A INPUT -i…
0
votes
1 answer

docker can't access internet from within LXC Container

I have launched a Ubuntu 20.04 LXC container on RedHat 8.6 using the following command lxc launch ubuntu:20.04 --storage default -c security.privileged=true -c boot.autostart=true --network lxdbr0 I installed docker in the container and configured…
PrestonDocks
  • 215
  • 3
  • 11
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
  • 127
  • 6
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
  • 4
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

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

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
  • 285
  • 3
  • 16
0
votes
1 answer

Can I restore a Vzdump tar archive to an LXD/LXC container

I have a number of "tar" files created from an old proxmox 6 server, using the vzdump tool. The person that originally created them has left the company, and the company has changed it's container server from "Proxmox VE" to a standard Linux Ubuntu…
shawty
  • 293
  • 4
  • 15
0
votes
0 answers

deciding on docker architecture setup and performance

I will need to virtualize a jenkins software architecture and I don't know which architcture will be more efficient. I need : a jenkins server an opensuse server for c/c++ 64 bits compilation an msys2 system for win32 compilation and packaging…
sancelot
  • 101
  • 1
0
votes
1 answer

How to mount glusterfs at boot in centOS 7 lxc container?

Need to get a glusterfs volume mounted in a centos 7 lxc container. found this and can do it manually ok... But it seems that adding it in the fstab doesnt work because it gets executed before gluster client is functional? fstab: host:/gv0/Data…
user64
  • 31
  • 4
0
votes
1 answer

Can't get LCX bridge to work

I can't get a network bridge under (a up to date) arch-linux as a host to work: I am aware that the lxc default is read on creation time of the container (I created a new container after changing the network settings). (base) [r0b3@toshi ~]$ sudo…
Quonux
  • 111
  • 1
  • 4
0
votes
0 answers

How can I create the .conf file for a LXC container restored from a backup that comes from Proxmox?

I can restore the backup with the tar command but I lack the .conf file from the original Proxmox server it comes from. I restore the backup on a Debian 10 server. Can I create the .conf file on the fly without copying it from the original Proxmox…
ballatom
  • 23
  • 6
0
votes
1 answer

LXD Container IPv4 Interface Management

Ubuntu 18.04.4 lxd 3.0.3 lxc 3.0.3 I have had several containers running without issue for a long time. Today I was making changes to my network and one of the containers picked up a DHCP address. user@localhost:/tmp$ sudo lxc list…
1 2 3
27
28