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

LXD Routed Nic not getting internet access

I have an address of 10.1.1.24 which is my IP to the internet. I have made a profile as follows: config: user.network-config: | version: 2 ethernets: eth0: addresses: ...
  • 115
2 votes
1 answer
54 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 ...
  • 121
3 votes
2 answers
125 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....
  • 31
0 votes
2 answers
346 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/...
  • 11
0 votes
0 answers
62 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 ...
0 votes
0 answers
228 views

Setting up Kubernetes on LXC: Kubeadm init times out, cannot connect to API server

Situation: I am trying to create a Kubernetes cluster running on Linux containers, however Kubeadm init fails by timing out (four minutes pass). I have done the same on Ubuntu VMs before with no issue,...
  • 101
0 votes
0 answers
25 views

Network separation/isolation - is this setup sufficient?

I want to separate two networks (A+B) but still be able to use the internet (terminal based access is sufficient) of network A from a device (PC running arch Linux, let's call it "host pc") ...
1 vote
0 answers
312 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
55 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 "...
  • 101
0 votes
1 answer
339 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
32 views

LXD export backup failed. Snapshot error

I tried to make lxc backup and get's error that failes on some snapshot for 2 years ago. run test command lxc export backup /tank/local/lxd/backups-temp/backup_test.tar.gz -v Error message: Error: ...
  • 19
0 votes
0 answers
85 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 ...
  • 151
1 vote
1 answer
961 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
49 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 ...
0 votes
0 answers
239 views

LXD vs libvirt LXC driver

Are LXD and libvirt with LXC driver doing the exact same thing (just provision LXC containers)? If so, is there any advantage in using one over the other?
0 votes
0 answers
295 views

LXD and Multipass - will LXD 5.0 LTS support or use multipass

I am thinking about using multiple microk8s nodes on MacOs M1. If I am using LXD I can have multiple VMs running microk8s in a virtuel cluster simulating one-n k8s nodes. LXD looks very good for ...
  • 167
0 votes
0 answers
337 views

Redis-server does not work properly in debian bullseye lxc

I have a server with debian 10.11 (buster) and lxc (from debian repos, 1:3.1.0+really3.0.3-8) installed. When I create a new lxc container (bullseye) (using lxc-create -t download -n redis-container --...
0 votes
1 answer
778 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 ...
  • 293
1 vote
0 answers
223 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 ...
  • 393
1 vote
2 answers
1k 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 ...
  • 293
0 votes
0 answers
38 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 ...
  • 101
1 vote
1 answer
160 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 ...
  • 13
1 vote
1 answer
2k 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
1 answer
534 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
1 answer
1k 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 ...
  • 141
0 votes
1 answer
186 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 ...
  • 31
1 vote
3 answers
3k 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@...
  • 287
0 votes
1 answer
2k 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 ...
  • 111
0 votes
0 answers
33 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
65 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. ...
1 vote
0 answers
131 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....
  • 548
0 votes
0 answers
1k 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/...
1 vote
0 answers
704 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 ...
0 votes
0 answers
774 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/...
1 vote
1 answer
153 views

cannot shh into lxc container even after changing config file

I am using Ubuntu 18.04. I have created an lxc-container called ctn and can log into it by using lxc-attach, ending up as the root user. When running the following with the ip shown by running lxc-ls: ...
0 votes
1 answer
407 views

Does LXC support XFS filesystem?

I am working on my local system and I want to run both docker and LXC containers. Docker provides storage options that only works with XFS to limit the storage volume inside containers. But that ...
5 votes
2 answers
4k views

No network connectivity in the LXC container set up in the "routed" mode

I'm experimenting with lxc/lxd in Vagrant, but i'm quite new to it. I managed to create running container, but I cannot ping anything (including 8.8.8.8) from inside of it. I can ping its IP from my ...
1 vote
0 answers
328 views

How to delete all snapshots in lxd cluster?

I am trying to find a fast method, how to delete all snapshots in lxd cluster. The only way I see is using lxc delete container/snap for each snap. Am I missing something? Thanks
0 votes
1 answer
990 views

Creating an Alpine container in LXC on top of Ubuntu

I've got a new server spun up with Ubuntu Server and LXC installed for apt. I've been reading the docs and trying to understand how to import images/templates. I'm having a hard time understanding how ...
  • 133
1 vote
0 answers
288 views

LXC routing container subnet routing

I have a CentOS 7 box with 2 NICs - one ethernet port, and one wireless. I would like to create an lxc container that acts as a router that meets the following requirements: When running hostapd, ...
  • 11
0 votes
1 answer
40 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 ...
1 vote
1 answer
1k 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 ...
  • 1,096
0 votes
1 answer
507 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
1 answer
171 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
2 answers
2k 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
0 answers
193 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....
  • 11
0 votes
1 answer
2k 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
2 3 4 5
9