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”.
429
questions
1
vote
1
answer
4k
views
LXC Container on same network as host with internet access
First of all let me tell what network configuration I am trying to achieve:
LXC container should be exposed to my local network
LXC container should have internet access
Here's what I have been able ...
0
votes
0
answers
36
views
Wireguard DNS failure to resolve
It's always DNS...
I'm trying to set up a WireGuard server in an LXC container running on Proxmox. The VPN works in that all the local IP addresses are accessible but I can't get DNS working despite ...
0
votes
0
answers
12
views
Proxmox linux bridge has binded ip which not works 50% of time
I have default proxmox install on Vultr baremetal server
It has bridge like this
root@ed2:~# cat /etc/network/interfaces
auto lo
iface lo inet loopback
iface enp1s0 inet manual
auto vmbr0
iface ...
3
votes
1
answer
6k
views
Add a second disk image to a LXC container in Proxmox 4
My LXC containers in Proxmox 4 have a root filesystem stored on the host as a RAW disk image stored in :
/var/lib/vz/images/<ct_id>/vm-<ct-id>-disk-1.raw
This folder on the host computer ...
0
votes
1
answer
96
views
df reports zfs used space as 128K, not the actual used space
I have a ZFS mirror pool in my Proxmox instance. I am trying to get it to mount to an LXC container read-only (preferably not giving full filesystem access) so I can have Homepage detect the used and ...
0
votes
0
answers
148
views
Apache2 folders redirect to IPs
I have installed Apache/2.4.56 (Debian), a noip URL and severals LXC containers. I need to access to the web apps inside the LXC containers:
example.com/app1 -> LXC container 1 (with Zend2)
example....
0
votes
0
answers
44
views
"lxc-create: lxc-helpers-bullseye: utils.c: get_template_path: 898 No such file or directory - bad template: debian" error on Forgejo actions
I have a Forgejo server and I'm trying to setup the Forgejo runner to execute actions. The "Set up job" script worked before, but I don't know why, it's not working now. Here's all the log:
...
5
votes
1
answer
25k
views
Proxmox. ERROR: Backup of VM failed - CT is locked (backup)
I tried to create backup of the container (LXC) in my Proxmox and I get the error:
INFO: starting new backup job: vzdump 206 --node my_server --mode snapshot --storage backups-stor --remove 0 --...
2
votes
1
answer
394
views
MariaDB regularly freezes every 1-2 days
I'm using MariaDB on Ubuntu 22.04 running on a Proxmox container (LXC). I have two instances for two different services, but since upgrading from 21.10 to 22.04 both instances completely freeze once ...
0
votes
1
answer
211
views
How to route two DHCP interfaces to two different networks
I use LXD and cloud-init to configure an instance with two interfaces which get assigned IP's via DHCP.
eth0 (10.23.44.177/24) which is connected to a bridge on the host machine (lxdbr0) to get out ...
7
votes
2
answers
4k
views
LXC instances do not have IPv4 addresses
I've had limited success in having LXC instances acquire an IPv4 address. It has worked at creation, but if I reboot the host, all addresses are lost.
Host Ubuntu 21.10
Client version: 4.21
Server ...
0
votes
0
answers
167
views
Proxmox LXC Networking with public IP
I have a bare-metal Proxmox server running with two public IPs. The initial configuration has already been done, and the containers are running with a NAT and a private network.
I currently have 2 ...
4
votes
2
answers
12k
views
How to build a custom LXD image from install ISO
I have an operating system installation ISO.
My goal is to run the second operating system on top of the kernel of Ubuntu host running LXD. I cannot find any base image for the said operating system. ...
0
votes
0
answers
61
views
Unprivileged LXC - Cannot set tx queue length
I've installed and configured OpenVPN server on unprivileged LXC.
Everything works fine except for one problem/warning:
Cannot set tx queue length on tun0: Operation not permitted (errno=1)
My tun0 ...
1
vote
2
answers
127
views
LXC container fail to load big iptables rules
I'm facing a strange problem when I try to load a big iptables set of rules on a LXC container (it's working fine on a virtual machine).
The container is running Linux Debian 12 bookworm.
I'm able to ...
1
vote
1
answer
313
views
Debian 12 + LXD/LXC security.idmap.isolated fails
Debian 12.1 (6.1.0-11-amd64) running LXD/LXC and on an unprivileged container setting security.idmap.isolated=true seems to fail to update the owner/group of the container's files.
Here is an example:
...
0
votes
0
answers
124
views
LXC network routing issues
I have an LXC running Ubuntu 22.04 on Proxmox, which I'm trying to move to a new LXC running Debian 12.
Running the exact same LXC configuration somehow results in initial SSH connections to the ...
0
votes
0
answers
153
views
Docker service doesn't start on unprivileged lxc container on boot
I have proxmox with an Ubuntu lxc container where docker is installed and containers running. When I reboot my node, although the lxc container starts on boot, docker services start only when I login ...
0
votes
0
answers
103
views
Error: Storage pool "default" unavailable on this server (losetup command fail)
I can't start my lxc/lxd containers anymore. I get the error : Error: Storage pool "default" unavailable on this server.
I am on debian sid.
The root issue seems to be that the command ...
79
votes
14
answers
230k
views
Docker containers can't resolve DNS on Ubuntu 14.04 Desktop Host
I'm running into a problem with my Docker containers on Ubuntu 14.04 LTS.
Docker worked fine for two days, and then suddenly I lost all network connectivity inside my containers. The error output ...
1
vote
3
answers
6k
views
How to fix ContainerCreating errors while deploying metallb?
For testing purpose, I have installed ubuntu 21 on vmware esxi server.
On that machine, spinned up kubernetes using lxc containers following this repository
LXC is spinned up and running.
adminuser@...
2
votes
3
answers
4k
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.
...
2
votes
3
answers
7k
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 ...
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 ...
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 ...
1
vote
0
answers
1k
views
No Connection with Pivpn wireguard lxc Container on a proxmox host
Describe the issue
I can't connect to anything. Not the internet nor the local network
Expected behavior
I want if my device is connected to the wireguard vpn to surf the web and to access every ...
1
vote
2
answers
3k
views
Debian LXC command not found
I am trying to do things with LXC and I have been able to manage with the lxc-* commands but now I have been forced to copy a file and I'm stuck because I can't get to copy the file, I have read that ...
6
votes
1
answer
10k
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....
37
votes
6
answers
38k
views
Mount Docker container contents in host file system
I want to be able to inspect the contents of a Docker container (read-only). An elegant way of doing this would be to mount the container's contents in a directory. I'm talking about mounting the ...
2
votes
0
answers
1k
views
Chrony doesn´t start in Proxmox container
I have created a container with Debian (Debian 11 template) on top of Proxmox 7.0.8. It is essential that the operating system keep the time synchronized and for this I installed chrony, but it does ...
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/...
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 ...
1
vote
3
answers
3k
views
How do I download and install a regular DPKG package in a cloud-init script?
I'm spinning up lightweight containers on a Linux Host using LXD/LXC.
The sole purpose of these containers is to host "Dotnet & Dotnet core apps"
For a while I've been using Ansible, but ...
17
votes
4
answers
29k
views
No tun device in lxc guest for openvpn
I am trying to set up an openvpn server inside a lxc guest. However, it seams there is no tun device available in the container.
Starting openvpn inside the container gives me this error:
Tue Sep 18 ...
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 --...
0
votes
1
answer
319
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 ...
1
vote
0
answers
216
views
Debian 10 to 11 upgrade LXC unpriv fails to get IP assigned to veth
Just upgraded from Debian 10 to 11 and my unpriviledged container is no longer assigned an IP through the config file.
/var/lib/lxc/DNS/config
# Template used to create this container: /usr/share/lxc/...
4
votes
3
answers
22k
views
How to shrink the disk of a LXC container on Proxmox 4?
I would like to shrink the main disk of a LXC container on a Proxmox VE 4.2, from 30GB to 20GB for instance. Shrinking seems not to be supported yet :
$ pct resize <VMID> rootfs 20G
unable to ...
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 ...
1
vote
2
answers
705
views
How to isolate two containers connected to the same bridge?
I have several LXD containers which are bound to a single bridge (the default lxdbr0 or another one, it does not matter). The host itself has another two interfaces, one ultimately connecting it to ...
4
votes
1
answer
399
views
Configuring Container with bridges and vlans (server only?)
I have two groups of lxc contianers on a server and want to isolate their network traffic for security reasons. I will be using port forwarding so the containers much each have separate IP's. I know I ...
1
vote
0
answers
462
views
Any way to do virtual 802.1x inside Linux?
I'm trying to test out 802.1x in a virtual environment but I haven't been able to find any good resources/guides on how to do that.
The scenario is something like this:
I have a Linux host machine (...
1
vote
0
answers
607
views
Need help regarding NFS shares permissions
I recently switched to using Proxmox as my OS of choice from OMV as the main OS and running a bunch of docker containers on the same host. I installed OMV (OpenMediaVault) inside a VM. I passed ...
1
vote
0
answers
730
views
How to bridge only IPv6 and drop all IPv4 traffic on a Linux bridge with NFT?
Currently, we have a network where apps on host and VMs are connected together and all VMs are behind the NAT as below
||=> Host
ISP Router => enp1s0
|--> ...
2
votes
1
answer
2k
views
Container can't ping github.com but host can
I have the following setup:
[ LXC Container running Debian ] <--> virbr0 <--> [Fedora 24 host]
DNS resolve works for every single domain I've tried to so far from the host and from the ...
2
votes
1
answer
523
views
LXC container network with OVS not forwarding ARP correctly
Using lxc containers, I want to simulate network components individually. For this, I am trying to embed OVS in an lxc container.
Initially, I started with the following setup, which works properly ...
3
votes
2
answers
730
views
How to route host traffic over lxc?
Some info updated:
Last login: Wed Aug 31 18:10:24 2022
root@pve:~# ip route
default via 192.168.132.1 dev vmbr0 proto kernel onlink
192.168.132.0/24 dev vmbr0 proto kernel scope link src 192.168.132....
1
vote
2
answers
3k
views
A few users and subuid/subgid mapping
I cannot get my head around the userns-idmap mapping ie with sub{uid,gid} mapping stuff.
Here's what I have:
# lxc launch images:ubuntu/22.04 c1
# lxc config device add c1 home disk source=/home/user3/...
2
votes
2
answers
2k
views
IPv6 and LXC connectivity
I am struggling a bit on how to equip my LXC configuration with IPv6 currently.
What's the setup?
Ubuntu 16.04 LTS
LXC2-beta from the Ubuntu PPA's (feature IPv6 connectivity)
I use a netcup IPv6 ...
2
votes
1
answer
2k
views
Is the attack surface of Docker vs. LXC/systemd-nspawn significantly different?
One decision point in choosing between and application container solution versus an OS container solution is security. I'm not knowledgeable enough to be able to compare and contrast the two. I assume ...