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
0 answers
41 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 ...
Arthur Mitchell's user avatar
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 ...
arheops's user avatar
  • 708
0 votes
1 answer
99 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 ...
Drakonas's user avatar
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....
Lethal's user avatar
  • 1
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: ...
Mateu Saiós's user avatar
0 votes
1 answer
212 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 ...
Ender's user avatar
  • 103
0 votes
0 answers
169 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 ...
RobGTX's user avatar
  • 1
0 votes
0 answers
62 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 ...
Knowledge's user avatar
1 vote
2 answers
128 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 ...
Julien's user avatar
  • 144
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 ...
Subbeh's user avatar
  • 101
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: ...
TCB13's user avatar
  • 1,238
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 ...
Vikram B S's user avatar
0 votes
0 answers
106 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 ...
m-ar-c's user avatar
  • 1
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
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 ...
mxwmnn's user avatar
  • 11
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
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 ...
Francisco's user avatar
  • 141
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
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/...
user avatar
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 ...
Marco Fincato's user avatar
1 vote
0 answers
467 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 (...
A. Trevelyan's user avatar
1 vote
0 answers
608 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 ...
apoorv569's user avatar
2 votes
1 answer
525 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 ...
Friwi's user avatar
  • 121
3 votes
2 answers
735 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....
Ken Kin's user avatar
  • 31
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/...
dogman's user avatar
  • 31
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
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 |--> ...
Thor-x86_128'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
1 answer
908 views

Proxmox container moved to the wrong machine and now it is trapped there

I have a HA proxmox cluster with three nodes. I have replication between two nodes. Each of those two nodes have a ZFS pool that is used for replication. I have replication rules setup between those ...
Danielo515's user avatar
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
8 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 ...
Terry G Lorber's user avatar
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
1 answer
2k views

Can I restore a Vzdump tar archive to an LXD/LXC container

I have a number of "tar" files created from an old proxmox 6 server, using the vzdump tool. The person that originally created them has left the company, and the company has changed it's ...
shawty's user avatar
  • 303
2 votes
0 answers
493 views

How to move a linux container to a remote server running proxmox 7.0?

I am currently in the process of migrating a server running several linux containers to a server managed by proxmox. In the past when i moved a linux container to a different host i just used the LXD ...
harald's user avatar
  • 403
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 ...
shawty's user avatar
  • 303
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
1 vote
1 answer
240 views

LXD on ZFS on LVM on H/W RAID 10

I have a Dell R540 with PERC H730P running RAID 10 over 12 DISK to the tune of ~22TB. I want to run various applications/services in LXD containers. I understand that ZFS is preferred for LXC storage ...
simonw's user avatar
  • 35
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 ...
Ajinkya Bawaskar's user avatar
1 vote
1 answer
1k views

What is an appropriate backup strategy for LXD with BTRFS storage backends

I'm about to re-configure my home server from scratch and am wondering what would be the best strategy to backup my LXD containers. Meanwhile I am running Ubuntu 20.04 LTS and have some services ...
sandman85's user avatar
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 ...
ICIM's user avatar
  • 162
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
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@...
uday's user avatar
  • 392
0 votes
1 answer
4k views

Can't get LCX bridge to work

I can't get a network bridge under (a up to date) arch-linux as a host to work: I am aware that the lxc default is read on creation time of the container (I created a new container after changing the ...
Quonux's user avatar
  • 111
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
130 views

LXD Container IPv4 Interface Management

Ubuntu 18.04.4 lxd 3.0.3 lxc 3.0.3 I have had several containers running without issue for a long time. Today I was making changes to my network and one of the containers picked up a DHCP address. ...
user1801810's user avatar
1 vote
0 answers
204 views

Why does this systemd service not run at the right time (loading encryption keys from a network drive which are required for lxc containers)?

In Debian with systemd, I use zfs and lxc. My zfs datasets are encrypted and their keys can be loaded from a network host via my /etc/zfs/zfs-load-key.sh script. My LXC containers are started by lxc....
divB's user avatar
  • 570
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
1 vote
0 answers
1k views

LXC No space left on device when trying to delete instance

I tried to follow the the LXC tutorial https://www.digitalocean.com/community/tutorials/how-to-set-up-and-use-lxd-on-ubuntu-16-04 When running command lxd init I used all defaults except 1GB as disk ...
Thang Tran'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

1
2 3 4 5
9