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

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
23 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.
0
votes
0answers
45 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
41 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
33 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
49 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
25 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
106 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
60 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
70 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
40 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
63 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
21 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
39 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
116 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
23 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 ...
0
votes
0answers
30 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
127 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
23 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
41 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
167 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
21 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
97 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
192 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
32 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 ...
1
vote
1answer
483 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
36 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
202 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
11 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
361 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
39 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
104 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
198 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
541 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
122 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
75 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
21 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
826 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
64 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
105 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
1k 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
185 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
33 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
76 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
388 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
180 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
229 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
63 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, ...

1
2 3 4 5 6