Questions tagged [lxd]

The tag has no usage guidance.

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

How to route two DHCP interfaces to two different networks

I use LXD and cloud-init to configure an instance with two interfaces which get assigned IP's via DHCP. eth0 (10.23.44.177/24) which is connected to a bridge on the host machine (lxdbr0) to get out ...
Ender's user avatar
  • 103
0 votes
0 answers
25 views

Unable to launch LXD VM

I'm trying to create a VM using LXD. The information on the server I am working on is as follows. os: Linux cpu01 5.4.0-165-generic #182-Ubuntu SMP Mon Oct 2 19:43:28 UTC 2023 x86_64 x86_64 x86_64 ...
illlijiii's user avatar
1 vote
1 answer
42 views

after migrating kvm virtual machine with Centos7 to LXD container, the only process that starts at boot is systemd (/sbin/init)

the title pretty much describes it all. After starting the container the only running process is /sbin/init which is a link to systemd. No syslog, empty journalctl, lxc-start with console attached ...
Seweryn Niemiec's user avatar
1 vote
1 answer
217 views

Debian 12 + LXD/LXC security.idmap.isolated fails

Debian 12.1 (6.1.0-11-amd64) running LXD/LXC and on an unprivileged container setting security.idmap.isolated=true seems to fail to update the owner/group of the container's files. Here is an example: ...
TCB13's user avatar
  • 1,218
0 votes
0 answers
79 views

Error: Storage pool "default" unavailable on this server (losetup command fail)

I can't start my lxc/lxd containers anymore. I get the error : Error: Storage pool "default" unavailable on this server. I am on debian sid. The root issue seems to be that the command ...
m-ar-c's user avatar
  • 1
0 votes
0 answers
208 views

Using ZFS, volume size increase are not seen by LXD container

I'm trying to use LXD to test Ansible deployments, but the container are too small. I read the documentation from linuxcontainers.org here, and I still cannot increase the size on the root disk of my ...
Jean's user avatar
  • 123
1 vote
1 answer
826 views

Password of new user with LXD and Cloud-init

I'm trying to create a profile to automate the creation of a container, but I'm having trouble with cloud-init. For some reason the password is not being set for the user and is also not being added ...
Matheus Saraiva's user avatar
0 votes
0 answers
73 views

Serve cephFS files over HTTP (or S3?)

I have a CEPH+LXD cluster configuration. And I would like to serve the files in the container over HTTP (S3,whatever doesn't matter). Is there a way to do this using the rgw service? Like can I point ...
mohamed emad's user avatar
1 vote
2 answers
2k views

A few users and subuid/subgid mapping

I cannot get my head around the userns-idmap mapping ie with sub{uid,gid} mapping stuff. Here's what I have: # lxc launch images:ubuntu/22.04 c1 # lxc config device add c1 home disk source=/home/user3/...
dogman's user avatar
  • 31
0 votes
1 answer
1k views

Redirect traffic to an IP into a LXC container

I have a dedicated server (running Ubuntu 20.04) running a VM in Virtualbox. This VM (also running on Ubuntu 20.04) has several applications running in dedicated LXC containers managed by LXD. The VM ...
Achedezo's user avatar
1 vote
0 answers
195 views

Re-mount btrfs LXD storage pool to LXD

I have a Linux system with 2 hard disks, one of them carrying the Ubuntu-flavored linux system, and the other a btrfs-formatted disk carrying the LXD containers. It was easy to set up LXD to make use ...
alex k's user avatar
  • 111
0 votes
0 answers
90 views

when I use the LXC IP on the browser it gives "This site can’t be reached"

Basically I want to establish website with the LXC. so I installed LXD and created LXC called app1, then installed apache2. All are running, but when I use the LXC IP on the browser it gives "...
Astro's user avatar
  • 101
0 votes
0 answers
202 views

iptables / LXD - Mangle iptable - Route outgoing distant port (to distant server port 21) via eth0

To summarize the context, it's an lxd container that always connects as an OpenVpn client. {wan} <-> {192.168.x.x <-> iptables <-> lxd bridge host 10.0.3.1} <-> {lxd container ...
n.karlen's user avatar
0 votes
1 answer
993 views

Docker inside LXD starting container process caused "apply caps: operation not permitted"

I got this error when trying to run a docker container inside an LXD container gpu is required to run this docker container(I think this might have an effect (base) root@sim2real:~# sudo docker start ...
nowzycc's user avatar
1 vote
0 answers
147 views

LXD: restore the deleted image

After creating an lxd container in the ZFS storage I deleted the based image by mistake. Now the ZFS structure looks like: # zfs list -t all -o name,clones ... main/containers/mail ... main/deleted/...
Veniamin's user avatar
  • 863
2 votes
2 answers
665 views

Running tasks inside LXD container through ansible

Trying to figure out the best way to get ansible to do its magic within the containers. Was thinking of using ssh in each container, but then that is server-dependent. or I have to come via the proxy ...
gzala's user avatar
  • 31
1 vote
1 answer
509 views

Ansible (SSH + LXD) plugin

I have a setup of ansible and different server for LXD. Can anyone provide me the plugin that can be used to do stuffs inside LXD container through ansible like installing nginx or removing default ...
gzala's user avatar
  • 31
0 votes
1 answer
473 views

How to pass a cloud config to LXD?

I've been to countless sites including this one, trying to figure out how to make LXD run a cloud-config when I launch my LXD container. Some places recommend setting up a profile (didn't work). ...
Karl's user avatar
  • 239
0 votes
1 answer
2k views

Can I restore a Vzdump tar archive to an LXD/LXC container

I have a number of "tar" files created from an old proxmox 6 server, using the vzdump tool. The person that originally created them has left the company, and the company has changed it's ...
shawty's user avatar
  • 293
2 votes
0 answers
450 views

How to move a linux container to a remote server running proxmox 7.0?

I am currently in the process of migrating a server running several linux containers to a server managed by proxmox. In the past when i moved a linux container to a different host i just used the LXD ...
harald's user avatar
  • 403
1 vote
3 answers
2k views

How do I download and install a regular DPKG package in a cloud-init script?

I'm spinning up lightweight containers on a Linux Host using LXD/LXC. The sole purpose of these containers is to host "Dotnet & Dotnet core apps" For a while I've been using Ansible, but ...
shawty's user avatar
  • 293
0 votes
1 answer
215 views

Apache2 simple reverse proxy forwarding http traffic to lxd container only loads plain html very slowly on graphic browser

The actual web servers run on LXD containers, while the host Apache2 simply forwards http traffic to the containers. The setup is simple on the host, everything else is default: <VirtualHost *:80&...
seamux's user avatar
  • 1
2 votes
1 answer
207 views

How do I refer to the 'LXD host from an LXD container

We currently run our services in a series of LXD containers - we have one running a nginx server as a reverse proxy, pointing at each service, and where I need to connect to a container from the host ...
Journeyman Geek's user avatar
1 vote
1 answer
224 views

LXD on ZFS on LVM on H/W RAID 10

I have a Dell R540 with PERC H730P running RAID 10 over 12 DISK to the tune of ~22TB. I want to run various applications/services in LXD containers. I understand that ZFS is preferred for LXC storage ...
simonw's user avatar
  • 35
1 vote
1 answer
918 views

What is an appropriate backup strategy for LXD with BTRFS storage backends

I'm about to re-configure my home server from scratch and am wondering what would be the best strategy to backup my LXD containers. Meanwhile I am running Ubuntu 20.04 LTS and have some services ...
sandman85's user avatar
1 vote
2 answers
1k views

lxc send file or copy

I am trying to copy a file with lxc, now I am already desperate. Here are some commands that I have tried: #temp=$(cat 2.sh) #lxc-attach -n containerName echo $temp > /root/2.sh #lxc-attach -n ...
ICIM's user avatar
  • 162
1 vote
3 answers
5k views

How to fix ContainerCreating errors while deploying metallb?

For testing purpose, I have installed ubuntu 21 on vmware esxi server. On that machine, spinned up kubernetes using lxc containers following this repository LXC is spinned up and running. adminuser@...
uday's user avatar
  • 372
1 vote
0 answers
39 views

ufw allow responses from fixer.io

I have a webapplication that serves a gui via https to the public internet. This application runs inside an LXD container (ubuntu 18.04) on an LXD host (ubuntu 20.04). The container has two proxy ...
vrms's user avatar
  • 287
0 votes
1 answer
112 views

LXD Container IPv4 Interface Management

Ubuntu 18.04.4 lxd 3.0.3 lxc 3.0.3 I have had several containers running without issue for a long time. Today I was making changes to my network and one of the containers picked up a DHCP address. ...
user1801810's user avatar
1 vote
0 answers
990 views

LXC No space left on device when trying to delete instance

I tried to follow the the LXC tutorial https://www.digitalocean.com/community/tutorials/how-to-set-up-and-use-lxd-on-ubuntu-16-04 When running command lxd init I used all defaults except 1GB as disk ...
Thang Tran's user avatar
3 votes
0 answers
349 views

Why su command takes to long in nested Debian LXD containers?

I observed that the command su takes too long (30 seconds) when it is executed in a LXD Debian container that is nested into an Ubuntu LXD container. This overhead does not occur Debian containers ...
Daniel Hernández's user avatar
0 votes
1 answer
1k views

Route Tinyproxy outgoing connections through OpenVPN interface

I've created an Ubuntu 16.04 lxd container and setup Stunnel, Tinyproxy and OpenVPN client in it. The goal is to connect to Tinyproxy through Stunnel and force Tinyproxy to use OpenVPN's interface for ...
Mishgun_'s user avatar
  • 101
6 votes
2 answers
8k views

No network connectivity in the LXC container set up in the "routed" mode

I'm experimenting with lxc/lxd in Vagrant, but i'm quite new to it. I managed to create running container, but I cannot ping anything (including 8.8.8.8) from inside of it. I can ping its IP from my ...
Łukasz Zaroda's user avatar
1 vote
0 answers
537 views

How to delete all snapshots in lxd cluster?

I am trying to find a fast method, how to delete all snapshots in lxd cluster. The only way I see is using lxc delete container/snap for each snap. Am I missing something? Thanks
Přemysl Šťastný's user avatar
1 vote
1 answer
1k views

lxd: dnsmasq not resolving containers ip anymore

I have Lxd installed on an Arch system (from packages, not snapd), yesterday I rebooted the system after an upgrade and the name resolution of the fake domain .lxd stopped working; dns is provided on ...
Spuria's user avatar
  • 11
0 votes
1 answer
203 views

Get client IP in exim LXD container

I set up an exim server in a Debian 10 container with LXD and then created a proxy device to map the SMTP port from the host to the container: lxc config device add mycontainer myport25 proxy listen=...
Jesús Ángel's user avatar
0 votes
1 answer
617 views

Fedora 31 LXC service failed to start "Failed to start FUSE filesystem for LXC"

I'm trying to setup LXD system for test environments on Fedora Desktop workstation but the LXD service just wont start because the dependency service LXC fails. After trying to start the sudo ...
The amateur programmer's user avatar
0 votes
1 answer
574 views

Getting the firewall to work inside LXD containers using NAT?

I'm running a single NGINX proxy container (with proxy_protocol=true) alongside with multiple web containers, which is working beautifully. The only problem however, is that using proxy protocol the ...
Skyrider's user avatar
3 votes
0 answers
944 views

How to mount specific /proc for all Docker containers on a host?

I am running Docker containers within an LXD container and I have noticed that Docker mounts it's own copy of /proc despite the LXD container having container-aware /proc files. For example: root@...
Ilhaan Rasheed's user avatar
0 votes
1 answer
622 views

How to forward traffic from a specific domain from apache2 to LXC container

I am currently running apache2 on my server, but would like to forward http(s) traffic requesting a specific host (ex. lxc.example.com) to an LXC container which can be accessed by a local ip address ...
Nicholas Eckardt's user avatar
0 votes
1 answer
483 views

lxdbr0 and host machine source based routing

I have fairly regular LXD setup (version 3.0.3) with the default bridge interface lxdbr0 on Ubuntu 18.04.2. On the other hand my host machines network is not the most regular. I have two bridges (br0 ...
duckasylum's user avatar
0 votes
1 answer
1k views

Overhead of LXD

Question for server structure here. Is the overhead for LXD small enough to use it for per-process containers? E.G if I have a LAMP stack, media server, game server, etc. is it viable to split each ...
Prodigle's user avatar
  • 103
0 votes
1 answer
232 views

LXD container restricted to specific user

If I have 2 users with the 'lxd' group, user-1 and user-2. If user-1 starts a container, then I think that user-2 may stop it, destroy it or even run command on that container or connect via ssh to it....
Pierre Emmanuel Lallemant's user avatar
1 vote
1 answer
1k views

Briding LXD Containers to VLAN

I was trying to do something that is supposed to be pretty easy but for some reason it not work. I want to bridge two LXD containers to the same VLAN. To do this I create the VLAN interface over the ...
Gabriele's user avatar
2 votes
1 answer
2k views

Is lxd/lxc a suitable replacement to virtual machines (vSphere, for example) for server infrastructure? [closed]

I would like to move my servers to virtual machines. This is because it'll make it easier for me to fire up more machines and back them up in case the physical server is damaged (I'm not aware of ...
The Quantum Physicist's user avatar
0 votes
0 answers
638 views

How to set an IPv6 neighbour discovery proxy with Netplan?

How can I configure the following commands in Netplan? ip -6 neigh add proxy 2a03:4000:21b:44bc:1::1 dev ens3 ip -6 neigh add proxy 2a03:4000:21b:44bc:1::11 dev ens3 ip -6 neigh add proxy 2a03:4000:...
Peter Gloor's user avatar
0 votes
1 answer
186 views

LXD + ZFS on one-disc systems

I'd like to experiment with LXD on a dedicated NUC. Among other options, LXD supports ZFS. But I have the following questions: Case 1: Assume my NUC has one disc, say 256 GB, that supports the OS. ...
Lloyd R. Prentice's user avatar
2 votes
3 answers
4k views

How to resize lxc/lxd images, if i am using LVM backend?

I'm using LXD few years and I'm glad to use this platform in my testing environment. But few days ago, I couldn't install Microsoft SQL server 2017. The reason was, that I used default ZFS backend. ...
Piduna's user avatar
  • 571
4 votes
0 answers
429 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 +--...
Greg's user avatar
  • 1,657
1 vote
0 answers
677 views

HAProxy returns 503 (80 & 443 frontends + redirections managed by virtualhosts)

I've already looked for many posts, but no one solved my problem... Let me explain the context : 3 containers on a dedicated server : [10.173.223.10] haproxy [10.173.223.11] Container_A (contains ...
Arlyss's user avatar
  • 11