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
2
votes
3 answers

How to resize lxc/lxd images, if i am using LVM backend?

I'm using LXD few years and I'm glad to use this platform in my testing environment. But few days ago, I couldn't install Microsoft SQL server 2017. The reason was, that I used default ZFS backend. Ok, I checked, that if I need ext4. I have to use…
Piduna
  • 541
  • 4
  • 12
  • 25
2
votes
1 answer

how to fix filesystem of a LXC container

This container doen't start anymore with these errors messages : # lxc-start -n deb7 -F INIT: version 2.88 booting Using makefile-style concurrent boot in runlevel S. Cleaning up temporary files... /tmp. Mount point '/proc/sysrq-trigger' does not…
Matthieu
  • 185
  • 1
  • 1
  • 6
2
votes
0 answers

LXD external static ip

I'm using LXD for managing LXC containers. I used the "standard" bridged NAT setup up to now. But know I got an additional static ip which is external available. I want to attach it to my container but cant get it working within the LXD network…
Aaryaman
  • 43
  • 3
2
votes
1 answer

LXC container not connecting to bridge on startup

I'm struggling to get an lxc container to startup with proper networking. /etc/network/interfaces: auto lxcbr0 iface lxcbr0 inet static address 192.168.5.69 netmask 255.255.255.0 bridge_ports eno1 bridge_stp off …
whatsisname
  • 291
  • 1
  • 3
  • 8
2
votes
2 answers

FreeIPA client on LXC container sshd access denied

On Proxmox 4.4 I installed Centos 7 VM with FreeIPA server: ipa-server-install --idstart 10000 --setup-dns I can use IPA users and log in to other VMs on Proxmox, but when I try same for Centos 7 LXC container I got errors: May 6 13:15:50 aaaaaa…
heniekk
  • 121
  • 7
2
votes
1 answer

Is the attack surface of Docker vs. LXC/systemd-nspawn significantly different?

One decision point in choosing between and application container solution versus an OS container solution is security. I'm not knowledgeable enough to be able to compare and contrast the two. I assume they're different, but is one significantly more…
Jeff_ka
  • 21
  • 2
2
votes
2 answers

LXD migrate containers to new storage backed

On my host, I have Ubuntu 16.10: No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.10 Release: 16.10 Codename: yakkety and I use LXD from the stable repo: lxc --version 2.12 I currently have a few containers…
2
votes
2 answers

lxc-net doesn't like static ip for a bridged container

I've just started to use LXC containers and I found that even if I set a particular ip address on lxc container config file, lxc-ls --fancy shows always another ip, which is pingable and the /etc/network/interfaces settings doesn't override lxc-net…
JumpAlways
  • 143
  • 3
  • 9
2
votes
2 answers

IPv6 and LXC connectivity

I am struggling a bit on how to equip my LXC configuration with IPv6 currently. What's the setup? Ubuntu 16.04 LTS LXC2-beta from the Ubuntu PPA's (feature IPv6 connectivity) I use a netcup IPv6 setup Currently IPv4 is routed via DNAT over eth0,…
Fohlen
  • 21
  • 2
2
votes
1 answer

FreeIPA in LXD/LXC containers - cannot switch user

The Setup consists of one FreeIPA-Server and one Client, which both reside in unprivileged LXD-Containers on the same Host. Both containers and the host machine run Ubuntu 16.04. All Settings are basically FreeIPA defaults, as generated by…
zenyatta
  • 61
  • 1
  • 6
2
votes
0 answers

postgresql in lxc container doesn't start after reboot

Debian stable (Jessie) I have few containers - in one container there is postgresql. I want to start it first (I hope that my config does it). After reboot all containers starts, but i can't log in few of them (ssh doesn't starts, console neither).…
SledgehammerPL
  • 773
  • 9
  • 16
2
votes
2 answers

MySQL doesn't start after upgrading to Debian Jessie

I have a server with Proxmox 3.4 with several OpenVZ-containers. Host and all guests are running Debian 7 x64. Now I want to migrate my old setup to a new server with Proxmox 4 (based on Debian 8). I transferred multiple OpenVZ-containers to the new…
Marius
  • 141
  • 10
2
votes
1 answer

Executing Cuda script in LXC container results in "cuda error: no CUDA-capable device is detected"

I followed the following instructions in order to set up Cuda inside an LXC container. When I try to execute the sample ./deviceQuery script inside the container following error is returned: $ ./deviceQuery ./deviceQuery Starting... CUDA Device…
Greg
  • 1,657
  • 5
  • 27
  • 38
2
votes
2 answers

Debian Linux routing additional IP to LXC

I'm trying to route an additional IP of my server from Hetzner to a LXC instance (on Debian Jessie). I've found this guide http://www.jotschi.de/technik/2012/04/18/hetzner-lxc-linux-subnet-configuration.html and followed it. My problem is that as…
K.A.B.
  • 23
  • 5
2
votes
0 answers

Debian container unable to start after migration from OpenVZ to LXC on Proxmox 4

After migrating a Debian 7 OpenVZ CT from Proxmox 3 to a LXC on Proxmox 4 it does not appear to start correctly. Fristly, migration was done by stopping the container on Proxmox 3, backing up to external harddisk, then loading that harddisk in…