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

Move an LXC container to a dm-crypt/LUKS filesystem

I need to move a container to a different filesystem, specifically a subdir of an already mounted LUKS/dm-crypt home dir. I tried moving it there and then bind mounting or symlinking it to /var/lib/lxc/foo but when I do lxc-start -n foo just exits…
Ross Patterson
  • 149
  • 2
  • 8
0
votes
2 answers

Networking (dhcpcd) under LXC

I would like to boot an Arch Linux instance using LXC. Just about everything works, but I'm encountering the following error when trying to configure an interface using dhcpcd: # dhcpcd eth0 dhcpcd[4213]: version 5.6.4 starting dhcpcd[4213]: eth0:…
larsks
  • 43,623
  • 14
  • 121
  • 180
0
votes
3 answers

LXC container network/routing issues

I have been experimenting with LXC virtualisation in order to run virtual machines on a dedicated server, but am having trouble setting up the networking properly. I am using veth bridged networking, as instructed here:…
Ellis Grouse
0
votes
2 answers

howto remove udev from centos(lxc-guest) without dependencies

i downloaded a openvz template for my lxc server to create a new centos 6.3 guest. Now the guest is not starting because udev is hanging in the boot process. Last time i didn't had this problem but now i have to disable or remove udev from the…
user61664
  • 103
  • 3
0
votes
1 answer

Debian bridged network between virtual machines

I installed two linux containers (lxc) in a debian squeeze server so the environment is as follows: Physical server: 192.168.2.200 Linux container 1: 192.168.2.201 Linux container 2: 192.168.2.202 Bridge between physical server and containers:…
Roland
  • 1
  • 1
0
votes
3 answers

Find ip address of VM or Container using a bridge

I have a virtual machine/LXC container that is using a bridge (on br0) to access the network. On the system that is hosting the virtual machine and the bridge, I would like to be able to tell what IP address was assigned (dhcp). I don't want to go…
0
votes
1 answer

How can I set up my own DHCP subnet on Rackspace?

Update: As per grawity and MonkeeSage's comments, it seems my question was pointed in the wrong direction. I've updated the title and question below... I'm currently evaluating LXC as an option for my company to safely and easily deploy several…
bloudermilk
  • 101
  • 3
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
  • 818
  • 2
  • 11
  • 29
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
  • 619
  • 2
  • 9
  • 15
0
votes
0 answers

Docker service doesn't start on unprivileged lxc container on boot

I have proxmox with an Ubuntu lxc container where docker is installed and containers running. When I reboot my node, although the lxc container starts on boot, docker services start only when I login as root in the console. Is there a way lxc…
0
votes
0 answers

Error: Storage pool "default" unavailable on this server (losetup command fail)

I can't start my lxc/lxd containers anymore. I get the error : Error: Storage pool "default" unavailable on this server. I am on debian sid. The root issue seems to be that the command losetup --find --nooverlap --direct-io=on --show…
m-ar-c
  • 1
  • 1
0
votes
0 answers

Understanding ulimits / process limits, or maybe something else. New processes stop opening (fork errors)

I'm a little bit lost and need some help understand what exactly is happening with my server. So this is a Proxmox (Debian) server with several LXC containers running in it, and from time to time everything just starts failing because it seems that…
ItsJustMe
  • 1,001
  • 1
  • 8
  • 10
0
votes
0 answers

No Connection with Pivpn wireguard lxc Container on a proxmox host

Describe the issue I can't connect to anything. Not the internet nor the local network Expected behavior I want if my device is connected to the wireguard vpn to surf the web and to access every device which is connected to the wireguard vpn. Please…
mxwmnn
  • 1
0
votes
1 answer

Do I need to install docker engine on proxmox's LXC to run a portainer agent?

Currently I am running Proxmox and have installed the docker-engine and Portainer on the main Proxmox node. I would like to add more environments, including an LXC which I downloaded from a template that came from Proxmox. My question is, can I…
0
votes
0 answers

LXC containers port is not forwarded to external network

I'm trying to set up a Pi Hole to run inside a LXC container on Ubuntu 22.04. So far I successfully initialized LXC, created the container and installed Pi Hole. The host IP is 192.168.153.2. The container is running on a bridge network with the IP…
foo
  • 1
  • 1