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

LXC No space left on device when trying to delete instance

I tried to follow the the LXC tutorial https://www.digitalocean.com/community/tutorials/how-to-set-up-and-use-lxd-on-ubuntu-16-04 When running command lxd init I used all defaults except 1GB as disk space (my disk remaining free space is just 20GB…
Thang Tran
  • 11
  • 1
1
vote
1 answer

cannot shh into lxc container even after changing config file

I am using Ubuntu 18.04. I have created an lxc-container called ctn and can log into it by using lxc-attach, ending up as the root user. When running the following with the ip shown by running lxc-ls: sudo shh -n root@10.*.*.* After entering the…
1
vote
0 answers

How to delete all snapshots in lxd cluster?

I am trying to find a fast method, how to delete all snapshots in lxd cluster. The only way I see is using lxc delete container/snap for each snap. Am I missing something? Thanks
1
vote
0 answers

LXC routing container subnet routing

I have a CentOS 7 box with 2 NICs - one ethernet port, and one wireless. I would like to create an lxc container that acts as a router that meets the following requirements: When running hostapd, client's which are connected to the access point…
Zane
  • 11
  • 1
1
vote
1 answer

LXD/LXC: Difference between disk device and lxc.mount.entry

I've been using the following to share a folder from my LCX host into a container: lxc config device add containerxyz directoryname disk source=/storage/containerxyz path=/mnt/storage/ This works perfectly fine, I can have the container read and…
TCB13
  • 1,166
  • 1
  • 14
  • 34
1
vote
2 answers

nftables does not write to syslog

Running Debian 10 on a LXC container: # apt-get -y install nftables # nft --version nftables v0.7 (Scrooge McDuck) # nft flush ruleset # nft add table inet filter # nft add chain inet filter input # nft add rule inet filter input log # nft list…
Julen Larrucea
  • 338
  • 1
  • 3
  • 11
1
vote
0 answers

Unable to run a private network with Unprivileged LXC containers

we're trying to setup a private network that using unprivileged containers. The Vagrantfile is as follow : # -*- mode: ruby -*- # vi: set ft=ruby : require 'yaml' settings = YAML.load_file 'config.yml' Vagrant.configure("2") do |config| …
Ricks
  • 11
  • 1
1
vote
1 answer

How to treat broadcast ip address as a normal IP

I'm new to networking things. I have a sub-network with 16 IPs (ex: 1.2.3.0 to 1.2.3.15). I'm using lxc for each IP for different purposes, but currently the containers with IP 1.2.3.0 and 1.2.3.15 cannot communicate with other containers in my…
dk1111
  • 33
  • 5
1
vote
0 answers

virt-sandbox error creating an OS container with lxc backend in virt-manager

I am attempting to create an OS container through virt-manager with the lxc backend. virt-sandbox exits without any information on why it fails. Where can I find logs for it? Can I run virt-sandbox with verbose logging through virt-manager? I'm…
Ananth
  • 51
  • 1
  • 9
0
votes
1 answer

Can not start nfs-server on centos 7 lxc container

I have Linux Mint 19.2 Tina with 4.15.0-54-generic kernel on host and lxc version 3.0.3. Problem is that I can not start nfs-server in container. Steps that I do: $ sudo systemctl stop apparmor $ sudo apt-get install nfs-kernel-server $ ls -l…
Paul Serikov
  • 113
  • 7
0
votes
1 answer

How to forward traffic from a specific domain from apache2 to LXC container

I am currently running apache2 on my server, but would like to forward http(s) traffic requesting a specific host (ex. lxc.example.com) to an LXC container which can be accessed by a local ip address on the box. I have looked into iptables, however…
0
votes
0 answers

Temporary network issue with LXC container

Good afternoon, colleagues. I have a network availability issue when running the LXC container on a VMware virtual machine. When I turn on the LXC container, about 10-15 minutes, there is no Internet connection and no connection to other virtual…
Taron
  • 131
  • 5
0
votes
1 answer

Overhead of LXD

Question for server structure here. Is the overhead for LXD small enough to use it for per-process containers? E.G if I have a LAMP stack, media server, game server, etc. is it viable to split each of these into separate containers and how big will…
Prodigle
  • 103
  • 4
0
votes
1 answer

LXD container restricted to specific user

If I have 2 users with the 'lxd' group, user-1 and user-2. If user-1 starts a container, then I think that user-2 may stop it, destroy it or even run command on that container or connect via ssh to it. Is there a way to allow users to use lxc…
0
votes
1 answer

How to get a Linux container to connect to the internet through a bridge?

My Linux host has a bridge device br0, and I have created an arch Linux container but it isn't able to access the internet. When the container is started the veth device appears on the host: [host]# ip addr 1: lo: mtu 65536…
river
  • 101
  • 2