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”.
433 questions
0
votes
1
answer
78
views
LXC Virtual Machine without internet access
I am trying out my hands with the LXC for the first time. I need a 22.04 VM that can have access to the internet. My host is a fresh installation of Ubuntu Server 24.04. My local physical LAN is eno33....
0
votes
2
answers
32
views
ansible task to use lxc exec to extract a tarball
I am trying to push a static website to an LXD Container. I could use lxc file push for every file, but I thought I'd push a single archive and then extract it. I can run tar -xvf /home/ubuntu/public....
0
votes
0
answers
31
views
LXD Networking, LXC Containers in a different subnet don't reply
I have a network 10.0.0.0/24. In this network I have the following machines that matter for the question:
10.0.0.207 - my Ubuntu Server LXD Host
10.0.0.215 - my Firewall, and the default gateway for ...
1
vote
0
answers
93
views
Proxmox nfs: server not responding; timed out
I’ve set up a Magento2 test environment using several LXC containers. The central component of this environment is a privileged LXC container that acts as an NFS storage server, providing images and ...
0
votes
1
answer
227
views
Share drive with Windows 11 inside LXC
I am installing a Windows VM using LXD using these instructions: https://ubuntu.com/tutorials/how-to-install-a-windows-11-vm-using-lxd#1-overview. They worked fine for me so far.
However, I fail to ...
0
votes
1
answer
204
views
How to setup Isolated LXD Container with Internet Access Only
I have multiple Ubuntu LXD containers for various clients running on an Ubuntu LXD host. For the LXD containers to do software installs from the internet I have attached a bridge. Required ports from ...
0
votes
0
answers
34
views
I am Attempting to local port forward a website on a LXC to view on host web browser but getting "Connection was reset"
I have a CodeIgniter app that is hosted on a LXC container at IP 10.0.3.200 with user name ci
I use the following local port forwarding method in separate terminal:
ssh -L 8080:127.0.0.1:8080 [email protected]....
0
votes
0
answers
378
views
LXC (Proxmox) container with slow web server performance
I'm running Proxmox 8.2.4 on Debian 12 on a dual Xeon 4309Y (128 GB RAM/1 TB SSD) system and experiencing extremely bad web performance on my first container when I access that container externally.
...
1
vote
1
answer
337
views
Trying to resolve errors while configuring NFS Clients (as normal user and root)
When I try to manually mount with this command:
mount -t nfs <server-ip>:/srv/nfs4/share1 /mnt/data
as non-root user, I am getting the error
mount.nfs: failed to apply fstab options
When I try ...
1
vote
1
answer
36
views
Linux host dropping every second ping forwarded from LXC container
I have an LXC container. I want to route all its traffic via a different interface (tap0) than the host.
Host interfaces:
tap0 172.13.0.3, gateway 172.13.0.1
lxcbr0 192.168.12.104 with the container'...
0
votes
0
answers
2k
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
40
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 ...
0
votes
1
answer
421
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
155
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
1
answer
519
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 ...
2
votes
3
answers
234
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
402
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
237
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 ...
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 ...
0
votes
1
answer
624
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 ...
2
votes
1
answer
2k
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
0
answers
76
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
407
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
235
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/...
2
votes
1
answer
497
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 ...
1
vote
0
answers
672
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
673
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 ...
2
votes
1
answer
622
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
887
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
4k
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/...
0
votes
0
answers
269
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 ...
1
vote
0
answers
849
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
|--> ...
0
votes
0
answers
128
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 "...
0
votes
1
answer
1k
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 ...
0
votes
0
answers
204
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 ...
9
votes
2
answers
5k
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
1
answer
102
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 ...
1
vote
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 ...
2
votes
0
answers
532
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 ...
2
votes
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 ...
0
votes
0
answers
52
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 ...
1
vote
1
answer
273
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 ...
1
vote
1
answer
5k
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 ...
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 ...
1
vote
2
answers
4k
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 ...
0
votes
1
answer
428
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 ...
1
vote
3
answers
7k
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@...
0
votes
1
answer
5k
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 ...
0
votes
0
answers
116
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 ...
0
votes
1
answer
157
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.
...