Questions tagged [lxc]

Linux Containers (LXC) is a userspace interface for operating system-level virtualization features in the mainline Linux kernel, such as kernel namespaces and control groups (cgroups). These allow multiple distinct user space instances to be run on a single kernel. Note: the 3 letters "lxc" command is part of LXD, not LXC. Please use the LXD tag if your question is about LXD rather than only about LXC.

Linux Containers (LXC) provides userspace tools for operating system-level virtualization features in the Linux kernel. It allows multiple distinct user space instances, commonly referred to as containers, to be run on a single kernel instance.

LXC differs from other operating system-level virtualization solutions for Linux, such as OpenVZ and Linux-VServer, in that LXC relies entirely on kernel features available in the mainline kernel. Processes are contained via the use of:

323 questions
6
votes
4 answers

"failed to attach 'veth87VSIJ' to the bridge 'virbr0': No such device"

I am using Fedora 20 in a VM and trying to learn to use containers. I have created a container but can't start it. Here is the terminal output: [root@localhost home]# lxc-start -n test lxc-start: conf.c: instantiate_veth: 2978 failed to attach…
5
votes
4 answers

Moving LXC container's backing storage

I have a bunch of LXC containers running on a machine. All of them have their rootfs in the default location /var/lib/lxc/*/rootfs. This directory lives on a rather small partition on the host. I have a much, much bigger partition mounted on /home.…
harm
  • 174
  • 2
  • 7
4
votes
1 answer

How can i add network interface to LXC Container

I have a question about Network Interfaces in LXC container: In my container,I have by default these interfaces: ubuntu@u5:~$ ifconfig eth0 Link encap:Ethernet HWaddr 00:16:3e:b7:de:91 inet addr:10.0.3.138 Bcast:10.0.3.255 …
2
votes
2 answers

Container with network interface but host without, how to expose eth0 to container

I am building a system with a read-only rootfs. This rootfs is shared between the host and created containers. The host cannot have any network related service or file and that means I cannot bridge the host connection. I am currently using an USB…
2
votes
0 answers

How to save state lxc container

I am using a virtual machine running Ubuntu. Here I have started a virtual host using lxc-container. I assigned one IP address to this host. When I then shut down the VM, how do I return to that state after starting that lxc container again? I…
Rapax
  • 33
1
vote
0 answers

LXC container bridge with host network risks?

I'm new to LXC containers and still very much learning what is what. I want to run a container bridged to the host network (e.g. 192.168.0.0). This is required because the application I want to run inside the container needs to be on the same…
sjaak
  • 584
1
vote
1 answer

Lxc Container install programs

I want to create a Linux Container. I want to use it for developing with eclipse python 2.7 and opencv. I have created a lxc container and started him. How can i install the programs in the container? And how can i put the image on other computer. I…
otto
  • 111
1
vote
0 answers

lxc unable to apply profile to container

I'm using LXC on Ubuntu Ubuntu 14.04.4 LTS, and I'm performing the following operations as unprivileged user. $lxc config profile create privileged $lxc config profile set privileged security.privileged true I'm attempting to apply this profile to…
Deano
  • 184
  • 4
1
vote
0 answers

multiple lxc containers sharing the same CPU and mem resource pool

I'm using lxc via libvirt on centos 7. Is there a way to configure multiple containers to share the same resource pool? I need this for 2 resource intensive containers. Right now I configured the resources to be over-committed. Usually the 2…
MiN
  • 13
  • 1
  • 3
0
votes
1 answer

Is possible to identify the LXC unprivileged container owner of process?

I have a linux server, Debian buster with LXC configured for unprivileged containers. I have also a lot of crash from sssd_be, dmesg from server said: dmesg|grep segfault sssd_be[6739]: segfault at 8 ip 00007f080b190714 sp 00007ffc24a170a8 error 4…
elbarna
  • 12,695
0
votes
1 answer

Why this script works fine if run as user, but faili if run from rc.local?

I have some troubles with lxc unprivileged containers on Debian. I follow this method: a)I create the user unprivileged with home in /var/lxcunpriv useradd -m -d /var/lxcunpriv lxcunpriv b)I install the require packages apt -y install lxc libvirt0…
elbarna
  • 12,695
0
votes
0 answers

lxc-stop says container-name not running, when it is running

I've created a container using lxc launch ubuntu:16.04. My host machine is ubuntu 16.04 as well. The container is running: But when I run lxc-stop like this: » lxc-stop ideal-bluejay I get the output ideal-bluejay is not running I think this…
0
votes
1 answer

How can I debug lxc-create config file?

I use lxc-create -n Test -f t -t busybox to create a lxc-container on Archlinux, just get an error Error creating container Test nothing else. The template lxc-busybox comes from the lxc package from ArchLinux. How do I know what am I doing…