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
0
votes
0answers
14 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
12 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
19 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
38 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
16 views
+50

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

How to create logical volume inside lxc container?

by default, lxc container comes with default logical volume from the host but in this case, I want to create the additional logical volume into my lxc container.
2
votes
1answer
37 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
0answers
17 views

lxc containers used within cisco cronjobs?

Hi I am running an lxc container, rather forced upon me by Cisco. And I am trying to figure out how I get my cronjobs or init.d working properly. It is running ona LoRaWAN gateway and it is either ...
0
votes
0answers
23 views

How should I setup an LXD linux-container?

The following documentation contains the necessary infomation to setup LXC. https://linuxcontainers.org/lxd/introduction/ https://linuxcontainers.org/lxc/getting-started/ After that, I wanna use LXD ...
0
votes
0answers
14 views

Distribute network packages between Containers

Is it possible to distribute network packages randomly between several Containers (LXC/LXD)? Example: We have eth2 (we get raw packets in Promiscuous mode) we want to give 50% of packages to ...
0
votes
0answers
53 views

GUI application on LXC on Proxmox

I am trying to run a GUI application on a server in LXC in Proxmox VE. When trying to start xorg with classical methods (X, xinit, startx), the error tty0 is missing: parse_vt_settings: Cannot open /...
0
votes
0answers
18 views

lxc-create fails but produces no useful output

Where do I find more information about why lxc-create is failing? Ultimately, I am trying to figure out how to create an lxc template, but before that I'm simply trying to create an unprivileged ...
0
votes
1answer
36 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
84 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 ...
0
votes
0answers
22 views

cut & paste from X11 applications in LXC container to host doesn't work

I installed LXC 3.0.4 Linux Containers on a Debian 'bullseye' system. Copying with Ctrl-C (or Copy from the Right-Click menu) from an X11 application running in the container (for example Firefox) to ...
0
votes
1answer
116 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
27 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
66 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 ...
0
votes
0answers
10 views

Memory attribute of ContainerDefinitions

Docker container is a user space process(with pid) running in Docker host, but in separate process namespace(non-default), as shown below: $ docker ps -a CONTAINER ID IMAGE ...
0
votes
0answers
150 views

How to use LVM2 inside LXD (LXC) without `systemd-udev`?

I'm trying to use LVM2 inside of an LXD (LXC) container for my Ceph OSD. I believe that I'm getting there! So far, everything works fine, like: pvcreate vgcreate lvcreate ceph-ansible They all work!...
1
vote
0answers
30 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
60 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
101 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 ...
2
votes
1answer
297 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
62 views

ip netns list-id show nsid number keep increase

We built a system with two containers. Both containers have network configuration, the config file of the container will be list below. Issue: When two containers startup, use ip netns list-id, it ...
0
votes
0answers
34 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
0answers
13 views

Error when I'm trying to create a lxc

when I'm trying to create a lxc, I get an error "unable to create CT 313 - command 'mkfs.ext4 ... failed: exit code 144" I guessed that's because I use a ZFS storage, so I find the proper storage: /...
0
votes
2answers
427 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
0answers
43 views

How configure TAP, bridge for container to receive all network traffic ? Like IDS inside container

1 - container is configured with bridge (br0) 2 - All network trafic is received by the br0. And I would like that trafic is also send to my container which is under LCX. I have to use TAP because ...
0
votes
3answers
50 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
87 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 ...
0
votes
0answers
80 views

gdm does not start “Seat has no VTs but VT number not 0”

I have an archlinux running in a container with a full access to the display card (using Nvidia, ubuntu 19.04 host) When upgrading systemd from version 242 to version 243 gdm does not start. (gdm was ...
2
votes
1answer
609 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
0answers
152 views

Setup a LXC host bridge on Ubuntu 18.04 and netplan

I am trying to update to replace the LXC bridge on my Ubuntu 18.04 and I do not know how to apply the answerer from this question to netplan. Thanks How to configure external IP addresses for LXC ...
0
votes
1answer
110 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
26 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
0answers
49 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
0answers
17 views

how to mount host machine directory to overlay fs?

I want to mount host machine directory to overlay fs. Now, I have a overlay directory: . ├── lower │ ├── file1 │ └── file2 ├── merged │ ├── file1 │ ├── file2 │ └── file3 ├── upper │ └── ...
0
votes
1answer
268 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
0answers
27 views

Lxc static private IPV4 for each container

I have installed LXC on my Debian 9.9 host machine. I want to create a script that could be used from my appliacation to manage containers to assign a single static IPv4 to my container so I can NAT ...
0
votes
0answers
92 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
119 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
48 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
266 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
326 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
482 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
vote
1answer
96 views

Execute command with LXC on remote host

I know I can use lxc exec remote:container -- command to execute commands on containers living on remote servers. But, is it possible to execute a command on the remote host instead: lxc exec remote -...
0
votes
0answers
39 views

LXC import storage

lxc storage seems exclusively about creation and deletion. For example, if I try to use create with btrfs and the device already has an existing btrfs filesystem on it, I get an error percolating up ...
0
votes
1answer
33 views

Is it possible to set the IP address when launching a container?

I’m looking for examples how to create/launch a container with a predefined ipv4.address? Is that even possible? I've tried with lxc launch image name --config 'eth0.ipv4.address=10.0.2.2' Though ...
1
vote
0answers
89 views

Copying files out of LXC container without starting it

Is there a way to copy files out of an LXC container without starting it? The context for this is that I'm using Crostini on my ChromeOS device. Crostini is a VM that allows you to run LXC containers ...

1
2 3 4 5 6