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

MAAS - KVM host (LXD) show no availiable resources

I have deployed a Maas installation on one PC (A) and trying to connect the LXD of another PC(B) to it. I have successfully connected (B) as a KVM host to Maas, however it shows zero CPUs and Memory, ...
user avatar
  • 1
0 votes
1 answer
25 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
34 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
17 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
  • 260
2 votes
1 answer
177 views

How do I pass a cloud-init config when creating an LXD container?

I've been reading through the LXD documentation and blogs and stackexchange answers that say LXD is supposed to have some kind of init syntax that allows you to pass cloud-config data to your ...
user avatar
  • 313
0 votes
0 answers
95 views

How can Ubuntu Core be installed to lxd?

As described by http://ubuntu.com/blog/ubuntu-core-in-lxd-containers, Ubuntu Core can be installed via http://snapcraft.io/lxd by executing lxc launch images:ubuntu-core/16 ubuntu-core. The tutorial ...
user avatar
0 votes
0 answers
214 views

Is there a way to set /run/snapd/ns/lxd.mnt with option nodev?

My organization has flagged our new servers with security issues, one stated as such: /run/snapd/ns/lxd.mnt partition does not have 'nodev' option set Is it possible to set that option through a ...
user avatar
0 votes
1 answer
47 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
2 votes
1 answer
84 views

LXD Bridge Prevents Network Access

Explanation before the question I am trying to configure LXD on a raspberry pi using Ubuntu Core 20.04. It's local IP is initialized as 192.168.2.64. Before I run lxd init it was connecting to network ...
user avatar
  • 53
1 vote
0 answers
542 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
1 answer
264 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
0 votes
1 answer
117 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 ...
user avatar
1 vote
1 answer
416 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 -...
user avatar
  • 111
0 votes
2 answers
28 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 ...
user avatar
  • 441
1 vote
1 answer
432 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
1 answer
341 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 ...
user avatar
0 votes
2 answers
528 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 ...
user avatar
2 votes
1 answer
2k 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: ...
user avatar
1 vote
1 answer
566 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....
user avatar
1 vote
1 answer
1k 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, ...
user avatar
  • 21
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
625 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
3 answers
793 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 ...
user avatar
0 votes
1 answer
486 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
1 vote
1 answer
96 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
370 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
2 votes
1 answer
388 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 ...
user avatar
1 vote
1 answer
967 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
728 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
469 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
0 votes
0 answers
223 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
189 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/...
user avatar
  • 1
0 votes
1 answer
68 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 ...
user avatar
  • 3
1 vote
1 answer
3k 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 ...
user avatar
0 votes
2 answers
537 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
3k 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 ...
user avatar
0 votes
1 answer
638 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
0 votes
1 answer
2k 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. ...
user avatar
1 vote
1 answer
123 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 ...
user avatar
  • 125
0 votes
2 answers
574 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 ...
user avatar
  • 260
1 vote
1 answer
167 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 ...
user avatar
1 vote
1 answer
364 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 ...
user avatar
  • 491
0 votes
1 answer
663 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 ...
user avatar
  • 59
4 votes
2 answers
17k 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 ...
user avatar
  • 88.7k
0 votes
1 answer
51 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, ...
user avatar
1 vote
1 answer
220 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 ...
user avatar
0 votes
1 answer
647 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 ...
user avatar
0 votes
1 answer
2k 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 ...
user avatar
  • 1,306
0 votes
1 answer
815 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
user avatar

1
2 3 4 5