Questions tagged [lxd]

62 questions
0
votes
0 answers

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 losetup --find --nooverlap --direct-io=on --show…
m-ar-c
  • 1
  • 1
0
votes
0 answers

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 LXD container : I'm running these versions…
Jean
  • 123
  • 8
0
votes
0 answers

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: - 10.1.1.24/24 nameservers: …
Definity
  • 127
  • 6
0
votes
0 answers

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 it to serve the cephFS directories and stuff? In…
0
votes
2 answers

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/ path=/home/user3 # lxc config device add c1…
dogman
  • 11
  • 4
0
votes
1 answer

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 is connected to the host using a Host-only…
Achedezo
  • 1
  • 1
0
votes
0 answers

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 "This site can’t be reached", I disabled the ufw even…
Astro
  • 101
  • 3
0
votes
0 answers

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 10.0.3.3 | openvpn <-> iptables} In the container there is eth0 (ip…
n.karlen
  • 1
  • 1
0
votes
1 answer

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 sim2real_server Error response from daemon: OCI…
0
votes
1 answer

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). Others recommend redirecting a YAML file into the lxc…
Karl
  • 239
  • 1
  • 3
  • 8
0
votes
1 answer

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 container server from "Proxmox VE" to a standard Linux Ubuntu…
shawty
  • 293
  • 4
  • 15
0
votes
1 answer

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: ServerName example.com ServerAlias…
seamux
  • 1
0
votes
1 answer

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. user@localhost:/tmp$ sudo lxc list…
0
votes
1 answer

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 outgoing connections. Stunnel -> Tinyproxy works…
Mishgun_
  • 101
  • 3
0
votes
1 answer

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=tcp:x.x.x.x:25 connect=tcp:127.0.0.1:25 where…
Jesús Ángel
  • 518
  • 2
  • 6