Questions tagged [lxd]

LXD is built around a very powerful, yet pretty simple, REST API. Under the hood, LXD uses LXC. If your question is about LXD, e.g.: is using the "lxc" command only available in LXD, you should use the tag LXD instead (or in addition) of LXC.

LXD is a next generation system container manager. It offers a user experience similar to virtual machines but using Linux containers instead.

It's image based with pre-made images available for a wide number of Linux distributions and is built around a very powerful, yet pretty simple, REST API.

Under the hood, LXD uses LXC through liblxc and its Go binding to create and manage the containers.

55 questions
211
votes
2 answers

What is the difference between Docker, LXD, and LXC

What is the difference between Docker, LXD, and LXC. Do they offer the same services or different.
Ijaz Ahmad
  • 7,146
  • 5
  • 32
  • 45
12
votes
2 answers

List snapshots of a lxd container

After creating a few snapshots in a lxd container using lxc snapshot I cannot find a way to list those snapshots. lxc list lists only containers, not the snapshots of each container. How can I list the names of all snapshots of a container? Thanks.
stefanos
  • 123
  • 1
  • 4
5
votes
1 answer

Unsetting an option in a systemd drop-in override

Background: I have a package that provides a systemd unit file that is incompatible with LXD. Specifically, it uses the following two options, which seem to fail inside a container: [Service] IOSchedulingClass=realtime CPUSchedulingPolicy=rr So, I…
Dominick Pastore
  • 805
  • 1
  • 9
  • 19
4
votes
2 answers

ZFS pool for both common use and LXD, will it work?

I have 2 disks and would like to create one ZFS raid0 pool on Ubuntu 16.04 for everyday use and to keep LXC containers on it. Will it be ok to manage this pool by myself and allow LXD to manage it at the same time? I just want ZFS to work with bare…
Lisio
  • 161
  • 1
  • 5
3
votes
1 answer

Project Quota on a live root EXT4 filesystem without live-cd

How do I accomplish setting up project quota for my live root folder being ext4 on Ubuntu 18.04? Documentation specific to project quota on the ext4 filesystem is basically non-existent and I tried this: Installed Quota with apt install quota…
3
votes
2 answers

How to make a USB visible in LXD Container

I am fairly new to LXD Conatiners. I have a Host ubuntu 16.04 machine running which has a single container : root@ubuntu-blade1:/etc/udev/rules.d# lxc list +-------------+---------+----------------------+------+------------+-----------+ | NAME …
Nishant Singh
  • 245
  • 1
  • 4
  • 14
3
votes
0 answers

How to bind an lxc container to a specific bridge?

I created a specific bridge br1 and would like to bind a specific container cont1 to that bridge. I have lxc and lxd installed, if that matters (I am not sure what the difference between them really is). I disabled the briging to lxcbr0 in…
WoJ
  • 1,445
  • 1
  • 19
  • 38
2
votes
1 answer

Creating a private image in LXD

I am confused because the command to create an image from a snapshot is called lxd publish. Does it create a publicly available image? How can I create a private image. I want an image with ssh keys, api tokens etc inside, so obviously it must be…
exebook
  • 194
  • 1
  • 9
2
votes
1 answer

Is it possible to set the IP address when launching a container?

I’m looking for examples how to create/launch a container with a predefined ipv4.address? Is that even possible? I've tried with lxc launch image name --config 'eth0.ipv4.address=10.0.2.2' Though this errors out with unknown key? I'm suspecting…
bugzbunny
  • 41
  • 2
2
votes
1 answer

Creating a custom template, based on some existing LXC template after running the instance at least once

(Please note that this question is about LXC 1.x, whereas this one is about LXC 2.x/LXD) I scoured the web for an answer to this one, but couldn't come up with any reasonably non-hacky answer. What I am looking for is an approach to fashion an…
0xC0000022L
  • 16,189
  • 24
  • 102
  • 168
2
votes
1 answer

Mount host folder to guest with LXC 2.x, but do it readonly?

NB: This question relates directly to this one and in particular to this answer, but it's not a duplicate. I'd like to share a folder from the host with the guest, but make sure that the guest's root cannot accidentally write to that folder. The…
0xC0000022L
  • 16,189
  • 24
  • 102
  • 168
2
votes
2 answers

Are containers and hypervisors an alternative to multibooting GUI-based distros?

Soon I will need to test GUI applications on multiple distros. Previously I've done this with virtual machines on VirtualBox, but using them can be frustratingly slow. I have considered multibooting, but that would have a high cost when a) swapping…
lofidevops
  • 2,967
  • 6
  • 39
  • 58
2
votes
2 answers

Can't Open Htop over SSH (Terminal Issue)

I'm connecting to a remote server through SSH Manjaro machine with urxvt to a LXD container, which is running Centos 7. But for some odd reasean I cannot run htop..... I'm getting the following error [someuser@Proxy ~]$ htop Error opening terminal:…
2
votes
1 answer

Connect lxc network with local network

My current environment is following; in Windows 10 I have installed Ubuntu 16.04 in Hyper-V, this hosted Ubuntu is connected to local network 10.10.10.*, where Ubuntu's IP is 10.10.10.1 and Windows's 10.10.10.100. They see each other and all is…
2
votes
0 answers

Can't chown file within lxc container

Having an issue with a new lxc container. I've only just started playing with lxd/lxc and it's setup as default. I'm using lxc version 2.0.4 and the host is Ubuntu 14.04.5 LTS I've created a new container with: $ lxc launch ubuntu:16.04…
Andrew
  • 21
  • 2
1
2 3 4