Questions tagged [lxc]

The LXC tag is for questions relating to LinuX Containers and lightweight virtualization capabiliaties, issues, and troubleshooting.

Filter by
Sorted by
Tagged with
1 vote
0 answers
31 views

LXD UI Not Recognizing Certificates over NGINX Proxy Manager

I am hosting an LXD instance with the UI enabled. I have passed through the UI via NGINX proxy manager and Cloudflare is proxying the connection with DNS from a subdomain. On my local network, I can ...
Christopher Allen's user avatar
0 votes
0 answers
72 views

Mounted USB Drive with bind mount in container, capacity showing less than drive contains

I have a 2TB SSD connected to my host device (Proxmox) and am passing it through to a container running Ubuntu. In my Proxmox host, I can see the full drive: Drive image in host showing 2TB I have ...
LearningSwift's user avatar
0 votes
1 answer
94 views

issue with ssh into lxd container using ansible

I have created a dynamic inventory which fetch the created lxd containers (so that I don have to type the name of container each time) so here is the dynamic inventory plugin: community.general.lxd ...
Zakaria Ait Yakoub's user avatar
0 votes
1 answer
129 views

LXC container cannot ping 8.8.8.8 or other outside ip

I run a LXC container on my "Ubuntu 23.04" VM by UTM on my mac laptop but I cannot ping 8.8.8.8 in my LXC container. I downloaded lxc via snap note: I have search many info to fix the ...
Harris's user avatar
  • 1
0 votes
0 answers
237 views

netplan/udevadm broken in Ubuntu 22 LXC containers

The physical host is running 18.04.6 LTS and LXD/LXC 3.0.3. I have two unprivileged containers, one Ubuntu 18.04 container and a new Ubuntu 22.04 container. (Using the default images that lxc launch ...
Curtis's user avatar
  • 101
1 vote
2 answers
234 views

snapcraft stuck on instance status preparing

I'm trying to follow the snapcraft tutorial on Ubuntu 22.04. I've installed and initialized lxd and snapcraft. When I run the snapcraft command it seems to hang on instance setup and eventually fails. ...
Tyler Weaver's user avatar
0 votes
1 answer
426 views

How to bridge an LXD network for internet access?

I'm using LXD 4.0.9 on Ubuntu 20.04, created a network, a profile, and added storage to a drone like the following ... $ lxc network create drone_lan ipv4.address=none ipv6.address=none $ lxc profile ...
Ender's user avatar
  • 125
0 votes
1 answer
139 views

lxd/lxc adding storage pool fails with "outside mount path"

I have installed two additional NVMe 7TB SDD as RAID1 with btrfs (having an already running btrfs RAID1 with 1.8TB in an existing storage pool containing 7 containers) Adding the 7TB RAID1 as a ...
MarcelR's user avatar
0 votes
0 answers
41 views

WIN11 VM Does Not Start

I recently installed win11 vm using the method shown here https://ubuntu.com/tutorials/how-to-install-a-windows-11-vm-using-lxd#1-overview. I finished the installation up to end of step 3 where ...
Tonni's user avatar
  • 1
0 votes
0 answers
92 views

I want to create containerd/config.toml file for local lxc containers

0 I've been trying and looking for a solution to use my local lxc containers images to get loaded in my local k8s cluster. By this, I have a Dev Environment, which has few lxc containers and images. I ...
Hyp3rActiv3's user avatar
0 votes
0 answers
98 views

Troubleshooting lxc launch issues from custom image

There is an image exported from another system, about 5GiB in size (compressed), estimated 13GiB uncompressed. root@cluster04:~# lxc launch testimg test-container --storage remote -d root,size=50GiB ...
Ildefonso Camargo's user avatar
0 votes
0 answers
147 views

How to specify a storage pool for images?

Let's say I have two storage pools configured. On the first one I want to deploy Ubuntu-based containers, and on the other, for example, Debian-based containers. How to specify a pool when copying an ...
doks's user avatar
  • 11
0 votes
0 answers
155 views

proc/fd permission errors in some (not all) lxc containers after upgrading host to ubuntu 22.04

Yesterday I updated an Ubuntu 20.04 machine to 22.04. lxc is from snap and I believe is unchanged. It has unprivileged lxc containers running various systems including Ubuntu 18.04, 20.04 and 22.04; ...
jhnc's user avatar
  • 143
0 votes
0 answers
92 views

unable to stop few lxc vms

im trying to stop few lxc vm but not working whereas other vms are able to. admin1@oc-vm:~/my-stuff$ lxc ls +-----------------+---------+------------------------+------+-----------------+-----------+ |...
sanjeeth's user avatar
0 votes
0 answers
50 views

lxc container takes a long time to assign ip or doesn't get an ip

It takes a huge time to get an ip address to lxc vm. At time, ip address doesn't get assigned. lxd host details: 16 core and 32 gb ram. admin1@oc-vm:~/my-stuff$ cat /etc/os-release PRETTY_NAME="...
sanjeeth's user avatar
1 vote
1 answer
544 views

Undead SSH services after restarting Ubuntu 22.04 on LXC machine

Some services SSH die after restart on Ubuntu... Or so they say. The status is "inactive (dead)", but you can connect to the server. What could be the problem here? What can one check? Some ...
Nux's user avatar
  • 81
3 votes
1 answer
876 views

LXD ubuntu image startup issue: snap.lxd.activate.service not found

I am new to LXC/LXD and would like to start using it, but I have encountered an issue while launching a new ubuntu 22.04 image. I have installed lxd using snap, following the instructions given on the ...
B Keulen's user avatar
0 votes
0 answers
51 views

Migrate from apt lxc 3.0.3 to snap 4.0.9. Mount points problem

I need to upgrade my Ubuntu from 18.04, and for this, I need to upgrade LXC/LXD to snap version. So, I ran: lxd.migrate and I got the following output: === Destination server LXD version: 4.0.9 LXD ...
Alex Oat's user avatar
0 votes
0 answers
144 views

Juju deployment for rabbitmq stuck in Pending state on LXD

I am new to juju and lxd. Trying to install RabbitMQ on LXD using JUJU. Installed LXD and containers are working as expected. $ juju --version 2.9.42-ubuntu-amd64 Followed below steps Bootstrapped ...
PSKP's user avatar
  • 113
1 vote
2 answers
513 views

How to get Ubuntu 22 LXC containers on the same host to be able to resolve each other’s names?

Environment Host is Ubuntu 22.04.2 LTS I have 2 sets of containers Ubuntu 16.04.7 LTS containers which work fine Ubuntu 22.04.2 LTS which I’m testing currently as I want to upgrade all containers ...
Sam's user avatar
  • 11
1 vote
1 answer
2k views

Ubuntu 22.04: 'Temporary failure in name resolution' in LXC

I upgraded an LXC container to Ubuntu 22.04 earlier today, and name resolution stopped working. Pinging anything by name fails. Of course, I can add nameserver 8.8.8.8 to /etc/resolv.conf and that ...
Linas's user avatar
  • 171
4 votes
1 answer
801 views

Is it possible to mix Docker containers with LXC containers

One of the major challenges we're facing with dockerizing our apps is that there are a lot of dependencies that need to be installed. LXC has been great at that as they provide a "full linux ...
khatman's user avatar
  • 43
0 votes
0 answers
1k views

Updated guide to install windows 11 in Ubuntu using LXD?

I have been trying to install Windows 11 inside Ubuntu 22.04 via LXD without success. Several steps outlined in the guide How to install a Windows 11 VM using LXD fail or don't work as presented. For ...
SkyWalker's user avatar
  • 333
1 vote
0 answers
307 views

Require password for LXC container shell access

I'm trying to lockdown shell access to the containers I'm running. In essensse, if someone is on the LXC host computer, I would like for them to have to enter a username/password before they get shell ...
Kcore's user avatar
  • 51
2 votes
1 answer
2k views

LXC host losing internet access when bridging lxdbr0 with ens3

My LXC host loses access to the internet when bridging an interface between lxdbr0 and ens3. LXC guests also fail to access WAN when the bridging is effective. My vps hosting provider provides a nic ...
G-knome's user avatar
  • 41
0 votes
0 answers
656 views

How to reboot host into cgroup1 mode?

On an ubuntu 22 Jammy host. Created lxc containers for centos7 or centos8-Stream. But they don't work. Having asked on the LXC forum, I got an answer Chances are your system is running in cgroup2 ...
wisdomlight's user avatar
0 votes
1 answer
1k views

22.04 - macvlan module missing?

I am trying to copy some lxd containers from a raspberry pi running Ubuntu 20.04 to a raspberry pi running 22.04. The containers use macvlan, which produces the following error if I try to run the ...
Kcore's user avatar
  • 51
0 votes
0 answers
85 views

creating new lxc veth bridge on impish

Following this excellent videos on Networing with lxc The tutor uses Ubuntu 15.01 I use 20.04 impish so when he discusses creating bridge in this link I am a bit stuck as impish uses Netplan. I'll ...
wisdomlight's user avatar
0 votes
1 answer
138 views

Why does pandoc not generate a table of content in a LXC container?

I have a problem with pandoc not generating a table of content correclty. Here is my workflow: I create a Markdown file with the content of a web page. I version my project with Git. I git push to my ...
SteeveDroz's user avatar
1 vote
0 answers
320 views

Apparmor: lxc-containers contains no profile

I ran an audit on my ubuntu 18.04 ec2 instance against Ubuntu 18.04 CIS benchmark. The issue was reported as " Ensure all AppArmor Profiles are enforcing" and it was Failed. When I was ...
Sarasa Gunawardhana's user avatar
0 votes
1 answer
412 views

losing snap config

I'm using ubuntu 20.04 WSL2 on my windows 11 machine, every time I open my ubuntu 20.04 WSL2 I realize it lost snap configuration that I made for my lxc, lxd home lab, but the container is still saved,...
Badran Bahjat's user avatar
0 votes
1 answer
157 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: ...
Pulsar's user avatar
  • 1
1 vote
1 answer
441 views

LXC Profile custom changes are being ignored during container instantiation

I need all my containers to automatically upgrade packages, install build-essential and load an ssh key I can use to ssh inside of my container immediately after launching. However even after custom ...
Mnemosyne's user avatar
  • 151
0 votes
0 answers
149 views

how to use existing default.img

I have an unused 222G file /mnt/disc/default.img. It was created a year ago when I was in process of expanding disc space for our container. But I got distracted and never completed the task. Now I ...
exebook's user avatar
  • 359
0 votes
0 answers
479 views

other interface connected to linux bridge not receiving multicast packet

lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.3 LTS Release: 20.04 Codename: focal Bridge Info sudo brctl show bridge name bridge id ...
Anil kumar's user avatar
9 votes
1 answer
3k views

Snap vs system container

I have seen this: what's the main difference between Docker and Snap? I don't quite see the difference between snap and system containers. VM has a separate Linux kernel and used fixed host ...
Chris G.'s user avatar
  • 213
-1 votes
1 answer
33 views

Issue about Characthers

i use in LXC, Ubuntu 21.04 (GNU/Linux 5.11.22-5-pve x86_64) on Proxmox. I have an issue, because i see weird, some filename. For example: You're next (2011).mp4 But i can see in the shell: You'\''re ...
Roberto's user avatar
0 votes
0 answers
83 views

Why are processors seemingly so active on an Ubuntu 20.04 Server with no appreciable services running in an LXC container?

On a minimal Ubuntu 20.04 server that's just been set up (and with some services disabled), I'm finding that htop is conveying that there's more processor activity going on than what I figure should ...
ylluminate's user avatar
  • 1,449
5 votes
3 answers
7k views

ERROR: Unable to fetch GPG key from keyserver

I tried to launch lxc container. But when I give sudo lxc-create -t download ubuntu -n web1 it shows this error ERROR: Unable to fetch GPG key from keyserver How to solve the issue?
Anjan Kumar Paul's user avatar
0 votes
1 answer
645 views

login and pwd requested to use terminal inside a VM created by LXD

I'm pretty new to Linux Containers. I followed these indications: https://linuxcontainers.org/lxd/getting-started-cli/#ubuntu to install and use LXD in Ubuntu 20.04 (base) raphy@pc:~$ snap install lxd ...
Raphael10's user avatar
  • 173
1 vote
0 answers
54 views

Error creating i386 lxc container on hirsute - does this work?

Attempting to create an i386 LXC Container on my amd64 host using: sudo lxc-create -t ubuntu -n ubuntu32 -- --bindhome $LOGNAME -a i386 Results in: dpkg: error processing package console-setup-linux (-...
bvarner's user avatar
  • 111
1 vote
0 answers
2k views

unable to start a LXC container - lxc-start: lxccontainer.c: wait_on_daemonized_start: 804 Received container state "STOPPING" instead of "RUNNING"

Im very much new to LXC and LXD concepts. I was experimenting with LXC's by creating a containers and destroying them. after some experiments, I tried to create a container to implement by task, was ...
Brgv's user avatar
  • 11
0 votes
2 answers
236 views

LXD command is executed on host instead of container

I am using this command: lxc exec container -- sh -c 'sqlcmd -S localhost -U SA -P <..> -i <...>', but it will get executed on the host instead of the container. But when I lxc shell ...
kaiya's user avatar
  • 141
0 votes
1 answer
770 views

LXC dnsmasq port 53 in use but I would like to map to container

I am trying to have an authoritative only Bind server inside a LXC container but when I went to forward the port 53 to it, I received an error saying the port is already in use. (listen=tcp:0.0.0.0:53 ...
Carlo's user avatar
  • 11
1 vote
1 answer
1k views

Convert Ubuntu Server 20.04 LTS iso to lxc container or download somewhere

Where can I find LXC version of Ubuntu 20.04 LTS? I can find only .iso version at: https://ubuntu.com/download/server Or how can I convert .iso image it to LXC?
lluke's user avatar
  • 111
0 votes
0 answers
242 views

Host has single interface with 2 addresses, iptables SNAT for LXC containers to specific destination is not working

I need your help with iptables on Ubuntu 18.04, kernel 4.15.0-112-generic : I have hosts that run a bunch of LXC containers, not using bridging over the hosts' LAN interface lan1, but each LXC ...
rdelangh's user avatar
1 vote
0 answers
601 views

Run docker container inside LXC with GPU

I have a GPU application docker image. Now I want to run that docker container with GPU support inside an LXC container but I am unable to do so. The way I run is this: lxc launch ubuntu plex -c ...
gapc311's user avatar
  • 111
1 vote
0 answers
301 views

Getting an error running lxc after upgrade to 20.04

NOTE: This error seems to be only cosmetic, and the commands work just fine despite the error. After upgrading from 18.04 to 20.04, running lxc as a non-root user gives the following error: $ lxc ...
danBhentschel's user avatar
0 votes
0 answers
27 views

ubuntu main machine unaccessable via any network service, while virtual lxc machines are accessable

First I would like to apologize for my writing, English is my second language and I am far from the best for giving a proper description. I run a lenovo laptop as a server, since it is what I got to ...
Poul Erik Holm Sollie's user avatar
0 votes
1 answer
1k views

microk8s on LXC: Service snap.microk8s.daemon-proxy is not running

I installed microk8s in a LXD container snap install microk8s --classic When I inspect the instance it shows that snap.microk8s.daemon-proxy is not running root@mk8s1:~# microk8s inspect Inspecting ...
onknows's user avatar
  • 340

1
2 3 4 5
9