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.

Filter by
Sorted by
Tagged with
1
vote
1answer
14 views

Command executing outside container with lxc-attach?

I am trying to do a more complicated task inside a running lxc ubuntu container, but my problem can be explained using this simple example. When I run sudo lxc-attach -n container1 -- echo "test&...
0
votes
1answer
53 views

lxc-start tells me apparmor_parser not available even though apparmor is installed and running

System:Debian Testing (Bullseye) I am trying to get an LXC container up and running as per here, however, when I get to lxc-start -n my-container -d I get the following: $ lxc-start -n test1 -d lxc-...
1
vote
1answer
20 views

It is possible to use parallel compression method in lxc publish?

To generate images LXD compresses files using gzip, which can only use one core. Thus, creating images can be very slow with large containers. I would like to use other compressors (e.g., pigz). What ...
0
votes
1answer
25 views

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 ...
0
votes
0answers
18 views

Command under /snap/bin cannot be found in terminal, despite it being in the PATH [duplicate]

I'm trying to execute the lxd command from the /snap/bin directory. I have added it to the user .bashrc, .zshrc, and /etc/environment. When I echo $PATH I get the following output: /usr/local/sbin:/...
0
votes
0answers
36 views

Bad message for some files

Have problem with some files in lxc container. Example: $ sudo ls /home/user/.vscode-server/bin/485c41f9460bdb831c4da12c102daff325415b26/extensions/ms-vscode.js-debug/src/bootloader.bundle.js ls: ...
1
vote
0answers
78 views

Start armv7 container on arm64 with lxc / lxd

I installed Ubuntu 20.04 on my Raspberry PI, which has an arm64v8 architecture (but could be on any other debian arm distribution / hardware). Currently I compile a program for several arm ...
0
votes
1answer
37 views

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 ...
0
votes
0answers
17 views

How to run emulate Screen/Display and pass it to container?

I want to debug windows manager (kwin_wayland). I don't have second machine handy to use it for remote debugging. So virtualization is my best option. I dont want to use KVM. instead I want to use LXC/...
0
votes
0answers
94 views

Run KVM inside LXC container

I have a baremetal server with Debian. Iside it I have KVM-based VMs and LXC containers. Now I am searching a solution to run KVM inside LXC container.
1
vote
1answer
258 views

LXC, Docker and iptables on the same host, timeout on port-forwarding from the container to the container

thanks for reading! I have a publicly exposed server (debian 10), used as an host, running both LXC (not LXD) and Docker. These two container services are running with a mostly original configuration (...
2
votes
0answers
87 views

Solution: How come that lxc-attach doesn't work within su -c?

I have an unprivileged lxc container. It works well and if I need to do something within that container, I su --login lxc-user, then I do lxc-attach -e -n lxc-container for e. g. doing updates ...
-1
votes
1answer
36 views

Is LXC sponsored by Canonical Ltd.? [closed]

The official website for LXC, linuxcontainers.org, claims that LXC is under the umbrella project "linuxcontainers.org" sponsored by Canonical Ltd. Is it true? Isn't Canonical just sponsoring ...
1
vote
1answer
195 views

disk quota exceeded when trying to deploy Docker container inside LXC

I have an LXC container running docker. Many containers are running successfully but I am unable to add more; I am trying to deploy a new docker container and getting the following error: container ...
0
votes
0answers
27 views

Direct to virtual machine

I started hosting a server in a data center. They give me an IP address Currently, virtual machines running on the Proxmox base cannot access the internet. Before the data center, I wrote the DMZ ...
0
votes
1answer
208 views

lxd init: bind: address already in use

I have problem with bind problem with lxd init. The port 8443 is not used by any other application, therefore I think, lxd init tries to bind this port twice. My lxd version is 3.14 and I am using ...
0
votes
0answers
78 views

Networking with KVM and LXC on the same host (hypervisor)

I have KVM installed and running [a couple of VMs] on a Ubuntu Bionic (18.04) host. The bridge interface of KVM is br0, configured like: auto br0 iface br0 inet static bridge_ports p1p1 ...
1
vote
1answer
24 views

How to bufferize a PTS?

I'm building a system using LXC containers trough libvirt, and I'm trying to record/forward the container's stdout. When creating a new domain, a pseudo-TTY is created in /dev/pts/* and I'm able to ...
1
vote
2answers
196 views

LXC container will start at the command line, but not automatically, from cron's @reboot or from /etc/rc.init

I can always start my container successfully with: fadedbee@host:~$ sudo lxc-start -n mycontainer It used to start automatically, until I bound some directories on a local ZFS to it. I added the ...
0
votes
0answers
83 views

Using virsh to connect to non-root lxc container

I have a few non-privileged containers created with lxc. For instance if I have lxc-ls it outputs: centos8 debian10-eit I would want to connect/manage them using virsh, however it does ...
0
votes
0answers
123 views

container vs 'virtual machine' image from images lxd remote

I was messing around with Linux containers and I was looking through the 'images' image remote for an image for my Raspberry Pi. I came across two adjacent Debian Buster images. One is listed as a "...
0
votes
1answer
22 views

Linux containers [closed]

Linux containers 1- are containers really safe ? (I know that there was some vulnerabilities around like the one found in runc ... but are they really safe in general, since they use syscalls and an ...
0
votes
0answers
85 views

Custom LXC container not getting auto IPv4

I've created an Alpine Linux container, modeled after the image provided on the lxc/lxd image server. I imported the image using the following: lxc image import metadata.tar.gz rootfs.tar.gz --alias ...
0
votes
0answers
209 views

Where is the memlock limit in an LXC container from?

In the host shell: $ ulimit -l 65536 $ vagrant ssh --command='ulimit -l' 64 What could cause this difference? Dead ends so far: On the host and the guest /etc/security/limits.conf has no entries ...
1
vote
0answers
28 views

How to run snap daemon outside a container

It looks like snap programs (installed on ubuntu) are run instide VMs/containers created by Canonical (called multipass). But what if my daemon needs access to the host filesystem, host system socket ...
2
votes
1answer
197 views

Custom message to “This account is currently not available” when user login is disabled

I have a Lxc container inside a Proxmox host. I need to prevent that the Proxmox admin can login inside my container. To do so I disabled root login in /etc/passwd. When the Proxmox admin uses pct ...
0
votes
1answer
171 views

debootstrap Couldn't find these debs: lxc

I'm trying to follow along to a guide to creating an unprivileged lxc container on Ubuntu. According to the instructions, I should run: debootstrap --include=lxc eoan rootfs But when I run that, I ...
2
votes
2answers
331 views

Recover deleted but mounted loop file/filesystem

By mistake, I deleted an lxc image file. The container is still running and the file is therefore not yet actually deleted until I stop the container. I'd like to avoid stopping the container as it is ...
1
vote
1answer
866 views

How to run lxc exec for commands with pipe?

for example, I have this command: lxc launch ubuntu:18.04 memsql1 lxc exec memsql1 -- wget -O - 'https://release.memsql.com/release-aug2018.gpg' 2>/dev/null | sudo apt-key add - && apt-...
0
votes
0answers
41 views

What is the easiest way to transparently compress directories on ext4 in lxd container (btrfs mounted)?

What is the easiest way to compress directories transparently on lxd container server with ext4 file-system when the lxd/lxc is mounted on btrfs file system with btrfs RAID1? The container has tons ...
1
vote
1answer
309 views

LXC Container with Overlayfs/Squashfs

We are using a Centos LXC container with the rootfs contained in a squashfs filesystem. I really like the fact that a user cannot edit the rootfs from the host. During the development, developers ...
1
vote
0answers
51 views

Custom images for LXC deployment

With docker you can build a custom image by starting with a base OS image from the community such as Ubuntu, or Alpine, then install your app and any other dependencies (ngnix for example). Then ...
1
vote
2answers
135 views

How to create VM's for 32-bit and 64-bit Wine-based development environments on a 64-bit box? [closed]

I am running a 64-bit Linux (Devuan) and want to create separate VM's to contain Wine as 64-bit and 32-bit respectively, as well as the needed development(coding/IDE/debug) tools for each. My options:...
-1
votes
1answer
277 views

Need help installing Modoboa Mail Server

this is my first job as IT. I don't have much knowledge about Servers, but I'm trying to learn really hard. Having said that, please, I really need help trying to deploy a mail server. I have this ...
3
votes
1answer
747 views

lxc(-net ?) problems when starting container on debian Buster

I've (tried to) set things up to allow myself to have some unprivileged containers I can start (and then use) as needed. Now I can create new containers with lxc-create, but when I try to start one, ...
0
votes
0answers
134 views

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 ...
0
votes
2answers
1k views

How to run docker inside an lxc container?

I have unprivileged lxc container on Arch host created like this: lxc-create -n test_arch11 -t download -- --dist archlinux --release current --arch amd64 And it doesn't run docker. What I did ...
0
votes
3answers
79 views

Why am I not seeing as many page faults as I expect?

I am trying to explore the page fault behavior of Linux. I made an lxc container with restricting the memory to 1GB (by adding 'lxc.cgroup.memory.limit_in_bytes = 1G' to /etc/lxc/default.conf). Then, ...
4
votes
1answer
124 views

computer locks up when building on lxc container

I'm using lxc to have a ubuntu 16.04 development environment on my 18.04 laptop. When I do a parallel build (ninja -j) on the container my computer becomes unresponsive and never recovers. I have to ...
2
votes
1answer
2k views

LXC: Cgroups, hardware passthrough, explain in english please?

I've got sort of a niche use case (not "production", it's a lab environment for a classroom) where I am using LXC containers on a Proxmox VE machine to run GNS3 Server and KVM virtualization. To make ...
0
votes
1answer
249 views

what is the purpose of overlay network driver?

Below is the command run on ubuntu to create overlay network driver for swarm cluster instead of using bridge network driver $ docker network create -d overlay xyz $ docker network ls ...
0
votes
0answers
35 views

lxc-create undefined symbol: file_to_buf

I just migrate my stretch installation to a Buster install. I was previously running a LXC 3.x compiled by me and i have uninstall it to take the buster version. i can create container, start and ...
3
votes
1answer
128 views

How to disable sudo in containers from audit logging to host

How do I disable sudo inside of LXC containers from writing to the audit log on the host? Both the host and containers are Fedora 29. We run many containers running automated tests. Some of those ...
0
votes
1answer
487 views

nftables with openvpn and lxc

I have a simple setup involving OpenVPN server in a LXC container (debian stretch host, debian buster container), in which i'd like to set up a firewall based on nftables. What confused me is the ...
0
votes
1answer
234 views

Hosting LXC Linux containers in Azure

We have a number of LXC Linux containers running on a linux host in data center. I was asked to explore feasibility of moving these containers to Azure as part of cloud migration strategy, but I am ...
1
vote
1answer
326 views

How to cleanup network interfaces after an LXC container crashes on startup

Today I modified an LXC container to add an extra "bind mount", but forgot to create the mount directory in the container root filesystem. As a result the container startup failed, and left the ...
2
votes
1answer
83 views

Creating a private image in LXD

I am confused because the command to create an image from a snapshot is called lxd publish. Does it create a publicly available image? How can I create a private image. I want an image with ssh keys, ...
2
votes
0answers
470 views

Restrictions on pivot_root to switch root filesystem

This question is a follow up to the question I asked on how LXC setups up its root mount point. For a container named testcontainer, LXC uses bind mount to mount /var/lib/lxc/testcontainer/rootfs to /...
2
votes
1answer
646 views

How does LXC setup its root mount point?

I am trying to experiment with mount namespace in Ubuntu. So far I can create an empty mount namespace using the following: # mkdir test # unshare --mount # mount none test -t tmpfs # cd test # ...
0
votes
1answer
970 views

How to route between two bridge interfaces?

So I have a total of two bridges. One has the 10.0.0.1/24 subnet (br0), and the other has the 10.1.0.1/8 subnet (br1). I want to setup an NGINX reverse proxy that would run on a container connected ...

1
2 3 4 5 6