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
1 answer
21 views

Nginx in LXD container: remote_addr showing host IP instead of client IP in logs

I used the command lxc config device add nginx-proxy hostport443 proxy listen=tcp:0.0.0.0:443 connect=tcp:127.0.0.1:443 to allow the nginx service within the "nginx-proxy" instance to ...
user2201915's user avatar
1 vote
2 answers
90 views

snapcraft stuck on instance status preparing

I'm trying to follow the snapcraft tutorial on Ubuntu 22.04. I've installed and initialized lxd and snapcraft. When I run the snapcraft command it seems to hang on instance setup and eventually fails. ...
Tyler Weaver's user avatar
0 votes
1 answer
83 views

How to bridge an LXD network for internet access?

I'm using LXD 4.0.9 on Ubuntu 20.04, created a network, a profile, and added storage to a drone like the following ... $ lxc network create drone_lan ipv4.address=none ipv6.address=none $ lxc profile ...
Ender's user avatar
  • 125
0 votes
1 answer
57 views

lxd/lxc adding storage pool fails with "outside mount path"

I have installed two additional NVMe 7TB SDD as RAID1 with btrfs (having an already running btrfs RAID1 with 1.8TB in an existing storage pool containing 7 containers) Adding the 7TB RAID1 as a ...
MarcelR's user avatar
0 votes
0 answers
23 views

WIN11 VM Does Not Start

I recently installed win11 vm using the method shown here https://ubuntu.com/tutorials/how-to-install-a-windows-11-vm-using-lxd#1-overview. I finished the installation up to end of step 3 where ...
Tonni's user avatar
  • 1
0 votes
0 answers
37 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
0 votes
0 answers
43 views

Troubleshooting lxc launch issues from custom image

There is an image exported from another system, about 5GiB in size (compressed), estimated 13GiB uncompressed. root@cluster04:~# lxc launch testimg test-container --storage remote -d root,size=50GiB ...
Ildefonso Camargo's user avatar
0 votes
0 answers
72 views

How to specify a storage pool for images?

Let's say I have two storage pools configured. On the first one I want to deploy Ubuntu-based containers, and on the other, for example, Debian-based containers. How to specify a pool when copying an ...
doks's user avatar
  • 11
0 votes
1 answer
187 views

LXD network lxdbr0 is "unavailable". What does that mean and how can I fix it?

When trying to create an LXD container I get: $ lxc launch ubuntu: Creating the instance Instance name is: included-mite Starting included-mite Error: Failed pre-start check for device "eth0"...
rptb1's user avatar
  • 101
0 votes
0 answers
28 views

Windows 11 (or win10,win2k19) LXD 5.17 not booting

I am using the 'How to install a Windows 11 VM using LXD' ubuntu tutorial. I have tried to install windows 11 (win10 and window2k19) on LXD 5.17. On each VM boot it doesn't recognise the hard disks ...
chris young's user avatar
0 votes
0 answers
58 views

unable to stop few lxc vms

im trying to stop few lxc vm but not working whereas other vms are able to. admin1@oc-vm:~/my-stuff$ lxc ls +-----------------+---------+------------------------+------+-----------------+-----------+ |...
sanjeeth's user avatar
0 votes
0 answers
23 views

lxc container takes a long time to assign ip or doesn't get an ip

It takes a huge time to get an ip address to lxc vm. At time, ip address doesn't get assigned. lxd host details: 16 core and 32 gb ram. admin1@oc-vm:~/my-stuff$ cat /etc/os-release PRETTY_NAME="...
sanjeeth's user avatar
3 votes
1 answer
321 views

LXD ubuntu image startup issue: snap.lxd.activate.service not found

I am new to LXC/LXD and would like to start using it, but I have encountered an issue while launching a new ubuntu 22.04 image. I have installed lxd using snap, following the instructions given on the ...
B Keulen's user avatar
0 votes
0 answers
33 views

Migrate from apt lxc 3.0.3 to snap 4.0.9. Mount points problem

I need to upgrade my Ubuntu from 18.04, and for this, I need to upgrade LXC/LXD to snap version. So, I ran: lxd.migrate and I got the following output: === Destination server LXD version: 4.0.9 LXD ...
Alex Oat's user avatar
0 votes
1 answer
27 views

[LXD]Lvm thin snapshot shipping support for lvm storagepool move

As i understand with Zfs lxd storagepool move is fast ( as no rsync is involved) as things can be moved from different Zfs Storage pools via snapshot diff. However no clarity is there for lvm thin ...
chitvan chhabra's user avatar
0 votes
0 answers
40 views

Updating Nextcloud 26 to Nextcloud 27 on an LXD container (high cpu after upgrade)

Has anyone tried updating from Nextcloud Hub 4 (26) to Nextcloud Hub 5 (27) on an LXD container. When I try this, the cpu is pegging like crazy filling up the syslog with a lot of output. Its the ...
w_tbt's user avatar
  • 51
0 votes
0 answers
31 views

Replace VMware with LXD running inside wsl?

Is it a good idea to replace VMware with LXD running in wsl (Ubuntu) or will it run way worse than a vm in vmware? I really want solid performance and I’m not sure if wsl can get me that.
Luxvoo's user avatar
  • 181
5 votes
1 answer
3k views

How do I completely remove LXD from my system?

I am running version 22.04.01 of Ubuntu and I installed LDX using the apt with the lxd-installer package. How do I completely remove LXD from my system?
Hendré's user avatar
  • 719
0 votes
0 answers
70 views

VPN gateway + UFW killswitch + port forwarding

I'm trying to set up a VPN gateway (using LXD containers). I'm using ufw for killswitch service. Almost all is working except port forwarding. ┌─────────────────────────┐ ...
kinu's user avatar
  • 1
1 vote
1 answer
775 views

How to install qemu-kvm on kinetic when package not showing up in apt?

I'm going around in circles trying to install qemu so I can run a lxd vm. lxd gives me the error Error: Failed instance creation: Failed creating instance record: Instance type "virtual-machine&...
nobody special's user avatar
0 votes
1 answer
101 views

Unmanaged vlan bridges

I am trying to add a few unmanaged bridges to LXD. I have 2 NIC's on the server, one is the main Lan for the server and it's own services and the other is meant to be used by LXD exclusively. I want ...
Denny's user avatar
  • 1
0 votes
0 answers
37 views

Flutter snapcraft succesfull build yet missing .snap file

I am building my app on Ubuntu 22.10, using snapcraft build --use-lxd. I get the output: ] -- Installing: /root/parts/myapp/build/build/linux/x64/release/bundle/data/flutter_assets/assets/icons/...
Tom Raganowicz's user avatar
0 votes
1 answer
426 views

Unable to start a multipass instance: Failed start validation for device "eth0": Instance DNS name "currentlts" already used on network

I am running Ubuntu 22.04 on a laptop (x86_64) and on it I have seven Ubuntu 22.04 instances. They have all been running fine; six still are. However, one of them does not start any more. When I issue:...
PeterKA's user avatar
  • 113
0 votes
0 answers
822 views

Updated guide to install windows 11 in Ubuntu using LXD?

I have been trying to install Windows 11 inside Ubuntu 22.04 via LXD without success. Several steps outlined in the guide How to install a Windows 11 VM using LXD fail or don't work as presented. For ...
SkyWalker's user avatar
  • 333
0 votes
0 answers
244 views

dist-upgrade cant be finished - problems with lxd - Ubuntu 18.04 - fail certbot install

Good evenening, i use Ubuntu 18.04.6 LTS and i want use this command to Upgrade the Server (before i did update): sudo apt-get dist-upgrade it shows me that there are some errors: sudo apt-get dist-...
MaxKrone's user avatar
0 votes
0 answers
375 views

What makes LXD autostart?

I can see that snap creates and enables a snap.lxd.activate.service service, that runs lxd activateifneeded. But I don't see any signs of it in snapcraft.yml. snap.lxd.activate.service is enabled and ...
x-yuri's user avatar
  • 581
1 vote
2 answers
3k views

How to bridge local LAN using Multipass

Looking for some assistance in trying to get the network bridging to work (consistently/more than once) when creating VMs with Multipass. I have tried so many things with the documentation I've found,...
Bob Boursaw's user avatar
0 votes
1 answer
1k views

22.04 - macvlan module missing?

I am trying to copy some lxd containers from a raspberry pi running Ubuntu 20.04 to a raspberry pi running 22.04. The containers use macvlan, which produces the following error if I try to run the ...
Kcore's user avatar
  • 51
0 votes
1 answer
4k views

How do I configure persistent firewall settings in Ubuntu 22.04 LTS - confused about ufw, nfw and iptables(-nfw/-legacy)

TL;DR: how do I configure firewall rules to be persistent? I am not using UFW, I believe I am using iptables-nft. First, I have started from pretty recent vanilla Ubuntu 22.04LTS installation (some ...
Janne Mattila's user avatar
0 votes
1 answer
166 views

Import CentOS 7.7 iso image into LXD

How to import a specific CentOS 7.7-1908 ISO image into LXD cluster running on Ubuntu 20.04 host, and build a CentOS VM ?
Rajesh A's user avatar
0 votes
1 answer
149 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: ...
Pulsar's user avatar
  • 1
1 vote
1 answer
394 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 ...
Mnemosyne's user avatar
  • 151
0 votes
0 answers
123 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 ...
exebook's user avatar
  • 329
1 vote
1 answer
644 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 ...
Karl's user avatar
  • 331
0 votes
0 answers
260 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 ...
RokeJulianLockhart's user avatar
0 votes
1 answer
494 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 ...
Raphael10's user avatar
  • 141
2 votes
1 answer
371 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 ...
FFaFafy's user avatar
  • 53
1 vote
0 answers
2k 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 ...
Brgv's user avatar
  • 11
0 votes
1 answer
686 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 ...
Carlo's user avatar
  • 11
0 votes
1 answer
169 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 ...
Andrey Pavlov's user avatar
2 votes
1 answer
490 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 -...
Chameleon's user avatar
  • 121
0 votes
2 answers
45 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 ...
vrms's user avatar
  • 491
1 vote
1 answer
1k 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?
lluke's user avatar
  • 111
0 votes
1 answer
723 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 ...
Sebastien Beausoleil's user avatar
0 votes
2 answers
1k 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 ...
hurelhuyag's user avatar
2 votes
1 answer
4k 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: ...
MeanwhileInHell's user avatar
1 vote
1 answer
941 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....
Thiago Martins's user avatar
1 vote
1 answer
2k 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, ...
Welite's user avatar
  • 21
6 votes
1 answer
3k 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 ...
Melab's user avatar
  • 1,668
1 vote
2 answers
1k 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?
k1ngstire's user avatar

1
2 3 4 5 6