Skip to main content

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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
80 views

Incus - Setting migration.stateful for stateful snapshots

I'm trying to get to grips with Incus, because it looks like it is a fork of Canonical's LXD, which I can run fairly easily on Debian 12 with a deb package, rather than using snaps. I have it all set ...
Programster's user avatar
  • 2,279
0 votes
0 answers
45 views

Why top command shows different results depending on sort mode

When used with -o%CPU: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 58641 mysql 20 0 26.9g 17.0g 21108 S 5800 13.5 2890:39 /usr/sbin/mysqld --basedir=/usr ...
michaelloop's user avatar
1 vote
0 answers
109 views

Multipass with QEmu driver: how to access usb camera

on my Asus rog laptop with ubuntu 23.10 I installed the ROS (robot os) image from multipass, as explained in this official guide https://ubuntu.com//blog/ros-development-on-linux-windows-and-macos . I ...
AndrewBloom's user avatar
1 vote
2 answers
1k views

LXD ZFS storage pool on lvm filesystem?

The default filesystem of my machine is lvm (Ubuntu 22.04). I would like to spin up LXD/LXC virtual machines to run some Apache projects like Hadoop and Spark. When setting up Hadoop there is a step ...
Mnemosyne's user avatar
  • 161
0 votes
3 answers
5k views

What is the ID of nobody user and nogroup group?

When trying LXD, I tried to share a folder from my computer with the LXC Container, but I could not write in the folder in the container because ls -l shows that it belongs to user nobody and group ...
Ruben Alves's user avatar
3 votes
4 answers
704 views

Persist resolvectl changes across reboots

I'm using LXC containers, and resolving CONTAINERNAME.lxd to the IP of the specified container, using: sudo resolvectl dns lxdbr0 $bridge_ip sudo resolvectl domain lxdbr0 '~lxd' This works great! But ...
Jonathan Hartley's user avatar
0 votes
1 answer
658 views

How can I monitor individual containers resource usage in LXD/C

I would like to be able to view which individual containers are using what percentage of CPU, memory etc. I have installed HTOP but it doesn't tell me which container, and I have 20+ containers ...
unixlearner's user avatar
1 vote
1 answer
115 views

Route trafic to bridged network

I have a server running with multiple services running inside each of their own LXD container. All containers uses a bridged network. For now I am routing everything through the servers main ip ...
dbergloev's user avatar
0 votes
1 answer
2k views

Docker on Debian Failing to Bind to Port 80

I am running Docker on Debian 11. I deploy an Nginx container and it fails to bind to port 80 even though port 80 is not in use by any other process. I even tried running Docker as root. Here's the ...
Krishna Chaitanya's user avatar
1 vote
0 answers
158 views

Prevent network namespaces / lxd-bridges from talking to each other, but keep internet access?

Following goal: I have lxd containers each set of containers should have their dedicated isolated network each should still be able to connect to the internet (e.g. apt update or curl), but not leak ...
stackbox's user avatar
1 vote
1 answer
174 views

Is it possible to use a file as Filesystem?

Here is the origin of my question: I'm running Linux containers with LXD snap version at Ubuntu 22.04 on a VPS. The root file system of the VPS is Ext4 and there is not additional storage attached. ...
pa4080's user avatar
  • 121
0 votes
1 answer
1k views

Connection refused between 2 linux containers

On my host Ubuntu 18.04 I am running two lxc containers using default setups. Containers use Ubuntu 18.04 as well. I have an app running on container1 that offers an https based service on https://...
Mnemosyne's user avatar
  • 161
1 vote
1 answer
4k views

How can I display a GUI LXC container on a physically connected display without a window manager?

I want to have a setup where I have LXC OS containers that start full-screen on particular displays. As an intermediate step, I am trying to get X apps from the container to display via host X. I have ...
Stonecraft's user avatar
0 votes
1 answer
597 views

Install browser inside LXD container and run it on host OS

I am trying to install Brave browser inside an LXD container (Voidlinux - preferably, or linuxMint), create a shortcut for that app inside my host OS and launch it as any other linux app with the ...
CodeGust's user avatar
  • 141
1 vote
0 answers
444 views

Linux on chromeos encountering many errors:58:51

OK This is a complex maze of error messages so bear with me. When I try to open or doing anything with Linux I get [=======/ ] Starting the Linux container Error starting penguin container: 58 ...
AidenSnyder's user avatar
1 vote
0 answers
157 views

How can I avoid getting out of space in LXD operations?

I installed LXD 4.10 in an Ununtu 18.04 machine using the snap: sudo install lxd LXD is installed in /var/span/lxd. Since a small disk is mounted in /var, I get out of no free space for some ...
Daniel Hernández's user avatar
1 vote
1 answer
419 views

It is possible to use parallel compression method in lxc publish?

To generate images LXD compresses files using gzip, which can only use one core. Thus, creating images can be very slow with large containers. I would like to use other compressors (e.g., pigz). What ...
Daniel Hernández's user avatar
2 votes
0 answers
673 views

Start armv7 container on arm64 with lxc / lxd

I installed Ubuntu 20.04 on my Raspberry PI, which has an arm64v8 architecture (but could be on any other debian arm distribution / hardware). Currently I compile a program for several arm ...
User Rebo's user avatar
  • 121
0 votes
1 answer
351 views

creating FreePBX lxd container image from virtualbox instance

I needed a freepbx lxd image for some test, and since I didn't find it in public image servers (well, default images: one and google search but nothing, I think for licence's issues but don't really ...
Spuria's user avatar
  • 1
2 votes
2 answers
2k views

ETH0 no address ip with ifconfig

I've created a new LXC on debian jessie, but it doesn't have an ipv4 address. When I connect to my LXC and do ifconfig: eth0 Link encap:Ethernet HWaddr blabla inet6 addr: blabla/64 ...
Akame14's user avatar
  • 21
0 votes
1 answer
860 views

lxd init: bind: address already in use

I have problem with bind problem with lxd init. The port 8443 is not used by any other application, therefore I think, lxd init tries to bind this port twice. My lxd version is 3.14 and I am using ...
Přemysl Šťastný's user avatar
1 vote
1 answer
89 views

Containerised Postfix treating External e-mails as Internal e-mails

I have an iRedMail Mail Server running in an LXD container. Unfortunately, all e-mail is currently treated as internal e-mail, effectively making it an openrelay. Container host VPS, with its own ...
John Faraday's user avatar
3 votes
1 answer
2k views

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 ...
michacassola's user avatar
0 votes
0 answers
336 views

What is the easiest way to transparently compress directories on ext4 in lxd container (btrfs mounted)?

What is the easiest way to compress directories transparently on lxd container server with ext4 file-system when the lxd/lxc is mounted on btrfs file system with btrfs RAID1? The container has tons ...
Angsuman Chakraborty's user avatar
0 votes
1 answer
1k views

lxd init gives dnsmasq error -- address already in use

When trying out lxd on a desktop ubuntu 18.04, I get the following error sudo lxd init Would you like to use LXD clustering? (yes/no) [default=no]: Do you want to configure ...
hbogert's user avatar
  • 739
1 vote
0 answers
151 views

Custom images for LXC deployment

With docker you can build a custom image by starting with a base OS image from the community such as Ubuntu, or Alpine, then install your app and any other dependencies (ngnix for example). Then ...
Mick's user avatar
  • 111
-1 votes
1 answer
676 views

Need help installing Modoboa Mail Server

this is my first job as IT. I don't have much knowledge about Servers, but I'm trying to learn really hard. Having said that, please, I really need help trying to deploy a mail server. I have this ...
edusandovall's user avatar
0 votes
1 answer
5k views

How to fully disable IPv6 in LXD containers with systemd-networkd

I am trying to fully disable IPv6 on an IPv4-configured virtual network adaptor in an LXD container, but it seems to be autoconfiguring an IPv6 address anyway. Quoth to the documentation: Note ...
Luke McCarthy's user avatar
5 votes
1 answer
1k views

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] ...
Dominick Pastore's user avatar
2 votes
1 answer
218 views

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, ...
exebook's user avatar
  • 202
0 votes
1 answer
3k views

How to route between two bridge interfaces?

So I have a total of two bridges. One has the 10.0.0.1/24 subnet (br0), and the other has the 10.1.0.1/8 subnet (br1). I want to setup an NGINX reverse proxy that would run on a container connected ...
donghakim187's user avatar
2 votes
1 answer
252 views

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 ...
bugzbunny's user avatar
1 vote
1 answer
256 views

Unable to delete directory, imutable flag is not set, not mounted

So i have this directory that causes a lot of problems when trying to delete lxd via snap. The directory in question is /var/snap/lxd/common/lxd/storage-pools/default/. If I try to delete it with sudo ...
Elias F. Fyksen's user avatar
0 votes
2 answers
2k views

How to trust self-signed LXD daemon TLS certificate in Vagrant?

Following up from another question I've got the LXD daemon running and working: $ curl --insecure https://127.0.0.1:8443 {"type":"sync","status":"Success","status_code":200,"operation":"","error_code"...
l0b0's user avatar
  • 51.8k
0 votes
1 answer
318 views

Can the timeout of conjure-up/juju operations be configured?

I'm trying to install OpenStack with NovaLXD on localhost via conjure-up and it keeps timing out... (at home for dev/learning purposes) My hardware is ancient... it's an old Dell poweredge 2850 (...
thewyzard's user avatar
  • 101
0 votes
1 answer
450 views

LXD Container/What's the Preferred Way of Accessing Files from Host

I can access files inside a LXD container by running lxc from the host: root@Host# lxc exec Container_Name bash root@Container_Name# touch /tmp/hello Or by accessing the files directly from the host ...
David_Springfield's user avatar
1 vote
1 answer
839 views

How to create a default lvm pool on lxd v3

The expected lxc storage create default lvm lvm.thinpool_name=lvdata lvm.vg_name=vghdd lvm.use_thinpool=true fails with the Error: LXD already uses volume group "vghdd" for pool "default" while ...
zerkms's user avatar
  • 829
1 vote
0 answers
1k views

Assigning an ipv4 address to (LXD) linux containers

I've got a home server running with a bunch of linux containers and they're all getting their ip addresses assigned automatically via dhcp on my router. I'd like to be able to assign ip addresses ...
eiton's user avatar
  • 111
0 votes
1 answer
724 views

Missing cgroup hierarchy in LXC container

Armed with this LXD configuration: raw.lxc: |- lxc.mount.auto = cgroup:mixed A 4.x kernel, and no AppArmor. I should see the cgroup hierarchy in my guest os under /sys/fs/cgroup right? Instead, I ...
jcalfee314's user avatar
3 votes
2 answers
8k views

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 ...
0xC0000022L's user avatar
  • 16.8k
2 votes
1 answer
3k views

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 ...
0xC0000022L's user avatar
  • 16.8k
1 vote
0 answers
272 views

lxd with own br0 Network is Unreachable in centos conteiner

When I run lxd init I choose this setting. Would you like to create a new network bridge (yes/no)? no because I created my own br0 in /etc/network/interfaces source /etc/network/interfaces.d/* ...
cyprian's user avatar
  • 131
0 votes
1 answer
582 views

Get Array of LXD Snapshot Names

I am pretty green when it comes to grep, can someone point out how I can get an array in bash of the list of snapshot names (NOTE: just the names) when I do a lxc info mycontainer ? My current ...
Kevin's user avatar
  • 191
2 votes
2 answers
455 views

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, ...
lofidevops's user avatar
  • 3,189
4 votes
2 answers
1k views

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 ...
Lisio's user avatar
  • 161
12 votes
2 answers
10k views

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 ...
stefanos's user avatar
  • 123
2 votes
2 answers
3k views

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 ...
Daniel Guldberg Aaes's user avatar
2 votes
1 answer
657 views

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 ...
Sebastian Busek's user avatar
0 votes
1 answer
2k views

Route outging traffic from private network (lxdbr0)

i set up lxd on my host system with lxdbr0 bridge as nic. Now my containers get their ip addresses via dhcp from lxdbr0 (in the range of 10.204.x.x). Also i have 2 public ip addresses. One for the ...
SEUH's user avatar
  • 103
2 votes
0 answers
1k views

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 ...
Andrew's user avatar
  • 21