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
-1
votes
0answers
10 views

Migrate container to another host, ZFS mount error

I moved my lxc container OpenHAB from one host to another. Host 1: Running Ubuntu, ZFS formatted Host 2: Running Ubuntu, Not ZFS formatted, but using ZFS for lxd. After migrating as described here ...
0
votes
2answers
34 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 ...
0
votes
1answer
41 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 ...
0
votes
1answer
52 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?
0
votes
0answers
44 views

LXC Ubuntu 18.04 networking service not working after restart container

Week ago i configure ubuntu 18.04 in proxmox lxc, after reboot CT network interfaces not starting. In systemd: systemctl status networking ● networking.service - Raise network interfaces Loaded: ...
0
votes
0answers
31 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 ...
1
vote
0answers
255 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 ...
1
vote
0answers
97 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 ...
0
votes
0answers
100 views

How to launch XServer in Linux Containers(LXC)

I have an lxc container. How do I run a graphical shell in it? I spent about three weeks and did not achieve results, using a lot of different methods. Is this even possible?
0
votes
0answers
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 ...
0
votes
0answers
26 views

Setting Charmed-Kubernetes on Ubuntu

Lookig to see if there is a working compatablility of the following which will work together: 1.Juju 2.Lxc 3.Charmed-kubernetes 4.Ubunbu That all work together follow the local install guidelines ?
0
votes
0answers
133 views

Setup of Charmed Kubernetes

Having issues with deploying juju charmed-kubernetes folling the instructions via this link https://ubuntu.com/kubernetes/docs/install-local However, its stuck on the kubernets-master waiting on 3 ...
0
votes
0answers
369 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 ...
0
votes
0answers
43 views

How to link the tap interface with the LXC bridge?

Hello All and thank you for allowing me to ask this question. I am running an unprivileged custom LXC container that is running on top of a Ubuntu host, that at the same time is running on Virtual Box....
1
vote
1answer
528 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 ...
0
votes
0answers
81 views

Trying to mount Glusterfs in LXD/LXC containters

I am trying to mount Glusterfs (distributed file system) in LXD/LXC. I am following this tutorial: https://www.cyberciti.biz/faq/how-to-mount-glusterfs-volumes-inside-lxclxd-linux-containers/ # echo Y ...
0
votes
2answers
225 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?
1
vote
0answers
37 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 ...
0
votes
1answer
197 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/...
0
votes
0answers
163 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 ...
0
votes
1answer
40 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 ...
0
votes
0answers
73 views

Converge storage for LXC containers between LXD and virt-manager?

Problem: Many different systems for containers and VMs - some very similar, some even using the same backend, but storage all in different places LXC w/ LXD = /var/lib/lxd/storage-pools LXC w/ virt-...
1
vote
1answer
261 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 “...
0
votes
0answers
62 views

Ubuntu 20.04 Raspberry Pi 4 (model B) , problem install pip3 [duplicate]

I have a raspberry pi 4 and i have installed Ubuntu 20.04 LTS. When i am trying to install pip3 i am getting the following message : Reading package lists... Done Building dependency tree Reading ...
2
votes
3answers
10k 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 ...
1
vote
0answers
194 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....
0
votes
1answer
33 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 ...
1
vote
1answer
608 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-...
3
votes
1answer
4k 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 ...
0
votes
1answer
472 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....
0
votes
0answers
284 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 +------------------------------------+---------+------+------+-----------+-----------+ | ...
4
votes
1answer
5k 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 ...
0
votes
0answers
120 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 ...
0
votes
0answers
501 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 ...
1
vote
1answer
278 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 ...
0
votes
2answers
257 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 ...
0
votes
1answer
408 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 ...
1
vote
2answers
805 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-...
0
votes
2answers
238 views

Delete a directory inside a container

# lxc exec mycontainer rm -r /home/myuser/mydir gives me Error: unknown shorthand flag: 'r' in -r # lxc exec mycontainer "bash -c 'rm /home/myuser/mydir -r'" just silently exits without removing ...
0
votes
2answers
895 views

LXC change default non-root user

I am running an lxc container for an app, but need to change the default user to the same as my host system. I setup the container following these instructions: https://blog.simos.info/how-to-run-...
1
vote
1answer
336 views

Upgrade to 19.10, LXD will no longer run

I recently upgraded to 19.10. LXD will no longer run, I get this error: Error: Get http://unix.socket/1.0: dial unix /var/snap/lxd/common/lxd/unix.socket: connect: connection refused I've checked ...
1
vote
0answers
287 views

Where can I find config file for Ubuntu 18.04 LXC container?

I am trying to test LXC container and created Ubuntu 18.04 container. To access these container from Host Network machines I created new bridged interface in host /etc/network/interfaces and wanted to ...
1
vote
0answers
52 views

Network unreachable after adding new bridged interface

I am trying to add new bridged interface in /etc/network/interfaces with following settings on my Ubuntu 18.04 VM while testing LXC containers. auto br0 iface br0 inet dhcp bridge_ports eth0 ...
0
votes
2answers
466 views

LXC Container not pining from host or network

I recently started looking at LXC container for hosting tunnel service (IPv6 over IPv4 and IPv6 over IPv6). On my Window 10 machine I have Ubuntu 18.04 VM and I set up a Ubuntu 18.04 LXC Container ...
3
votes
0answers
12k views

How to fix “docker: Error response from daemon: cgroups: cannot find cgroup mount destination: unknown.” on `docker run`?

I have Ubuntu 16.04.6 LTS installed. Previously I have installed Docker from its repository as docker.io package. Yesterday I have installed LXC with LXD and I suppose that they have some problem ...
0
votes
1answer
494 views

How to configure lxc container to have two ethernet devices - macvlan and bridge?

I'm having trouble with network configuration for lxc containers. I want multiple containers located on one machine to communicate via macvlan with outside world, but also have local bridge to ...
2
votes
1answer
120 views

What is the most efficient way for creating hundreds of containers for single apps; LXC or Docker?

I do have a dedicated server and I need to create ~200 containers inside it. Each container will only run a single application and I'm looking for the most efficient way for this in terms of resource ...
0
votes
1answer
513 views

Why isn't lxd init working on new install of Ubuntu 18.04?

I have a VPS at SSDNodes. I reinstalled Ubuntu 18.04 on it, ran update, upgrade, autoremove and clean. I then tried to configure lxd using the lxd init. The cursor moved to the next line and did ...
1
vote
1answer
90 views

LXC - two bridges

I'm trying to create two different bridges to use with LXC. I have the following configuration: /etc/lxc/default.conf: lxc.net.0.type = veth lxc.net.0.link = lxcbr0 lxc.net.0.flags = up lxc.net.0....
1
vote
0answers
351 views

Bridged network for LXC - Ubuntu 18.04

I'd like to create a bridged network for three containers, with static IP addresses and connected to the internet through the ethernet card of the host machine. For example, with the bridge named ...

1
2 3 4 5
9