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.
272
questions
3
votes
1
answer
2k
views
Failed container creation: LXD doesn't have a uid/gid allocation
I'm trying to lauch an lxd container, but I get this:
lxc launch ubuntu:16.04
A criar o contentor
Error: Failed container creation: LXD doesn't have a uid/gid allocation. In this mode, only ...
1
vote
1
answer
628
views
LXD ZFS snapshot creation slows down as number of snapshots increases
Ubuntu 18.04 LTS - LXD Ubuntu launch using loopback ZFS (about 400MB)
# lxc launch ubuntu:16.04 test -s ianzfspool
(I have one other idle multi-GB container using the same ianzfspool.)
I have lots ...
0
votes
0
answers
501
views
add a LXD Host on MAAS
this is my lab:
1 SVR IBM system x3650 M4 with Ubuntu 18.04 and MAAS
2 SVR IBM system x3650 M4 with Ubuntu 18.04 as hypervisor
Installing KVM and virt on NODEs I can manage the VM via MAAS, if I ...
0
votes
1
answer
705
views
LXD Connect to a container on public ip
So I've setup a Ubuntu server 18.04.01 64bit can connect to it and all that with SSH.
Installed LXD/LXC
I also created a bridge br0 in netplan with DHCP at first an to connect to the containers with ...
1
vote
2
answers
629
views
Conjure-up Kubernetes installation failed because of "/proc/sys/net/core/somaxconn" does not exist,
When I had been installing Kubernetes via conjure-up in my workstation, ended up with somaxconn does not exist and some mongo error.
VM Configuration
2 vCPU,8 GB vRAM and 100 GB vDisk and it is fresh ...
3
votes
2
answers
4k
views
LXD: Running an image with a foreign architecture
I want to use LXD to bootstrap a root filesystem for deployment on an embedded
ARM system from my AMD64 host running ubuntu 16.04. Previously, I've done this
with a script and the chroot command, but ...
1
vote
2
answers
2k
views
ubuntu-desktop in lxc with ubuntu server as the host
I've recently installed Ubuntu 18.04 server and would like to use it as a desktop without interfering too much with the server part.
This should be possible using linux containers (lxd). The problem ...
0
votes
1
answer
510
views
18.04 zfs+lxd causes container host to reboot under heavy load?
Spent a few days struggling with this and I guess 18.04 just aint ready for production.
18.04 server w/ lxd over zfs on raw block devices just reboots itself randomly. No panic or output. I have ...
0
votes
0
answers
320
views
Landscape server quickstart and lxd problem
A bit leading up to my problem. I had a landscape server for personal use running on one server with nfs for my home directory. Was getting parts to upgrade that server and thought I would move the ...
3
votes
1
answer
7k
views
LXD - How to execute a script inside a container from host
I wrote a github pull script inside the running container so that the container can get the updated codes.
But how can I call this script from the host machine?
I have tried with something like this ...
1
vote
2
answers
1k
views
LXC & OverlayFS
Goal - To configure/install a webapp on Host & make sure its accessible through an lxc container.
Why - To isolate the host yet provide access to the web app and ssh access to our clients.
...
1
vote
1
answer
611
views
LXDe in Lubuntu 18.04
Translation by Google:
I would like to know in Lubuntu 18.04 the LXDe shell will be installed by default or will it have to be installed before? And tell me how to install it should be installed in ...
9
votes
1
answer
12k
views
How do I copy a file/directory from host into a LXD container?
I have a file/directory on the host that I want to copy into the LXD container.
What is the command to copy the host -> container?
1
vote
2
answers
1k
views
Quota inside LXD container
I want to enable quota inside LXD container so as to limit each user to 10GB storage. However I got the following error:
root@test:~# quotacheck -avug
quotacheck: Cannot find filesystem to check or ...
2
votes
2
answers
4k
views
How to enable hostname resolution (dns) for lxd containers from the lxd host?
How to enable lxd hostname resolution from the lxd host?
After creating the below container:
>>> lxc launch ubuntu: container
Creating container
Starting container
>>> lxc list
+--...
2
votes
2
answers
2k
views
lxd init fails on Ubuntu 16.04 Xenial Xerus
When I use lxd, it fails on lxd init .
$ snap install lxd
lxd 3.0.0 from 'canonical' installed
$ lxd init
Error: Failed to connect to local LXD: Get http://unix.socket/1.0: dial unix
/var/snap/lxd/...
0
votes
1
answer
113
views
LXD Cannot Bridge network device
I'm trying, (and failing) to use LXD and MaaS on my home machine to create a Pod. I commisioned and deploy a machine via MaaS on my local network. When I ssh into it I install LXD and bridge-utils. ...
1
vote
2
answers
5k
views
External DHCP with LXD 2.3+
I am trying out LXD. It seems the default way to set up networking is to have the host provide DHCP and NAT for all the guests, but I'd like to omit NAT and allow the guests to use the same DHCP ...
0
votes
1
answer
315
views
Publicly Available Containers via Ubuntu 18.04 -- help question
First off, let me start by saying I am no expert in server talk. I've been teaching myself as I go along, and I really only know entry level basics to server management.
I am trying to consolidate ...
1
vote
1
answer
224
views
SNAP out of control [closed]
I'm running many LXD containers inside a specific developer area , this morning I found some container stuck and I turned out that SNAP has updated the LXD at the version 3 automatically.
As far as I'...
0
votes
1
answer
2k
views
Unable to locate package qt5-default in LXD container
I am trying to install Qt in a LXD container but the qt5-default seems to be missing.
The LXD container is Ubuntu 18.04 based and I already installed the rest of the packages.
Any ideeas?
Thank you.
...
0
votes
1
answer
1k
views
Juju add-machine does not start LXD container
Juju agent version 2.3.4
MAAS version: 2.3.1 (6470-g036d646-0ubuntu1~16.04.1
I seem to be experiencing the symptoms akin to the ones here.
With MAAS nodes in 'Ready' state, adding a machine
#juju ...
2
votes
0
answers
316
views
sudo snap install conjure-up --classic fails with configuring hook
I am trying to run kubernetes on lxd following the instructions taken from https://kubernetes.io/docs/getting-started-guides/ubuntu/local/. However, I get following error message:
$ sudo snap ...
0
votes
0
answers
240
views
LXD Installation Not Working with Snapcraft
I installed LXD with all the defaults, but when I get an error:
$ snapcraft cleanbuild
Something seems to be wrong with your installation of LXD. Refer to the documentation at https://linuxcontainers....
0
votes
0
answers
338
views
LXD: Getting DHCP IP but no ping outside
So I setup a clean VM in VirtualBox. I setup bridge devices as described by several tutorials.
I create a VM, I get a DHCP address. But after that I got no ping from the container to any IP on the ...
0
votes
1
answer
107
views
Setup containers
I have ubuntu 17.10 and i'm trying to setup containers that people can ssh into from outside my network. I tried installing LXD containers and had a friend try to ssh into it but it says connection ...
1
vote
1
answer
387
views
Problem installing Ubuntu SDK IDE on MATE 16.04
I'm trying to install Ubuntu SDK and SDK IDE on Ubuntu MATE 16.04, but every time I run it, I get this error:
Stopping containers: All containers stopped. Creating default network bridge .....
FAILED ...
1
vote
2
answers
2k
views
How do I enable image auto-updating in LXD?
When I installed LXD, I disabled image auto-updating since I knew I was going to be traveling and using slow internet connections for a week or so.
Now that I'm back home with a fast connection, I'd ...
0
votes
1
answer
308
views
Creating a network with lxd on xenial-backports
I want to start using lxc container on an Ubuntu 16.04 Xenial machine. I am using lxd 2.21 from the xenial-backports repository. It works fine up to the point where I want to give my containers ...
2
votes
1
answer
2k
views
Netplan-configured LXD host doesn't restore network config on reboot
I have 17.10 server with LXD installed via snap (2 containers).
I've configured host to have static IP and let containers be accessible from LAN.
My 01-netcfg.yaml in /etc/netplan:
network:
...
0
votes
2
answers
1k
views
How to migrate vm´s from oracle virtualbox hypervisor to LXD or Docker Containers
Thinking about to run virtual maschines on LXD as LXD guests instead on virtualbox installed on this ubuntu 16.04.3 LTS server:
How to migrate existing vm's? Simply export as OVA and and import them? ...
5
votes
1
answer
9k
views
Configuration of a bridge with a static IP with the netplan to be used with linux container
Summary: how to configure the netplan on a host machine to create a bridge (with a static IP address) that would be used on guest virtual machine (shall be accessible from a local lan).
I am using ...
1
vote
1
answer
256
views
LXD 2.0 - lxd.migration to snap hang waiting for lxd process to start - /var/lib/lxd directory gone
As the title said migration to snap went wrong and I lost all the /var/lib/lxd directory except for the storage_pool and images which were symbolic links.
Obviously I lost all configurations but I ...
1
vote
1
answer
574
views
Ubuntu 14.04: LXD PPA no longer available
It appears the LXD PPA for Ubuntu 14.04 was removed at the end of 2017. Unfortunately there's no migration path for a 14.04 as I'm not seeing how to get snaps installed for 14.04.
I'm not sure how to ...
1
vote
0
answers
358
views
LXD PPA remove requires lxd.migrate to snap, but what about my network bridge and ZFS pool?
Ubuntu 16.04.3 LTS
During the latest batch of updates I was informed that the LXD PPA packages were being removed in favor of just installing as a snap.
│ LXD PPAs to go away by end of year ...
0
votes
1
answer
253
views
reconfigure LXD subnet for canonical-kubernetes on Ubuntu 16.04 with LXD
We have set up canonical-kubernetes and got a private docker registry running with self signed certificates and an ingress.
Now we would like to make this cluster available on our corporate network.
...
4
votes
1
answer
9k
views
How can I create a secondary lxd bridge?
I want try to create a network infrastructure with containers, but how can I configure another lxd (eg.: lxcbr1) bridge for my lxc container?
on the host I type:
sudo brctl addbr lxcbr1
but when I ...
1
vote
1
answer
2k
views
lxc error: saving config file for the container failed
I recently upgraded my lxd to 2.20-0ubuntu4~16.04.1~ppa, but now i cant start my imported containers.
I can successfully import a containers, with lxd import NAME
and i can do lxc config show NAME ...
0
votes
1
answer
67
views
Maas and Juju handshake!
Here is my setup;
I have a PowerEdge 2900 running Ubuntu 16.04 server with lxd and Juju installed on it, (this machine hosts 5 containers with very important server apps for our infrastructure).
...
2
votes
2
answers
2k
views
LXD Containers and Host on DHCP
I'm working on containers at the moment and having trouble with configuring them to use the network's DHCP, so that they can be accessed via hostname (container name) directly. This'll mean apps on ...
2
votes
1
answer
1k
views
`juju bootstrap` fails getting address
I am trying to do juju bootstrap lxd lxd-local but it fails with the following error:
Select a cloud [localhost]:
Enter a name for the Controller [localhost-localhost]:
Resolved LXD host address ...
2
votes
0
answers
209
views
How to recover LXD containers inside a zfs pool?
I have this setup:
sda : ubuntu server 16.04
sdb and sdc : a zfs pool
I have several LXD containers, during the lxd init, I selected zfs and supplied a zfs dataset for lxd to use.
now I have this ...
0
votes
0
answers
432
views
lxd container with openvpn server does not apply iptables nat rule
I'm trying to setup openvpn on one of my lxd containers to allow access to the container network. The server seem to work and I can access (ping) containers which have a static route pointing to the ...
0
votes
1
answer
1k
views
Adding lxd containers on Windows 10 hyper V host networking issue
While creating LXD containers on Ubuntu 16.04 sitting on Windows 10 Hyper V having external virtual switch network configuration, containers do not get connected with the external network. All the ...
4
votes
4
answers
6k
views
Conjure Up : Unable to deploy OpenStack Cloud on LXD Configuration Ubuntu 16.04LTS (LXD not found)
After running conjure-up, and choosing OpenStack with LXD, when I try to deploy to localhost I get this error
Could not locate any network or storage devices to continue. Please make sure you have at ...
1
vote
0
answers
522
views
How to use gnome-keyring in lxc ubuntu container?
I have tried to start the installed gnome-keyring in a lxc Ubuntu 16.04 container by executing sudo gnome-keyring-daemon --start. However, I got the following errors.
** (gnome-keyring-daemon:21983): ...
1
vote
1
answer
3k
views
In LXD container, can I mount a disk image such that it is private to the container?
Inside of an LXD container, I have created a disk image file and finally figured out how to mount it. However, a side effect of mounting the image makes it visible and readable to the host operating ...
0
votes
2
answers
424
views
LXC endless restating loop
(Please see below update 1, 2 and 3)
Today I updated the host system then after a reboot the LXD daemon do not start.
It gives the error
failed to create listening socket for 10.104.52.1: Address ...
0
votes
1
answer
578
views
How to downgrade feature branch installed LXD to LTS branch?
In order to get a more recent feature I upgraded lxd to the feature branch using:
sudo apt install lxd lxd-client
I have however experienced instability since and would like to switch back to the ...
1
vote
1
answer
3k
views
Disable IPv6 from boot inside LXD/LXC container
I'm using an ubuntu:xenial spawned container in LXD/LXC and can't work out why it keeps booting with an IPv6 link local address (fe80::). If it's at all relevant, I'm also using Xenial as the ...