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

155 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0 votes
0 answers
186 views

Understanding ulimits / process limits, or maybe something else. New processes stop opening (fork errors)

I'm a little bit lost and need some help understand what exactly is happening with my server. So this is a Proxmox (Debian) server with several LXC containers running in it, and from time to time ...
ItsJustMe's user avatar
  • 1,011
0 votes
1 answer
478 views

Do I need to install docker engine on proxmox's LXC to run a portainer agent?

Currently I am running Proxmox and have installed the docker-engine and Portainer on the main Proxmox node. I would like to add more environments, including an LXC which I downloaded from a template ...
SeatbeltHands's user avatar
0 votes
0 answers
59 views

Controlling virsh filters right way

I'm running centos 7, lxc for containers, virsh for setting up a bridge. Upon creation, virsh set up some firewall rules for virbr # iptables-save | grep virbr -A POSTROUTING -o virbr0 -p udp -m udp --...
Alex Povolotsky's user avatar
0 votes
1 answer
320 views

docker can't access internet from within LXC Container

I have launched a Ubuntu 20.04 LXC container on RedHat 8.6 using the following command lxc launch ubuntu:20.04 --storage default -c security.privileged=true -c boot.autostart=true --network lxdbr0 I ...
PrestonDocks's user avatar
0 votes
0 answers
246 views

How can I (re)create a LXC image with ansible?

I have a server with custom made LXC images. My users can create containers from thoses images. Until now, when I needed to change some configuration to the image, I went into a tedious workflow of ...
SteeveDroz's user avatar
0 votes
0 answers
110 views

when I use the LXC IP on the browser it gives "This site can’t be reached"

Basically I want to establish website with the LXC. so I installed LXD and created LXC called app1, then installed apache2. All are running, but when I use the LXC IP on the browser it gives "...
Astro's user avatar
  • 101
0 votes
0 answers
175 views

Routing from LXC to WAN

I have a VPS with one public IP, 64.x.x.x which is assigned to enp1s0. My goal is to have LXC container/s running on this VPS which have connectivity with the host and with WAN. That means traffic is ...
Tobe's user avatar
  • 151
0 votes
1 answer
87 views

Why do I routes to containers locally and how can I do better?

I'm setting up a new server at a new site. The server is placed behind a router / firewall. The server shall run several LXC containers for various services. The LXC containers are connected to a ...
Lars Hanke's user avatar
0 votes
0 answers
43 views

deciding on docker architecture setup and performance

I will need to virtualize a jenkins software architecture and I don't know which architcture will be more efficient. I need : a jenkins server an opensuse server for c/c++ 64 bits compilation an ...
sancelot's user avatar
  • 101
0 votes
1 answer
334 views

How to mount glusterfs at boot in centOS 7 lxc container?

Need to get a glusterfs volume mounted in a centos 7 lxc container. found this and can do it manually ok... But it seems that adding it in the fstab doesnt work because it gets executed before gluster ...
user64's user avatar
  • 31
0 votes
0 answers
79 views

How can I create the .conf file for a LXC container restored from a backup that comes from Proxmox?

I can restore the backup with the tar command but I lack the .conf file from the original Proxmox server it comes from. I restore the backup on a Debian 10 server. Can I create the .conf file on the ...
ballatom's user avatar
  • 123
0 votes
1 answer
3k views

Chronyd inside LXC conatiner

It seems like chronyd doesn't work in lxc containers. The containers running are not unprivileged. Following is showing up with systemd: ● chronyd.service - NTP client/server Loaded: loaded (/usr/...
Lorem ipsum's user avatar
0 votes
0 answers
2k views

Proxmox | /etc/default/pveproxy file

I have a small problem. I was trying to disable access to the proxmox web panel for the ip address and enable it for my domain. As I saw on the proxmox website (https://pve.proxmox.com/pve-docs/...
Dominik Miskovic's user avatar
0 votes
1 answer
63 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 ...
Lars Hanke's user avatar
0 votes
1 answer
667 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 ...
The amateur programmer's user avatar
0 votes
1 answer
372 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 ...
stolenmoment's user avatar
0 votes
0 answers
313 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 ...
Maximilian Ruta's user avatar
0 votes
1 answer
351 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 ...
Dax's user avatar
  • 294
0 votes
1 answer
1k 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 $ ...
Paul Serikov's user avatar
0 votes
0 answers
208 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 ...
Taron's user avatar
  • 131
0 votes
1 answer
419 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]# ...
river's user avatar
  • 101
0 votes
0 answers
401 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 ...
ondrs's user avatar
  • 101
0 votes
0 answers
255 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 ...
Dax's user avatar
  • 294
0 votes
0 answers
96 views

Is it possible to get dynamic lease of IP address from LXD container on Google Compute Engine?

Followed “Ubiquiti Networks UniFi Controller in an Ubuntu LXD Machine Container“ when setting up a new Ubuntu VM on Google Compute Engine. But the container tries to lease an IP address, but nothing ...
rjt's user avatar
  • 584
0 votes
1 answer
729 views

ssh chroot to lxc container

I have a PC with sshd service (192.168.1.1). The PC contains two users user1 and user2. I installed lxc service and configured a container. How can I configure ssh server on 192.168.1.1 that ...
Алексей Мальченко's user avatar
0 votes
0 answers
2k views

LXC can not take IP from DHCP

I am trying to assign an IP to lxc so that it become visible to other machine on network. host-machine:~$ /etc/network/interfaces auto lo iface lo inet loopback auto enp4s0 iface enp4s0 inet manual ...
Nitigya Sharma's user avatar
0 votes
1 answer
616 views

Is it possible to migrate a LXC Container from Ubuntu to libvirt-lxc (SLES)

i'm currently investigating a Scenario, where a LXC Container, which was created on Ubuntu, is supposed to be migrated to a Container on SLES. Is there a way to do that? Are there any Tools one could ...
user3383458's user avatar
0 votes
1 answer
2k views

Zabbix not detecting free swap space in linux container (LXC)

I have an LXC container that has 4GB of swap, most of which is free: # swapon -s Filename Type Size Used Priority none ...
P.Péter's user avatar
  • 639
0 votes
1 answer
827 views

Can't use lxc-console on CentOS 7?

I am using a vagrant to run centos7 now. I created a lxc container which also base centos7 inside this vagrant os. I can start the lxc but can't use lxc-console. Like this: $ sudo lxc-create -n ...
cloud_cloud's user avatar
0 votes
1 answer
331 views

Access KVM Guest from LXC Container (lxcbr0 -> host -> virbr0)

I am trying to access a Windows Guest on KVM from a Linux Guest in an LXC container. Specifically, I only need to be able to access one port (TCP 4949 / munin) from said LXC container. LXC is set up ...
level20peon's user avatar
0 votes
1 answer
988 views

LXC CentOS Container does not work with multiple IP addresses

Hoping someone can help me as i've been pulling out the only hair I have left (which is not much) trying to figure this out. I'm unable to assign multiple IPs to any CentOS 7 container, only the ...
sMyles's user avatar
  • 153
0 votes
1 answer
1k views

Ubuntu 16.04 lxc no tty present and no askpass program specified

I'm using Ubuntu 16.04 and lxc 2.0.7-0ubuntu1~16.04.1, I got this error sudo: no tty present and no askpass program specified in an unprivileged container( Ubuntu 16.04 amd64). This is my /dev ...
dawncold's user avatar
0 votes
0 answers
603 views

Unprivileged lxc container versus AppArmor

I want to run several instances of apache2 (2.4 to be precise) with php 7 (libapache2-mod-php7.0) under debian stretch. Is it more secure to run every instance (with its own config) in its own ...
Thilo's user avatar
  • 263
0 votes
0 answers
171 views

Strange behavior of web stress tests

After some server configuration, i decided to do a stress test using siege. 2 front servers in lxc containers, load balancing nginx - on the host machine. (if need, I add nginx and sysctl configs ...
Kostiuk Aleksandr's user avatar
0 votes
0 answers
821 views

Softether on lxc container with bridged connection

I've configured an lxc container with softether. The lxc container has a bridge connection, so I have a LAN IP with my lxc container. Here's the IPs of my office: Router/DHCP Server: 192.168.1.1 ...
choldi's user avatar
  • 1
0 votes
1 answer
801 views

bridged LXC: container's mac address learned on wrong interface

Ubuntu host has p2p1.17 physical interface attached to bri17 bridge. LXC container FOO has following net config: lxc.network.type = veth lxc.network.link = bri17 lxc.network.hwaddr = 00:16:3e:aa:aa:...
Seweryn Niemiec's user avatar
0 votes
0 answers
893 views

squid in lxc container - don't want to work

I have a default Debian Jessie (amd64) host, minimal install, which runs a linux kernel 4.3.5 form backports repo. I've installed on it an lxc container (template download, selected system is a debian ...
user avatar
0 votes
1 answer
111 views

Does LXC support IPSET6+?

I would like to use a new firewall-extension for PLESK on a Proxmox-LXC. Now the support of the firewall-extension wrote me this message: Does LXC support ipset 6+? If not then I wouldn't ...
MyFault's user avatar
  • 913
0 votes
0 answers
25 views

Controlling Remote Processes from Linux Access Server

I have constructed a HA web cluster in LXD with each major service run within its own container. I.e, 2 x Nginx servers in a container each, 2 x MySQL etc. I would like to add a management container ...
minus8's user avatar
  • 72
0 votes
2 answers
1k views

Deny usage of host consoles/ tty to lxc container

I'm running Ubuntu 12.04.5 LTS (lxc package 0.7.5-3ubuntu69) with a single lxc guest. Everything works fine, except the lxc container seems to use/ mess with the hosts tty devices. As soon as the ...
gucki's user avatar
  • 828
0 votes
1 answer
562 views

Forwarding all traffic coming into eth0 on host to eth1 on LXC container

I'm trying to monitor all the traffic coming into my computer using software running in an LXC container. The software on the LXC expects to be monitoring eth1. Thus, I would like to Create an ...
Isaac Dykeman's user avatar
0 votes
0 answers
83 views

Prevent container from shutting down at console exit

As the manual clearly states, an LXC container automatically destroys (shuts down) itself when you exit the console. However, we're using these machines as servers (sshd, sometimes apache, ...) and I ...
sudoremo's user avatar
  • 101
0 votes
1 answer
33 views

Is it possible to set the backing FS directory of a specific LXC?

So they don't all go to the same folder (e.g. /var/lib/lxc)? This would let the user take advantage of other partitions/disks when the default one becomes full. lxc version: 1.0.6
andresp's user avatar
  • 151
0 votes
0 answers
55 views

less doesn't work in LXC container

I'm experiencing some trouble running less and expect inside LXC container (whether using console or SSH) Expect won't work before I won't add an "interact" anywhere in the script, and less doesn't ...
aqz's user avatar
  • 1
0 votes
1 answer
564 views

LXC container clone has no network and SSH stopped

I was having this networking problem with LXC containers (question and answer here:bridging LXC containers to host network with different IP range) and if I have found a solution, I still have not ...
MrE's user avatar
  • 418
0 votes
0 answers
110 views

Can I create separate bridges for every lxc user?

I have successfully created unprivileged lxc containers for one user on a system. All of those containers use the default lxcbr0 bridge. Now I want to allow other users on the system to create ...
HRJ's user avatar
  • 225
0 votes
1 answer
276 views

LXC not respecting netmask on Ubuntu 14

I have a LXC machine configured with bridging so that it has its own public IP address and is accessible over the internet. Even though it's working, the netmask address set in the VMs /etc/network/...
EthernetCable's user avatar
0 votes
1 answer
438 views

Linux Containers (LXC) : lx-execute and networking

I have a question about LXC Containers. I have some containers, if I lxc-start them, they come up with networking fine, but I want to just be able to run commands against them using lxc-execute, ...
user49411's user avatar
0 votes
0 answers
81 views

How lxc-console implements implementation of the process into container?

Let's assume that we have some host with containers on it. When I type lxc-console I can get access from host's cmd to container's cmd, so I want to know what exactly happens? I mean how lxc-console ...
zerospiel's user avatar
  • 467
0 votes
1 answer
645 views

use ssh-agent to connect to vagrant-lxc machines

I'd like to connect to a vagrant-lxc machine using a ssh-key which is already loaded. To make it a little bit more clear, here's my setup: Load ssh-key in Windows via PuTTy connect to vagrant host ...
user avatar