Questions tagged [lxd]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
19 views

Connection Refused between 2 VM 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://...
0
votes
1answer
31 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 ...
1
vote
0answers
27 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 ...
0
votes
1answer
42 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 ...
0
votes
1answer
23 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
vote
1answer
18 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
1answer
38 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 ...
0
votes
1answer
59 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 ...
0
votes
2answers
128 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 ...
1
vote
0answers
14 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 ...
0
votes
0answers
26 views

Error: Failed container creation: Create LXC container: Invalid devices: Detect root disk device: No root device could be found, How to fix this?

azureuser@deletevm:~$ lxc image list +-------+--------------+--------+---------------------------------------------+--------+----------+------------------------------+ | ALIAS | FINGERPRINT | PUBLIC | ...
0
votes
0answers
18 views

Deploying LXD container breaks node networking

I am following the charms deployment guide for OpenStack using Juju (i.e. here: https://docs.openstack.org/project-deploy-guide/charm-deployment-guide/victoria/) I get up to the deployment for mysql-...
0
votes
1answer
54 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. ...
0
votes
0answers
70 views

Is there a way to create LXD containers using a Dockerfile-like format

Dockerfile is a great way to describe container images. I have a project where I am attempting to easily create sandboxes. LXC looks attractive for this purpose, because it creates "system ...
1
vote
0answers
324 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 ...
1
vote
0answers
72 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
1answer
315 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 ...
3
votes
2answers
1k 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
0answers
105 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
1answer
286 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 ...
0
votes
1answer
43 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
1answer
315 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
1answer
255 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
0answers
491 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
1answer
248 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
1answer
233 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
1answer
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 ...
0
votes
1answer
115 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
1answer
814 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
1answer
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
0answers
292 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
1answer
128 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. ...
1
vote
2answers
3k 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. ...
4
votes
0answers
335 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
vote
0answers
578 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 ...
0
votes
1answer
850 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 ...
2
votes
2answers
3k views

How to create a non-nat lxd network bridge (using lxd network)?

How to create a non-nat lxd network bridge? I have tried the below network configs, then ran sudo service networking reload and lxc stop and lxc start for the container in question. I was unable to ...
1
vote
2answers
1k views

Move LXD container to other storage

I have an issue with my current storage.img file (btrfs). I had 2TB data inside a container and so the storage.img got 2TB large. After this I deleted everything, leaving me with 100GB of real data. ...
0
votes
1answer
389 views

How run docker on VDS (lxd/containers)

I have VDS like lxd/container (I see it df -h). Os is installed debian 7.11. Kernel: uname -r 4.13.0-19-generic I want to run mysql in docker which installed into VDS. I pull mysql: docker images ...
0
votes
0answers
89 views

Is it possible to get dynamic lease of IP address from LXD container on Google Compute Engine?

Followed “Ubiquiti Networks UniFi Controller in an Ubuntu LXD Machine Container“ when setting up a new Ubuntu VM on Google Compute Engine. But the container tries to lease an IP address, but nothing ...
2
votes
0answers
236 views

LXD external static ip

I'm using LXD for managing LXC containers. I used the "standard" bridged NAT setup up to now. But know I got an additional static ip which is external available. I want to attach it to my container ...
3
votes
1answer
895 views

How to shrink btrfs image file used by LXD storage?

I have btrfs image file set as backend for LXD (2.18) but I would like to shrink it's size. What I did: mounted image to loop device losetup /dev/loop1 /home/btrfs.img mounted device to /mnt dir ...
0
votes
1answer
2k views

Authenticate to LXD rest API over network , certificate auth keeps failing

I am trying to access LXD REST API over the Network. Followed : Link to Doc. lxc config set core.https_address "[::]:8443" lxc config set core.trust_password <some random password> curl -s -...
0
votes
1answer
255 views

Failed to create armhf machine on LXD

I am trying to make ubuntu 16 armhf machine on ubuntu 16 64 host machine. I tried withafter installing qemu-user-static packages. Running this command lxc launch images:ubuntu/xenial/armhf ...
0
votes
1answer
209 views

CentOS7 LXC Container shell access on Ubuntu 17.04 Host

I know this is probably google skills deficiency on my behalf but for the love of god I cant shell into a CentOS 7 container on an Ubuntu 17.04 host. user@ubuntu1704:~$ lxc shell centos7 user@...
1
vote
1answer
69 views

LXC 2.0 Ownership problems

If I launch an Ubuntu 16.04 container and install for instance memcached on it, then almost all the processes /proc//* descriptors are owned by nobody.nogroup or 65334.65334 Where as if I would ...
1
vote
1answer
833 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/* ...
1
vote
1answer
304 views

Limiting disk IO on LXD containers under a mdadm RAID 1 array

On a container running on a host with two disks on a mdadm RAID 1 array, I have tried without success to limit the disk IO of a LXD container named ci with: lxc config device set ci root limits.read ...
1
vote
1answer
3k views

Could not set limit for 'nofile' - "Operation not permitted" in a LXD unprivileged container

I am running a centos7 unprivileged LXD container on a ubuntu 17.04 host. I have a problem setting ulimit for NOFILE inside the container, if it is running in unprivileged mode. Bellow are the steps ...
5
votes
2answers
5k views

lxd container: port forwarding like docker

Is there a way to do port-forwarding in lxd-containers like docker does? I heard some rumours that there is no easy way. According to the homepage of lxd this is their goal: Intuitive (simple, ...