Questions tagged [lxd]
62 questions
1
vote
1 answer
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
curl -s -k --cert ~/.config/lxc/client.crt --key…

Maharshi Raval
- 63
- 2
- 8
1
vote
1 answer
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 install memcached it on my host machine these would be…

Jakob Simon-Gaarde
- 73
- 5
1
vote
1 answer
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/*
auto lo
iface lo inet loopback
auto br0
iface br0…

cyprian
- 111
- 2
1
vote
1 answer
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 30MB
lxc config device set ci root limits.write…

Ivan Ogai
- 181
- 1
- 4
1
vote
1 answer
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 to reproduce:
$ lxc launch images:centos/7/amd64…

Mircea Vutcovici
- 17,619
- 4
- 56
- 83
1
vote
1 answer
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 as a sudoer. Here is the YAML:
config:
…

Matheus Saraiva
- 113
- 3
1
vote
0 answers
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 of the other (the btrfs) disk for its…

alex k
- 111
- 2
1
vote
0 answers
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/images/d0...a6e7 …

Veniamin
- 863
- 6
- 11
1
vote
1 answer
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 which seems like more work than should be…

gzala
- 21
- 2
1
vote
1 answer
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 ubuntu user.
Lxd version: 4 (ubuntu 20.04…

gzala
- 21
- 2
1
vote
3 answers
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 recently I found that I could actually embed an init script…

shawty
- 293
- 4
- 15
1
vote
1 answer
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 pools, and that ZFS prefers direct access to raw…

simonw
- 35
- 6
1
vote
1 answer
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 configured to run as LXD/LXC containers. For…

sandman85
- 11
- 1
- 3
1
vote
2 answers
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 containerName cat /root/2.sh
->
#temp=$(cat…

ICIM
- 150
- 1
- 9
1
vote
3 answers
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@testing:~/Desktop$ lxc…

uday
- 352
- 10
- 30