Questions tagged [lxd]

15 questions
5
votes
2 answers

htop memory usage does not add up with process list

I am using lxd to run multiple containers and having trouble reporting the memory usage: both htop and free shows high memory usage but the list of processes that uses memory is very short and doesn't add up to the reported usage. From the bare…
4
votes
2 answers

Increase the LXD/LXC Btrfs loop file storage pool size

Our production container crashed because its LXC storage pool is out of space. Here is dh -h from inside the container: Filesystem Size Used Avail Use% Mounted on /dev/loop0 82G 78G 2.0G 98% / Here the same mount from the host…
exebook
  • 372
3
votes
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: …
2
votes
1 answer

How can I connect a single USB device to my LXC container?

TL;DR I have two software radio devices attached to my Linux server. I have an LXC container running on the Linux server. Both software radios have the same productid and vendorid. How do I attach only one of the software radios to the LXC…
2
votes
1 answer

Using Docker Ubuntu image to learn Linux system-networking

Docker being an application container and not a system container like LXD, is it possible to use a Linux OS Docker image (say, for Ubuntu or Centos) to teach myself Linux, OS-level networking by creating a bunch of lightweight instances and then…
Harry
  • 861
2
votes
1 answer

Create a LXD CentOS container

With lxc1, lxd and lxd-client installed I can launch a ubuntu based container with lxc launch --profile default ubuntu:18.04 c1 I was wondering if it is also possible to lauch a container based on CentOS. I tried several options centos:7,…
onknows
  • 877
0
votes
1 answer

LXD containers drops ICMP between one another

So I stumbled across an issue that I cannot figure out. I have setup two host machines each with two LXD VM containers. Both are running LXD via Snap. One host is running Ubuntu 22.04 with two Ubuntu 22.04 containers. The other host is running…
dbergloev
  • 75
  • 6
0
votes
0 answers

Centos 8 running as a LXD container fails to install packages: yum ailed to connect to mirrorlist.centos.org port 80: Connection timed out

Under Ubuntu, I created a Centos 8 LXD container: lxc launch images:centos/8 centoscontainer Then, I log into the container with lxc exec centoscontainer /bin/bash. I'm root, and I can access network just fine: # ping mirrorlist.centos.org PING…
alci
  • 137
0
votes
0 answers

After removing lxc device, still managed to access device from its boundary directory

I am using Lxd container for my sd card access in Linux based device. i mounted sd card with following commands mount /dev/sda1 /mnt/flash/sdcard. lxc config device add dhaneesh2 sda disk path=/mnt/sda/ source=/mnt/flash/sdcard after this sd…
0
votes
1 answer

Lightweight Container solution (from Vagrant/Virtualbox to ???)

Up to now we used Vagrant+Virtualbox to set up development environments. The dev environment uses Ubuntu. This was great, because you can start the dev environment from Linux, Mac, Windows. But compared to LXD the virtualbox needs a lot of resources…
guettli
  • 397
  • 3
  • 8
  • 26
0
votes
0 answers

Installing LXD Stucks

I upgraded my ubuntu version from ubuntu 16.04 to ubuntu 18.04 focal. After reboot, I was asked to install upgrades. But when I do sudo apt-get update sudo apt-get upgrade The seconds command exits with error telling I need install lxd. But…
0
votes
0 answers

how to change from zfs to ext4

i accidentally create zfs pool to sda1 with sudo zpool create -f lxd-zfs-pool /dev/sda1 zpool status output is pool: lxd-zfs-pool state: ONLINE scan: none requested config: NAME STATE READ WRITE CKSUM lxd-zfs-pool ONLINE 0 …
user1107388
0
votes
1 answer

Ubuntu LXD iptables SNAT / Masquarade

i have Ubuntu Server with LXD. Every Container has own IP (local)address. Example: LXD Host: 10.10.1.200, DNS container: 10.10.1.141, LXC inside address: 10.71.85.107 Ok - that no problem, incoming packages are translate: iptables -t nat -A…
kazix
  • 1
0
votes
1 answer

PREROUTING to LXC container with iptables

I've set up two containers with lxd, one with haproxy, pointing to the other with nginx. I want my server's incoming traffic on port 80 to go to the container with haproxy. This is the rule I've given iptables, but I still cannot access my server…
user3459805
  • 11
  • 1
  • 6
0
votes
1 answer

How to ssh from one lxc container to another?

I'm trying to experiment with a small virtual cluster of machines to learn hadoop. I'm using LXD for this purpose. I've installed ssh servers on each vm and now need to connect from one vm to another. Using the IPs I get from lxc list I'm not able…
user14660
  • 172