Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [lxc]

The LXC tag is for questions relating to LinuX Containers and lightweight virtualization capabiliaties, issues, and troubleshooting.

Filter by
Sorted by
Tagged with
0 votes
0 answers
26 views

Ufw allow routed lxc interface not working

I have a problem with ufw. It works if i disable ufw so i know ufw is the problem. The setup is a routed lxc container. I have done sudo ufw route allow in "interface" and ufw allow in "...
user avatar
0 votes
0 answers
14 views

creating new lxc veth bridge on impish

Following this excellent videos on Networing with lxc The tutor uses Ubuntu 15.01 I use 20.04 impish so when he discusses creating bridge in this link I am a bit stuck as impish uses Netplan. I'll ...
user avatar
0 votes
1 answer
27 views

Why does pandoc not generate a table of content in a LXC container?

I have a problem with pandoc not generating a table of content correclty. Here is my workflow: I create a Markdown file with the content of a web page. I version my project with Git. I git push to my ...
user avatar
0 votes
0 answers
36 views

Apparmor: lxc-containers contains no profile

I ran an audit on my ubuntu 18.04 ec2 instance against Ubuntu 18.04 CIS benchmark. The issue was reported as " Ensure all AppArmor Profiles are enforcing" and it was Failed. When I was ...
user avatar
0 votes
0 answers
16 views

Ubuntu VM host with no access to LAN

I have an issue where the VM host is not able to access the internet after adding a bridge for LXD/LXC containers. The LXC containers are assigned LAN IPs. There seems to be two options to fix the ...
user avatar
0 votes
1 answer
67 views

losing snap config

I'm using ubuntu 20.04 WSL2 on my windows 11 machine, every time I open my ubuntu 20.04 WSL2 I realize it lost snap configuration that I made for my lxc, lxd home lab, but the container is still saved,...
user avatar
0 votes
1 answer
28 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: ...
user avatar
  • 1
0 votes
1 answer
36 views

LXC Profile custom changes are being ignored during container instantiation

I need all my containers to automatically upgrade packages, install build-essential and load an ssh key I can use to ssh inside of my container immediately after launching. However even after custom ...
user avatar
  • 121
0 votes
0 answers
19 views

Lxc networking: juju

I am trying to create a lxc bridge network using default setting from juju bootstrap. When I created the bridge network,I noticed it makes use of my org internal subnet. I am having the following ...
user avatar
  • 1
0 votes
0 answers
19 views

how to use existing default.img

I have an unused 222G file /mnt/disc/default.img. It was created a year ago when I was in process of expanding disc space for our container. But I got distracted and never completed the task. Now I ...
user avatar
  • 270
0 votes
0 answers
100 views

other interface connected to linux bridge not receiving multicast packet

lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.3 LTS Release: 20.04 Codename: focal Bridge Info sudo brctl show bridge name bridge id ...
user avatar
9 votes
1 answer
963 views

Snap vs system container

I have seen this: what's the main difference between Docker and Snap? I don't quite see the difference between snap and system containers. VM has a separate Linux kernel and used fixed host ...
user avatar
  • 193
0 votes
0 answers
56 views

Replacing ifupdown's post-up in Ubuntu 20.04 container?

Cheers. I's setting up a sort of VPN gateway/endpoint - an unprivileged LXC container (running under Proxmox VE 7) based on Ubuntu 20.04, with nordvpn and dante-server installed. The latter is set up ...
user avatar
  • 44
0 votes
1 answer
27 views

Issue about Characthers

i use in LXC, Ubuntu 21.04 (GNU/Linux 5.11.22-5-pve x86_64) on Proxmox. I have an issue, because i see weird, some filename. For example: You're next (2011).mp4 But i can see in the shell: You'\''re ...
user avatar
  • 11
0 votes
0 answers
51 views

Why are processors seemingly so active on an Ubuntu 20.04 Server with no appreciable services running in an LXC container?

On a minimal Ubuntu 20.04 server that's just been set up (and with some services disabled), I'm finding that htop is conveying that there's more processor activity going on than what I figure should ...
user avatar
5 votes
2 answers
2k views

ERROR: Unable to fetch GPG key from keyserver

I tried to launch lxc container. But when I give sudo lxc-create -t download ubuntu -n web1 it shows this error ERROR: Unable to fetch GPG key from keyserver How to solve the issue?
user avatar
0 votes
1 answer
53 views

login and pwd requested to use terminal inside a VM created by LXD

I'm pretty new to Linux Containers. I followed these indications: https://linuxcontainers.org/lxd/getting-started-cli/#ubuntu to install and use LXD in Ubuntu 20.04 (base) raphy@pc:~$ snap install lxd ...
user avatar
  • 121
0 votes
0 answers
96 views

lxc-create fails while configuring base packages

I want to create a 32-bit groovy lxc. Steps I did: sudo apt-get install lxc lxctl lxc-templates sudo lxc-create -t ubuntu -n my32bitbox -- --bindhome $LOGNAME -a i386 -r groovy ... I: Configuring ...
user avatar
1 vote
0 answers
38 views

Error creating i386 lxc container on hirsute - does this work?

Attempting to create an i386 LXC Container on my amd64 host using: sudo lxc-create -t ubuntu -n ubuntu32 -- --bindhome $LOGNAME -a i386 Results in: dpkg: error processing package console-setup-linux (-...
user avatar
  • 111
1 vote
0 answers
566 views

unable to start a LXC container - lxc-start: lxccontainer.c: wait_on_daemonized_start: 804 Received container state "STOPPING" instead of "RUNNING"

Im very much new to LXC and LXD concepts. I was experimenting with LXC's by creating a containers and destroying them. after some experiments, I tried to create a container to implement by task, was ...
user avatar
  • 11
0 votes
0 answers
46 views

How to find lxc container ip address?

I have created a lxc ubuntu container called newcon inside my Ubuntu 18.04 PC and I see that it is running: lxc-start -d -n newcon lxc-start: newcon: tools/lxc_start.c: main: 280 Container is already ...
user avatar
  • 526
0 votes
2 answers
56 views

LXD command is executed on host instead of container

I am using this command: lxc exec container -- sh -c 'sqlcmd -S localhost -U SA -P <..> -i <...>', but it will get executed on the host instead of the container. But when I lxc shell ...
user avatar
  • 141
0 votes
1 answer
272 views

LXC dnsmasq port 53 in use but I would like to map to container

I am trying to have an authoritative only Bind server inside a LXC container but when I went to forward the port 53 to it, I received an error saying the port is already in use. (listen=tcp:0.0.0.0:53 ...
user avatar
  • 11
1 vote
1 answer
438 views

Convert Ubuntu Server 20.04 LTS iso to lxc container or download somewhere

Where can I find LXC version of Ubuntu 20.04 LTS? I can find only .iso version at: https://ubuntu.com/download/server Or how can I convert .iso image it to LXC?
user avatar
  • 111
0 votes
0 answers
94 views

Host has single interface with 2 addresses, iptables SNAT for LXC containers to specific destination is not working

I need your help with iptables on Ubuntu 18.04, kernel 4.15.0-112-generic : I have hosts that run a bunch of LXC containers, not using bridging over the hosts' LAN interface lan1, but each LXC ...
user avatar
1 vote
0 answers
352 views

Run docker container inside LXC with GPU

I have a GPU application docker image. Now I want to run that docker container with GPU support inside an LXC container but I am unable to do so. The way I run is this: lxc launch ubuntu plex -c ...
user avatar
  • 111
1 vote
0 answers
184 views

Getting an error running lxc after upgrade to 20.04

NOTE: This error seems to be only cosmetic, and the commands work just fine despite the error. After upgrading from 18.04 to 20.04, running lxc as a non-root user gives the following error: $ lxc ...
user avatar
0 votes
0 answers
18 views

ubuntu main machine unaccessable via any network service, while virtual lxc machines are accessable

First I would like to apologize for my writing, English is my second language and I am far from the best for giving a proper description. I run a lenovo laptop as a server, since it is what I got to ...
user avatar
0 votes
1 answer
589 views

microk8s on LXC: Service snap.microk8s.daemon-proxy is not running

I installed microk8s in a LXD container snap install microk8s --classic When I inspect the instance it shows that snap.microk8s.daemon-proxy is not running root@mk8s1:~# microk8s inspect Inspecting ...
user avatar
  • 200
5 votes
1 answer
2k views

LXC/LXD as Debian package

Installing LXD from APT installs it as a Snap package and while LXC programs are installed from a Debian package, running them tells me I need to install the LXD snap. Is there anyway to install LXC ...
user avatar
  • 1,568
1 vote
2 answers
637 views

What does stateful mean

I can snapshot a LXC on a ZFS Pool with or without the Option "Stateful". I can not find any Info about it. What does it mean?
user avatar
1 vote
0 answers
111 views

About launching LXC Containers and their IP assignment

i am playing around with LXD and their Containers. I configured my LXD init like this: ... Would you like to create a new local network bridge? (yes/no) [default=yes]: no Would you like to configure ...
user avatar
0 votes
1 answer
494 views

Auditd on Ubuntu 18.04 Container

i want to ask something about auditd in container, here we go recently i try install auditd in my server (outside container) and it worked i follow this steps (https://documentation.wazuh.com/3.13/...
user avatar
0 votes
0 answers
267 views

Performance using docker inside lxc

Is it good to have docker container inside lxc? How about running php, mysql application performance using docker container inside lxc for this when compare to running this applications as service in ...
user avatar
1 vote
1 answer
100 views

incron job does not write to temp directory

I have a very weird problem that I might not have cooked down correctly, but I tried a minimal example: In a 20.04 lxd container on 20.04, I am trying to run a job triggered by incron. For my minimal ...
user avatar
  • 209
1 vote
1 answer
373 views

Lost LXD/LXC with most recent 20.04 upgrade

Ubuntu 20.04 update/upgrade broke lxd/lxc containers History: Ubuntu 16.04 Server running LXD upgraded to Ubuntu 18.04 and subsequently Ubuntu 20.04. All LXC containers worked fine until yesterdays “...
user avatar
3 votes
3 answers
14k views

Installing YUM in Ubuntu 20.04 to run CentOS LXC Containers

I was able to install Yum in Ubuntu 18.04 but I can't install it anymore in Ubuntu 20.04. So, when I try to run a CentOS LXC container in my Ubuntu I get an error like this one: # lxc-create -n ...
user avatar
1 vote
0 answers
332 views

LXC container ubuntu 18.04 apt update problem

I use LXC. I have not been able to update for the last 1 week. The errors are as follows: domain name resolution, Ping etc. It works. root@nginx2:~# ping -c 2 google.com PING google.com (172.217.18....
user avatar
0 votes
1 answer
62 views

SNAPD automatic updates and sunning servers in LXC

Recently Ubuntu moved LXC into snaps which raises a concern with snapd updates. Those updates can not be configured to be manual, they run on schedule and can't be turned off. As I am thinking to have ...
user avatar
1 vote
1 answer
978 views

Performance overhead of LXD running as a SNAP

LXC/LXD used to be implemented as native packages until 18.04. Since 18.04 LXC containers are run as snaps. I wonder if this imposes a runtime overhead. This would negate the idea of having light-...
user avatar
6 votes
1 answer
9k views

Can't remove core18 snap

I am cleaning up my fresh Ubuntu 20.04 install and I can't seem to remove core18 snap. $ snap list Name Version Rev Tracking Publisher Notes core18 20200427 1754 latest/stable ...
user avatar
0 votes
1 answer
733 views

Setting Static IP and NAT trafic to LXC container

This is my first question in here so please have mercy of structured badly compared to the usual suspects. :-) I would like to be able to receive real connecting client IP in a LXC container over TCP....
user avatar
0 votes
0 answers
473 views

Cannot delete LXC container with full volume nor the volume itself

I've been toying around with LXC/LXD lately and ended up with a couple of stopped containers: ❯ lxc list +------------------------------------+---------+------+------+-----------+-----------+ | ...
user avatar
7 votes
1 answer
10k views

system does not fully support snapd: cannot mount squashfs image using "squashfs - mount failed

I'm attempting to install PowerShell on my Ubuntu instance using snap, but it generates an error: # sudo snap install powershell --classic error: system does not fully support snapd: cannot mount ...
user avatar
  • 173
0 votes
0 answers
225 views

Trying to extract files from ZFS image created by LXC

Alright, so on the beginning I’ll say that I’m not a master at Linux and that it is my first post here. If you’ll need me to do anything, I’ll do my best, but I can’t promise I’ll be successful. Also ...
user avatar
0 votes
0 answers
838 views

Getting Proxmox Virtual Machines with Networking working on So you Start (OVH) Dedicated Server

I just recently got a So you Start.com dedicated server. I want to set up some virtual machines in it and some LXC containers. I have created a Ubuntu 20.04 virtual machine and have been trying to get ...
user avatar
1 vote
1 answer
391 views

Ubuntu server: Cannot setup dummy driver alsa (LXC container) // modprobe issue [duplicate]

I'm trying to setup alsa on my ubuntu server, but it seems that the drivers are not installed & I don't know how to solve this problem. I just wanna setup a dummy soundcard. But I really don't ...
user avatar
0 votes
2 answers
548 views

iptables rules for lxd container via ssh

Good day. I use ubuntu 18 and want connect to my container via ssh. This is my container cont | RUNNING | 10.78.195.190 (eth0) | fd42:4be2:f986:212a:216:3eff:fee4:582 (eth0) | PERSISTENT | 0 ...
user avatar
0 votes
1 answer
641 views

LXD proxy for DNS

I set up a bind server in a LXD instance and I try to forward all DNS queries from host to this instance. I tried this: sudo lxc config device add bind dnsdevicetcp proxy listen=tcp:0.0.0.0:53 ...
user avatar
1 vote
2 answers
1k views

error on install Community Server/ Document server onlyoffice

when try to install only office server based on there Installing Community Server for Debian, Ubuntu and derivatives so step by step until the latest command sudo apt-get install onlyoffice-...
user avatar
  • 199

1
2 3 4 5
9