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
0answers
19 views

Connection Refused between 2 VM containers

On my host Ubuntu 18.04 I am running two lxc containers using default setups. Containers use Ubuntu 18.04 as well. I have an app running on container1 that offers an https based service on https://...
0
votes
1answer
30 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 ...
1
vote
0answers
27 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 ...
0
votes
1answer
42 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
0answers
26 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
1answer
38 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
1answer
105 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
1answer
59 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 ...
0
votes
1answer
145 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
1answer
70 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 ...
0
votes
1answer
750 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
0answers
25 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
0answers
25 views

Error: Failed container creation: Create LXC container: Invalid devices: Detect root disk device: No root device could be found, How to fix this?

azureuser@deletevm:~$ lxc image list +-------+--------------+--------+---------------------------------------------+--------+----------+------------------------------+ | ALIAS | FINGERPRINT | PUBLIC | ...
0
votes
0answers
26 views

Is there any way to copy the ploop openvz7 container to LXC contianer?

I wanted to copy my live openVZ 7 container running on openvz kernel to LXC Container of centos 7.4 of raw file storage. So as per my understanding would do the following, create same config ...
0
votes
1answer
54 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. ...
0
votes
0answers
70 views

Is there a way to create LXD containers using a Dockerfile-like format

Dockerfile is a great way to describe container images. I have a project where I am attempting to easily create sandboxes. LXC looks attractive for this purpose, because it creates "system ...
1
vote
0answers
76 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....
0
votes
0answers
376 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
0answers
315 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
0answers
65 views

Setup DNS64 on Ubuntu

I am trying to set up DNS64 on my Ubuntu 20.04 LXC Container. So far I did set my DNS Servers to the following: 2001:4860:4860::6464 2001:4860:4860::64 That are the Google Public DNS64 Server (https:/...
0
votes
0answers
338 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
1answer
66 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
1answer
252 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 ...
3
votes
2answers
1k 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
0answers
105 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
1answer
210 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 ...
1
vote
0answers
98 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, ...
0
votes
0answers
21 views

how to limit io with LXC in libvier?

I want to know how to limit lxc io using libvirt? I trid iotune or other ways, but it's not working. <iotune> <total_bytes_sec>10000000</total_bytes_sec> <...
0
votes
1answer
26 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
1answer
736 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 ...
0
votes
1answer
314 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
1answer
80 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
1answer
1k 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
0answers
144 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....
0
votes
1answer
403 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
vote
1answer
189 views

How to treat broadcast ip address as a normal IP

I'm new to networking things. I have a sub-network with 16 IPs (ex: 1.2.3.0 to 1.2.3.15). I'm using lxc for each IP for different purposes, but currently the containers with IP 1.2.3.0 and 1.2.3.15 ...
1
vote
0answers
84 views

virt-sandbox error creating an OS container with lxc backend in virt-manager

I am attempting to create an OS container through virt-manager with the lxc backend. virt-sandbox exits without any information on why it fails. Where can I find logs for it? Can I run virt-sandbox ...
3
votes
1answer
363 views

vmalloc allocation failure when scaling LXC containers past 1350 on Proxmox 6.2

I have a server of the following spec: Dual AMD EPYC 7742, 1TB RAM, 8TB SWAP (Round-robin 8xNVME array), 144TB SSD Storage (72 drives over 10 zpools) uname -a Linux host 5.4.44-1-pve #1 SMP PVE 5.4.44-...
0
votes
0answers
87 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 ...
4
votes
1answer
135 views

Reading Samba from Windows 10 has major bottleneck

Keep in mind, both machines used are hosted in a Proxmox Node. SETUPS My Samba setup is installed on Ubuntu inside an LXC. The shares are located on a RAIDZ2 dataset, and are accessible from the LAN....
0
votes
1answer
110 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 ...
0
votes
1answer
47 views

When should we use containerized application on Linux

I would like to create a Linux server but I'm stuck on one question: How to know when I should use Docker or Lxc for a given application instead of installing it natively ? For example, on my server ...
0
votes
1answer
722 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 $ ...
0
votes
1answer
248 views

How to forward traffic from a specific domain from apache2 to LXC container

I am currently running apache2 on my server, but would like to forward http(s) traffic requesting a specific host (ex. lxc.example.com) to an LXC container which can be accessed by a local ip address ...
0
votes
0answers
59 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 ...
1
vote
0answers
69 views

lxc with apparmor - where should be defined profiles

I created /root/example.sh from here at the host, and with aa-genprof denied it. # ./example.sh This is an apparmor example. ./example.sh: line 5: /usr/bin/touch: Permission denied File created ./...
1
vote
2answers
567 views

Dovecot lxc apparmor denied (Buster)

I can't run dovecot in lxc on Buster. I turn off PrivateTmp, but it isn't enough... Still : [ 4850.883141] audit: type=1400 audit(1563803461.322:34): apparmor="DENIED" operation="mount" info="failed ...
1
vote
1answer
2k views

LXC container cannot ping outside

I'm currently creating a new container on a fresh server and I'm facing a network issue. Basically the container cannot reach anything on the Internet i.e. every request timeout. Here are the ...
0
votes
1answer
1k views

Overhead of LXD

Question for server structure here. Is the overhead for LXD small enough to use it for per-process containers? E.G if I have a LAMP stack, media server, game server, etc. is it viable to split each ...
0
votes
1answer
115 views

LXD container restricted to specific user

If I have 2 users with the 'lxd' group, user-1 and user-2. If user-1 starts a container, then I think that user-2 may stop it, destroy it or even run command on that container or connect via ssh to it....

1
2 3 4 5
9