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
0answers
24 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
20 views

How to troubleshoot cgroups device access control in Ubuntu 18.04?

In short: I would like to figure out what prevents me to access /dev/dri/card0 from GUI session. The long story: I would like to pass GPU to lxd container, but it fails with error Error: Common ...
0
votes
0answers
51 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
19 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 ...
0
votes
1answer
97 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
0answers
14 views

LXD pool on a 2 mirrored HDDs - How?

I have a 19.10 server running on SSD. I have 2 WD 1TB HDDs, which I want to get mirrored and to create 1 partition there, where I'll put LXD pool with multiple containers. Should I create mirror with ...
0
votes
1answer
51 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
108 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
114 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
0answers
33 views

Error launching LXD image

If you look at the "MAchine State" section, there are errors with "down". I'm trying to deploy openstack with juju. Could someone help me fix this issue? root@maas:/home/incepxion# juju status Model ...
0
votes
1answer
91 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
42 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
0answers
31 views

How to share one Network Interface's Traffic between several containers(LXC/LXD)

We want to share one Interface's traffic between several containers(LXC/LXD). The interface is Gigabit with no IP. It works for one LXC. I was thinking about making several sub_interface and ...
0
votes
2answers
67 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
53 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 ...
0
votes
0answers
33 views

Netplan apply breaks LXD network

Soon as I run netplan apply, all my LXD containers become unreachable via their IPs. Then, I have to reboot the containers for them to reach the network again... My LXD Profiles uses Linux Bridges, ...
1
vote
1answer
256 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
0answers
143 views

Problems with lxc after reboot in Ubuntu 19.10

Installed lxd after a fresh Ubuntu 19.10 install. Created a container and everything worked! After a reboot lxd/lxc stop working ~$ lxc list sanity timeout expired: Interrupted system call cannot ...
0
votes
0answers
58 views

LXD Container not accessible from other LAN machines

I am new to Linux world and I tried everything I can think off to solve this problem but stuck since so many days. My LXD container is not able to accessible from my LAN. I tried followings: https://...
0
votes
0answers
179 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 ...
0
votes
0answers
67 views

DNS resolution on local network stopped working “;; connection timed out; no servers could be reached”

I have a DNS server (bind9) on my local network (IP address 192.168.1.11). It is running in a LXD container. For some reason, the resolution is not working anymore when DNS server is queried by a ...
2
votes
0answers
5k 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
31 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
0answers
66 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
286 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
507 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
292 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
0answers
22 views

How can I configure GCloud LXD Bridge Devices without adding more vNICs or breaking the VM?

I know that Canonical spends a good number of cycles optimizing their OS images for each cloud provider depending on which hypervisor a customer wants to use. I am trying to replicate the trick ...
0
votes
1answer
889 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
1k 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
0answers
98 views

What is the cause of cloud-init difference after 'lxc launch …' and lxc-create from the same image server?

A container created which lxd, by lxc launch ... command is different from the one created by the 'lxc-create -n u1' command. The difference is that the former is cloud-init enabled (and has the ...
0
votes
1answer
581 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
186 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 ...
2
votes
1answer
333 views

juju charmed-kubernetes - what are minimal hardware requirements?

I need to know what are the hardware requirements to deploy the charmed-kubernetes charm. I tried unsuccessfully (installation never ends) on this configuration: hardware: notebook with Intel i7 and ...
0
votes
0answers
69 views

conjure-up: fails - doesn't see lxd cluster cloud

I have a three node lxd cluster (kvmnode1, kvmnode2, kvmnode3) and a control workstation (kvmnode0). All machines are Kubuntu 18.04. On kvmnode0 I added this lxd cluster as a juju cloud sysop@...
1
vote
1answer
177 views

juju bootstrap gives this error: failed to create dqlite connection

I'm trying to bootstrap juju on a lxd cluster cloud Here the transcript of the command sysop@kvmnode1:~/SVILUPPO/for_juju$ sudo juju bootstrap lxd-cloud ...
6
votes
3answers
547 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. ...
1
vote
2answers
189 views

Installing Ubuntu-sdk, issue with lxd on 16.04

I'm trying to install Linux SDK using apt install ubuntu-sdk. I get error about dependencies which end up with lxd: Running apt install lxd result in the following error: *lxd : Depends: lxd-client (...
0
votes
1answer
207 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@...
0
votes
1answer
2k 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 ...
0
votes
1answer
120 views

lxd container. Problem with large file local.img

Good day I use Ubuntu 18.04, lxd 3.0.3 When i start my container, file /var/lib/lxd/disks/local.img becoming more and more. And now size du -h disks/ 64G disks/ ls -lh * -rw------- 1 root root 94G ...
0
votes
1answer
79 views

Do LXD containers count towards Landscape Free Tier's machine count?

Landscape On-premises is free for up to 10 machines, do LXD containers on an installation of Ubuntu Server count towards this limit?
0
votes
1answer
336 views

PPTPD on lxd unprivileged container

There is lxd-3.0.3 unprivileged (containers with uid shift started by root) on Ubuntu-18.04 (amd64). In container there is Ubuntu-16.04.5 (amd64). How to configure pptpd on it? It seems that there is ...
0
votes
1answer
1k 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?
1
vote
1answer
3k views

LXD: how to avoid double default gateway in ubuntu 18.04?

UPDATE 2 Top posting because it is needed to apply the suggested solution. Found on question - second answer This has been fixed in the netplan repository on github, and will presumably make ...
4
votes
3answers
3k views

How to ssh into a LXD guest?

I have a host machine (KVM with Kubuntu 18.04) with a LXD guest (based on ubuntu18.04 image). I can ssh from guest to host. But trying to ssh from host to guest gives an Permission denied (...
1
vote
0answers
282 views

Find out netplan duid before starting the system

is there a way to find out the duid netplan is using to request the dhcp lease before starting the system. Can it be calculated or triggered from outside? Use case: Before netplan, I used the ...
1
vote
1answer
307 views

What's wrong with dhcpd (isc-dhcp-server) inside LXC container? Why it does nothing?

I tried many times, on various Ubuntu machines: the dhcpd executable (installed in /usr/sbin/dhcpd via package isc-dhcp-server) inside the LXC container seemingly the only thing it does, when executed ...
2
votes
0answers
949 views

Lxd preventing 18.04-18,10 upgrade in WSL

Because lxs is now only installed from the snap store, and I have some problem with the snap store, my do-release-upgrade won't complete. How do I tell apt to stop trying to install lxd so it can ...
0
votes
1answer
291 views

Testing openstack with conjure-up (novalxc) neutron-gateway fails to start

Followed this doc to test openstack: https://www.ubuntu.com/openstack/install#workstation-deployment edit: This is running on ubuntu 16.04 After the conjure-up step, everything eventually starts ...

1
2 3 4 5