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
1 answer
1k 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 ...
onknows's user avatar
  • 350
6 votes
1 answer
3k 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 ...
Melab's user avatar
  • 1,678
1 vote
2 answers
1k 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?
k1ngstire's user avatar
1 vote
0 answers
299 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 ...
k1ngstire's user avatar
0 votes
1 answer
1k 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/...
for gag's user avatar
0 votes
0 answers
396 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 ...
Itz-easy's user avatar
1 vote
1 answer
301 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 ...
mcandril's user avatar
  • 241
2 votes
1 answer
499 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 “...
cojojeff's user avatar
4 votes
3 answers
17k 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 ...
jicarretero's user avatar
1 vote
0 answers
564 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....
ubuntu_Gk's user avatar
0 votes
1 answer
96 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 ...
oᴉɹǝɥɔ's user avatar
2 votes
1 answer
1k 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-...
oᴉɹǝɥɔ's user avatar
13 votes
1 answer
19k 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 ...
oᴉɹǝɥɔ's user avatar
0 votes
1 answer
1k 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....
Kevin Kruse's user avatar
0 votes
0 answers
792 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 +------------------------------------+---------+------+------+-----------+-----------+ | ...
Andreas Baumgart's user avatar
11 votes
1 answer
19k 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 ...
craig's user avatar
  • 213
0 votes
0 answers
370 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 ...
BitCrack's user avatar
0 votes
0 answers
1k 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 ...
ComputerLocus's user avatar
1 vote
1 answer
584 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 ...
Sofiane Hdm's user avatar
0 votes
2 answers
1k 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 ...
Юрий Кот's user avatar
0 votes
1 answer
870 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 ...
Danial Behzadi's user avatar
1 vote
3 answers
2k 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-...
Zaman Oof's user avatar
  • 229
0 votes
2 answers
1k 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 ...
exebook's user avatar
  • 369
1 vote
2 answers
3k 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-...
mace's user avatar
  • 379
1 vote
1 answer
400 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 ...
user47227's user avatar
  • 531
1 vote
0 answers
621 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 ...
Girish's user avatar
  • 121
1 vote
0 answers
187 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 ...
Girish's user avatar
  • 121
0 votes
2 answers
2k 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 ...
Girish's user avatar
  • 121
7 votes
2 answers
34k 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 ...
N0rbert's user avatar
  • 100k
0 votes
1 answer
857 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 ...
user1598527's user avatar
2 votes
1 answer
280 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 ...
Marry Jane's user avatar
0 votes
1 answer
875 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 ...
Randall Paul Allen's user avatar
1 vote
1 answer
308 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....
patriciagcr's user avatar
1 vote
0 answers
563 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 ...
Andrea Mori's user avatar
0 votes
1 answer
917 views

Is it possible to run a desktop GUI VM Container on linux with any linux image

Looking for way to create virtual gui desktop container inside container e.g docker or LXD whichever is better
vinkvii's user avatar
0 votes
0 answers
848 views

I don't have a /etc/network/interfaces file at all

I have a network card with 4 Ethernet ports. I am trying to use 2 of them, 1 for the main system and one for a LXC container. When I look up tutorials on how to dedicate eth1 interface to the ...
Jake H.'s user avatar
0 votes
1 answer
1k views

LXC/LXD containers in Ubuntu 18.04 network issues

I've got an Ubuntu 18.04 system setup as a VPS host to start migrating containers from an EOL 14.04 VPS host. I've got a bridge (br0) configured to allow the containers to have IPs on the same vlan as ...
Ben Beige's user avatar
0 votes
0 answers
1k views

Ubuntu Touch (UBports) and Android support for LXC/LXD containers (for running Ubuntu): current state

I am trying to run a web-server on my Android device (several available models, ARM or x86 hardware) inside a container (lxc / lxd). Looking for the easiest and safest way to do it. I was thinking ...
Dmitry Somov's user avatar
6 votes
1 answer
5k views

How to install ubuntu server for lxc on a smartphone (ARM or x86, bare metal)?

As of May 2019 what are the options (if any) to install Ubuntu server on a smartphone device? I don't need much of the smartphone functionality, I don't need desktop and touchscreen blows and ...
Dmitry Somov's user avatar
7 votes
3 answers
3k views

Is it possible to run some application in the chroot or container but allow DBus interaction with host system?

I need to run old version of application in chroot (or container) and allow DBus interaction with host system. I can't install this application on host system because of serious dependency problems. ...
N0rbert's user avatar
  • 100k
0 votes
0 answers
173 views

Opera doesn't start in LXC container: "Out of memory"

I'm trying to run Opera browser in a LXC container (logged in via ssh -X), but it doesn't work: andrea@ue-02:~$ opera [378:388:0507/165937.131977:FATAL:memory.cc(22)] Out of memory. size=131072 ...
Andrea Mori's user avatar
4 votes
0 answers
2k views

DNS resolution in LXC container

I'm using srsLTE-emane (https://github.com/adjacentlink/srsLTE-emane), an open source software that emulates LTE Network, on Ubuntu 18.04.2, and I have a problem with DNS resolution in LXC container. ...
Andrea Mori's user avatar
2 votes
2 answers
1k views

LXC control script launched via crontab doesn't work properly, but when used from cmd line is OK

I have a script that uses named pipes to control containers. The script monitors the named pipe for commands and executes whatever is fed into its input. Script must run as the user that owns the ...
hrs's user avatar
  • 131
0 votes
1 answer
722 views

Expanding existing ZFS loop device

I have several LXC containers on my Ubuntu 18.04 machine. I have a container called "cloud" which I want to expand its storage, how can I do this without reinstalling? I am using ZFS for this. user@...
Espresso Machine's user avatar
1 vote
0 answers
264 views

LXC cluster: failing to start the first node after reboot

I have a LXC cluster with three nodes that are all KVM virtual machines with Kubuntu 18.04 with LXD 3.0.3 installed via apt Also the host machine is a Kubuntu 18.04 I installed LXD on the first node ...
Mirto Busico's user avatar
1 vote
0 answers
673 views

lxc-start: controller: lxccontainer.c: wait_on_daemonized_start: 842 Received container state “STOPPING” instead of “RUNNING”

when i run the config file config file sudo lxc-start -n controller -d it gives me this error lxc-start: controller: lxccontainer.c: wait_on_daemonized_start: 842 Received container state "...
Shahrukh Ali Khan's user avatar
0 votes
2 answers
190 views

Linux Container (LXC) image without vmlinux

Recently, I installed lxc and created an Ubuntu LXC image. Then, I did ls -a / to see the directory listing of / inside the image. To my surprise, there is no vmlinux or vmlinuz often seen in normal ...
user1010573's user avatar
0 votes
1 answer
5k views

Can't login and no password prompt when trying to login as root on console on Ubuntu 18.04 running inside LXC

I have several installs of Ubuntu 18.04.2 inside LXC containers in several nodes running Proxmox 4.4-24 (Debian 8.11). On any of these, When I try to login as root on the console, I enter "root", ...
Colin 't Hart's user avatar
1 vote
1 answer
9k views

MACVLAN Bridge in netplan

I configured LXD containers in Ubuntu 18.04 with MACVLAN interfaces so they can DHCP addresses on my LAN. This all works fine, the containers are reachable on my LAN and they can reach each other, but ...
Georg's user avatar
  • 43
2 votes
1 answer
6k views

Change default editor in LXD snap

I recently migrated from LXD installed from deb, to LXD installed from snap. The default editor is set to Vim. How can I change this?
Quentin Skousen's user avatar

1
2
3 4 5
9