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”.

Filter by
Sorted by
Tagged with
0
votes
0answers
12 views

Adding LXC containers to either localhost or bridge for sMQTT

Hey so I have a couple of ways to try it but I keep running into certain issues, one of them being lxc-net dependencies not running on this machine and no package manager or gcc to compile it. The ...
0
votes
1answer
19 views

Strange permission issue for SpamAssassin in LXC container

My mailserver set-up is quite old, but did its job for many years. With the last major update from Debian 9 to 10, SpamAssassin stopped working. Today I took the time to search for reasons, and I do ...
0
votes
0answers
15 views

Facing Error: TIOCGPTPEER required on LXC Container Bash

COMMAND: lxc exec container bash ERROR: Error: TIOCGPTPEER required Kernal Info: Linux version 4.9.75-axo-r-KC01+ (root@ldsci51) (gcc version 4.8.3 20140106 (prerelease) (crosstool-NG linaro-1.13.1-4....
0
votes
1answer
49 views

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

LXD Container - Static IP over Bridged VLAN

I have an alpine LXD container that I want to connect to my VLAN 10 using a virtual bridge already set up within the centos host machine. I made a representation of the network here : Network Image ...
0
votes
1answer
63 views

Fedora 31 LXC service failed to start “Failed to start FUSE filesystem for LXC”

I'm trying to setup LXD system for test environments on Fedora Desktop workstation but the LXD service just wont start because the dependency service LXC fails. After trying to start the sudo ...
0
votes
1answer
59 views

systemd 219 capabilities behavior

We're running systemd verson 219 on CentOS 7, inside an LXC container, and we're having trouble with capabilities. systemd appears to be dropping capabilities, contrary to the systemd.exec(5) man ...
1
vote
1answer
175 views

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 # ...
1
vote
0answers
36 views

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

is there a way to clone the running lxc container without stopping it?

I am very new to the lxc container. I have been running the lxc containers over the zfs backing storage. For backup purpose i am using zfs snapshot. Now i got into problem while cloning the container ...
0
votes
1answer
32 views

LXC: Create privileged container that can execute mknod

I'm trying to figure out how to build Ubuntu Core 18 on my Raspberry Pi. It seems like the best way to do this is to use an LXC container. However, I'm getting this error when I snapcraft --...
1
vote
1answer
175 views

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 ...
1
vote
0answers
60 views

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 ...
3
votes
1answer
141 views

vmalloc allocation failure when scaling LXC containers past 1350 on Proxmox 6.2

I have a server of the following spec: Dual AMD EPYC 7742, 1TB RAM, 8TB SWAP (Round-robin 8xNVME array), 144TB SSD Storage (72 drives over 10 zpools) uname -a Linux host 5.4.44-1-pve #1 SMP PVE 5.4.44-...
0
votes
0answers
27 views

Docker in unprivileged LXC container freezes host system

I am running docker in an unprivileged LXC container (alpine) on a proxmox host system. The container has nesting enabled. What i discover is that on high memory consumption in the container, the ...
0
votes
0answers
32 views

usb device not mounting in lxc container

I am running an lxc-container on debian host. In host, I have a usb-serial device. I am adding the device to container using: lxc-add /dev/bus/usb/001/002 In container I can see, /dev/bus/usb/...
4
votes
1answer
62 views

Reading Samba from Windows 10 has major bottleneck

Keep in mind, both machines used are hosted in a Proxmox Node. SETUPS My Samba setup is installed on Ubuntu inside an LXC. The shares are located on a RAIDZ2 dataset, and are accessible from the LAN....
0
votes
0answers
10 views

Is it possible to keep interfaces down during boot in an LXD container?

I'm building a small tutorial-lab based on LXD (Ubuntu 18.04). I've created a virtual topology by creating several veth links and attaching the ends to the corresponding containers. When I start the ...
0
votes
1answer
54 views

lxc-start does not work in a cron script

This script runs fine in the console, but fails to start the container in cron. So, lxc-stop will work fine in cron, but lxc-start won't The cron message I receive is lxc-start ...
0
votes
0answers
14 views

Communication issue between linux containers

I've a network related issue. On ProxMox VE 6.1-8 I have several LXC containers, all based on debian 10.3. All containers are connected via two bridges: vmbr0 connected to the physical ethernet port ...
0
votes
1answer
44 views

When should we use containerized application on Linux

I would like to create a Linux server but I'm stuck on one question: How to know when I should use Docker or Lxc for a given application instead of installing it natively ? For example, on my server ...
0
votes
0answers
136 views

No MAC address filtering possible in QNAP container station

I am trying to apply traffic filtering to docker and LXC containers based on iptables. It is important for me to filter MAC addresses. This is due to the fact that so-called "smart home" devices based,...
0
votes
1answer
384 views

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

Custom user/group mapping in unprivileged LXC container for (user)mount

I set up a LCX Container. My hostsystem is ArchLinux and the Container use Debian. I start the container as root and use user/group mapping so the container run 'unprivileged'. /etc/lxc/default....
0
votes
1answer
122 views

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

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 ...
1
vote
0answers
47 views

lxc with apparmor - where should be defined profiles

I created /root/example.sh from here at the host, and with aa-genprof denied it. # ./example.sh This is an apparmor example. ./example.sh: line 5: /usr/bin/touch: Permission denied File created ./...
1
vote
2answers
312 views

Dovecot lxc apparmor denied (Buster)

I can't run dovecot in lxc on Buster. I turn off PrivateTmp, but it isn't enough... Still : [ 4850.883141] audit: type=1400 audit(1563803461.322:34): apparmor="DENIED" operation="mount" info="failed ...
1
vote
1answer
1k views

LXC container cannot ping outside

I'm currently creating a new container on a fresh server and I'm facing a network issue. Basically the container cannot reach anything on the Internet i.e. every request timeout. Here are the ...
0
votes
1answer
919 views

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 ...
0
votes
1answer
78 views

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....
2
votes
1answer
668 views

libvirt-lxc container on Debian buster with user namespacing not always startable

I have a bunch of libvirt-lxc containers whose configuration I migrated from Debian jessie to a fresh Debian buster host. I re-created the rootfs’ for the containers using lxc-create -t debian -- --...
3
votes
1answer
584 views

Can you run Docker natively on the new Windows 10 Linux kernel?

My understanding was that the primary limitation of running docker on other OSs was the Linux Network containers that made it possible. (Certainly for Macs). Recently Microsoft announced a plan to ...
2
votes
0answers
47 views

Sending tagged traffic to lxc container while sending untagged traffic to other containers

I have a situation where I already have several bridges on my lxc host to send vlan-specific traffic to my various containers. I have one container that lives on several of the networks, and was ...
1
vote
0answers
130 views

Libvirt lxc-enter-namespace with mapped uid/gid

I'm trying to implement LXC with mapped uid/gid (user namespace) under Libvirt on CentOS 7 with full separate root mounted. Libvirt config snippet <idmap> <uid start='0' target='100000'...
1
vote
2answers
140 views

LXC and iptables - how to change source IP address from main IP to different IP address

I have LXC container with mail server and "dedicated" IP address. "Dedicated" means that 25 and 110 port of the IP address are forwarded to 25 and 110 port of the container. This is done with ...
0
votes
1answer
157 views

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]# ...
0
votes
1answer
148 views

Can I make a single computer out of 3 with lxd cluster?

I'm setting up a LXD cluster on 3 machines. Though I'm concerned if a single container (a virtual machine) use all the resources of 3 machine. I mean Does a single container use all 3 machine's CPU?...
2
votes
1answer
634 views

Is lxd/lxc a suitable replacement to virtual machines (vSphere, for example) for server infrastructure? [closed]

I would like to move my servers to virtual machines. This is because it'll make it easier for me to fire up more machines and back them up in case the physical server is damaged (I'm not aware of ...
1
vote
0answers
454 views

Unprivileged LXC fails to find subuid / subgid allocation

When I run lxc-usernsexec I get the error message: Failed to find subuid or subgid allocation lxc-create and lxc-start work without any problems, but I would need to run lxc-usernexec to remove a ...
0
votes
1answer
838 views

Docker inside LXC starting container process caused “apply caps: operation not permitted”

I'm trying to run a Docker container inside an LXC container. However doing so causes me to get the following error: [root@DH-DockerLXC01 alex]# docker run fedora bash docker: Error response from ...
1
vote
2answers
2k views

How to resize lxc/lxd images, if i am using LVM backend?

I'm using LXD few years and I'm glad to use this platform in my testing environment. But few days ago, I couldn't install Microsoft SQL server 2017. The reason was, that I used default ZFS backend. ...
1
vote
0answers
1k views

Proxmox: how to access a ZFS volume directly through guest?

That may sound like a strange use case, but is there a way to access a ZFS volume directly through an LXC container or a Qemu VM with Proxmox? I'd like to have incremental backups pushed to my guest ...
0
votes
0answers
264 views

Proxmox LXC networking

We have 5 physical machines hosted at OVH. Each of them have Proxmox 5.2-10 installed Machines are inside of OVH vRack. we have separate LXC for database, separate LXC with loadbalancer and several ...
1
vote
0answers
946 views

What is standard way to forward port from host to LXC container?

I am researching LXC containers. When I do verth network, libvirtd creates some iptables rules: [root@VM ~]# iptables -L -n -v Chain INPUT (policy ACCEPT 61 packets, 6229 bytes) pkts bytes target ...
2
votes
1answer
4k views

unprivileged_userns_clone no such

I am trying to setup unprivileged LXC containers as explained in Debian Wiki on a Jessie Debian physical server (4.9.135 kernel). Hence, I want to enable the userns namespace: sysctl kernel....
0
votes
1answer
233 views

What is standard way to give LXC public IP address?

I am researching LXC. The thing I was unable to find is how to give a container public IP address? Suppose we have a server with 5 IP addresses. Then we do 4 containers there and give somehow one ...
6
votes
2answers
4k views

How to prevent docker-compose appending hashes to created container names?

I have a server with several lxc containers. In some of the containers there is a docker installed. Usually a docker compose action in these LXC containers results in container names with the format ...
-2
votes
1answer
561 views

Even with root user Im receiving 'Operation not permitted' when try creating gluster volume between Ubuntu 14.04 LXC containers

Even with root user Im receiving 'Operation not permitted' when try creating gluster volume between Ubuntu 14.04 LXC containers. Need test the solution locally before install it on prodution and even ...
0
votes
0answers
135 views

Slow running Cron tasks getting stuck in container

It is a Debian 9 container running on a Debian 9 host. Every now and then the container would grind to a halt. It is usually a slow task like apticron or munin. My last test was an idle container on ...

1
2 3 4 5
8