Questions tagged [lxd]

The LXD tag is for questions relating to the LXD daemon based on liblxc, providing REST API, command line tool and OpenStack integration plugin for LXC.

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

How to access a LXD-based Charmed Kubernetes cluster from corporate network

I have installed Charmed Kubernetes over LXD on one of our servers that is running Ubuntu 20.04 LTS, following these instructions, however I don't know how to make it accessible from other servers. I ...
0
votes
0answers
27 views

HELP - Deploying LXD container breaks node networking

I am following the charms deployment guide for OpenStack using Juju (i.e. here: https://docs.openstack.org/project-deploy-guide/charm-deployment-guide/victoria/) I get up to the deployment for mysql-...
0
votes
1answer
38 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
22 views

Is it possible to configure LXD in local juju setup to use ZFS on file backed?

I want to setup juju openstack cloud in LXD containers on my local KVM machines (manually created). By default Juju creates LXD provider as a directory. But from LXD documentation I see that it's ...
1
vote
1answer
86 views

Installing Ubuntu Kubernates 1.20 on localhost -> Documentation lead to error -> Waiting for 3 kube-system pods to start

I was created fresh Ubuntu 20.03 on VirtualBox than started installation using documentation. Machine have Quadro RTX Card (maybe it impacts?). Documentation is messy because there is many ways to do -...
0
votes
2answers
20 views

installing internet facing snaps as root vs regular user (with sudo priviledges)

I plan to run a WeKan instance inside an LXD container on a vps which shall be accessible via internet. Is there any difference from a security point of view whether I do ... snap install wekan (as ...
0
votes
1answer
49 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
1answer
74 views

lxd host shows high memory usage not equal to the sum of lxc guest usage

I just want to understand with my lxd host shows high memory usage (more than 80%) while the sum of all guest container memory is way less than that? host:~$ free -h total used ...
0
votes
2answers
175 views

How to change confinement without reinstalling?

I recently installed snap lxd in one of my servers. Initially it was working fine. Now I needed to install gitlab-ce on my lxd container which requires sysctl access. But snap documentation saying I ...
2
votes
1answer
700 views

LXD not installed after upgrade from 18.04 to 20.04

I have been trying to get snap working on my Ubuntu machine for a while, but got nowhere. So I decided to upgrade to the latest LTS version of 20.04. error: system does not fully support snapd: ...
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 ?
1
vote
1answer
254 views

The `snapd` package fails to upgrade inside of Ubuntu 20.04 LXD container

I'm launching Ubuntu 20.04 via LXD but, when I enter the container to use it, it fails to run: apt update apt full-upgrade It stops on Setting up snapd (2.47.1+20.04) ... Error: Setting up snapd (2....
0
votes
0answers
93 views

lxd juju attempts to connect but just hangs at 10.70.244.25 failed

juancc2007md@juancc2007md-HP-ProBook-640-G1:~$ juju bootstrap localhost --debug 21:06:07 INFO juju.cmd supercommand.go:91 running juju [2.8.1 0 16439b3d1c528b7a0e019a16c2122ccfcf6aa41f gc go1.14.4] ...
0
votes
1answer
455 views

LXD - Assign public IP to a container

I have several static public IP addresses on my host machine. I want to assign that IP to a certain container, but I cannot really find any updated info about that. I tried to create a new network, ...
1
vote
1answer
506 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
2answers
220 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
103 views

veth.ko missing

On a Raspberry Pi 4, running Ubuntu Focal 64bit. LXD keeps getting broken, and it seems like it's because the kernel module veth.ko is missing. In an attempt to restore it I did: sudo apt install ...
0
votes
1answer
191 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
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
70 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
258 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 “...
2
votes
1answer
172 views

LXD Snap stuck on “undoing”

I use LXD for my cluster and I can't access it for a couple of days, because the LXD versions are incompatible across the cluster. In one of the node it's upgraded to 4.3; but on the other one, it's ...
1
vote
1answer
604 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
3k 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
457 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
282 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 +------------------------------------+---------+------+------+-----------+-----------+ | ...
0
votes
0answers
118 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
137 views

LXD: Imported container doesn't start - Problem with ACLs

I am just trying to launch a container, which was created on an other machine. I've done this the following way: $ lxc snapshot container_name snapshot_name $ lxc publish container_name/...
0
votes
1answer
40 views

Deleting zfs.img file in Ubuntu 16.04

Under Ubuntu 16.04, is it safe to delete the file /var/lib/lxd/zfs.img that is taking up 10 Gb of space knowing that I am using lxd containers but only with the DIR storage backend and never used ZFS ...
1
vote
1answer
1k views

Setup LXD storage thin pool on an existing LVM volume group of the host

The lxd init wizzard does not allow to (re)use the existing LVM volume group of the host for LXD storage pool. How to configure LXD storage manually, so that it creates thin pool and volumes in the ...
0
votes
2answers
252 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
1k views

Nginx as SSH gateway?

I have a server which serves some other systems via LXD, using Nginx as reverse proxy for accessing them on HTTP. Now I want to give shell access to one of them to a friend. In fact, I want to be ...
0
votes
1answer
405 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 ...
0
votes
1answer
822 views

How to run (if possible) gpu-accelerated apps in LXC (LXD) container?

In its great post https://blog.simos.info/how-to-easily-run-graphics-accelerated-gui-apps-in-lxd-containers-on-your-ubuntu-desktop/ Simos Xenitellis describes how to run GUI apps inside the container. ...
0
votes
1answer
76 views

Access to LXD from a snap

I am trying to build a snap which accesses the local LXD service. There is a snap interface for LXD, but trying to use this gives me connection errors. The (very brief) documentation of the interface ...
0
votes
2answers
235 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 ...
1
vote
1answer
125 views

LXDhost doesn't report packages to landscape in container

Good day fellas, I have landscape running in a lxd container. Containers are in bridge mode. I added the lxdhost to landscape, which worked fine and it connects normally as far as I can tell. However ...
1
vote
1answer
333 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 ...
0
votes
1answer
392 views

LXD: Shared Host Directory Permission Issues

*This is a copy of a similar post on the LXD fourms here:https://discuss.linuxcontainers.org/t/shared-host-directory-permission-issues/ * Hi there, I'm new to using LXD so please bear with me if this ...
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
43 views

conjure-up juju and nested containers

We have (almost) deployed Openstack NovaLXD with conjure-up on a single machine. In this setup, conjure-up uses juju and lxd, and creates nested lxc containers. All of them comes up with IP addresses, ...
1
vote
1answer
112 views

Physical Network attach to specific LXD Container

First of all, I am not that experienced in networking. I have three NIC in my system. My netplan settings: network: ethernets: enp5s0: dhcp4: true enp3s0: dhcp4: false ...
0
votes
1answer
508 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 ...
0
votes
1answer
1k views

LXD : /var/snap/lxd/…/unix.socket: connect: no such file or directory

I have Ubuntu 18.04 running with LXD in the host and about 300 containers. LXD (as the title suggests), was installed using snap. In the past year, I have faced twice this error (last time was ...
0
votes
1answer
611 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
0
votes
1answer
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 ...
1
vote
1answer
2k views

NetPlan bridge doesn't work 18.04

I am trying to setup network bridge on 18.04 VPS with 2 IPs and right after applying netplan apply, internet stops working while all configuration and adresses are good: ip -c addr and ifconfig shows ...
0
votes
1answer
902 views

How can I run microk8s on LXD?

When I try to snap install microk8s on an LXD machine, it doesn't start and produces these errors: sysop@hoseplavm:~$ lxc list +------------+---------+----------------------+------+------------+------...
0
votes
1answer
388 views

Unable to connect to LXD API

I have successfully installed the LXD 3.13 snap package. I have run lxd init and added myself to the lxd group, and am able to create containers: $ lxc launch ubuntu: example Creating example ...

1
2 3 4 5