Questions tagged [lxd]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
73 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 ...
0 votes
0 answers
49 views

LXD Routed Nic not getting internet access

I have an address of 10.1.1.24 which is my IP to the internet. I have made a profile as follows: config: user.network-config: | version: 2 ethernets: eth0: addresses: ...
  • 115
0 votes
0 answers
22 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 ...
0 votes
0 answers
67 views

WordPress multisite behind Apache2 reverse proxy with letsencrypt SSL cert

I have several websites running on LXD containers sharing an external IP and directed to via Apache2 reverse proxy. On one of the sites, I tried to set up multisite with subdirectory structure, e.g. ...
  • 1
0 votes
2 answers
352 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/...
  • 11
0 votes
1 answer
311 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 ...
1 vote
0 answers
87 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 ...
  • 111
0 votes
0 answers
55 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 "...
  • 101
0 votes
0 answers
117 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 ...
0 votes
0 answers
32 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: ...
  • 19
0 votes
1 answer
559 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 ...
0 votes
0 answers
69 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/...
  • 853
0 votes
0 answers
239 views

LXD vs libvirt LXC driver

Are LXD and libvirt with LXC driver doing the exact same thing (just provision LXC containers)? If so, is there any advantage in using one over the other?
0 votes
0 answers
300 views

LXD and Multipass - will LXD 5.0 LTS support or use multipass

I am thinking about using multiple microk8s nodes on MacOs M1. If I am using LXD I can have multiple VMs running microk8s in a virtuel cluster simulating one-n k8s nodes. LXD looks very good for ...
  • 167
1 vote
1 answer
326 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 ...
  • 21
1 vote
1 answer
278 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 ...
  • 21
0 votes
1 answer
240 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). ...
  • 239
0 votes
1 answer
786 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 ...
  • 293
1 vote
0 answers
226 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 ...
  • 393
1 vote
2 answers
1k 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 ...
  • 293
0 votes
1 answer
111 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&...
  • 1
1 vote
1 answer
60 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 ...
1 vote
1 answer
161 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 ...
  • 13
0 votes
1 answer
537 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 ...
1 vote
2 answers
607 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 ...
  • 141
1 vote
3 answers
3k 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@...
  • 287
1 vote
0 answers
27 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 ...
  • 247
0 votes
1 answer
67 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. ...
1 vote
0 answers
712 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 ...
3 votes
0 answers
202 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 ...
0 votes
1 answer
877 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 ...
  • 101
5 votes
2 answers
4k 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 ...
1 vote
0 answers
329 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
1 vote
1 answer
720 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 ...
  • 11
0 votes
1 answer
119 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=...
0 votes
1 answer
509 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 ...
0 votes
1 answer
474 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 ...
3 votes
0 answers
736 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@...
0 votes
1 answer
486 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 ...
0 votes
1 answer
357 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 ...
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 ...
  • 103
0 votes
1 answer
190 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....
1 vote
1 answer
996 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 ...
2 votes
1 answer
1k 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 ...
0 votes
0 answers
438 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:...
0 votes
1 answer
163 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. ...
2 votes
2 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. ...
  • 521
4 votes
0 answers
381 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 +--...
  • 1,577
1 vote
0 answers
636 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 ...
  • 11
0 votes
1 answer
1k views

ZFS file system and zpool size allocation

I am using zfs on some of my lxc containers at start when I was configuring I allocated 500GB my zpool list NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT lxd 496G ...
  • 123