Questions tagged [lxc]
The LXC tag is for questions relating to LinuX Containers and lightweight virtualization capabiliaties, issues, and troubleshooting.
437
questions
1
vote
2
answers
64
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. ...
0
votes
1
answer
70
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 ...
0
votes
1
answer
55
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 ...
0
votes
0
answers
21
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 ...
0
votes
0
answers
25
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 ...
0
votes
0
answers
42
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 ...
0
votes
0
answers
66
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 ...
0
votes
0
answers
58
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; ...
0
votes
0
answers
55
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
+-----------------+---------+------------------------+------+-----------------+-----------+
|...
0
votes
0
answers
22
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="...
1
vote
1
answer
165
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 ...
3
votes
1
answer
303
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 ...
0
votes
0
answers
32
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 ...
0
votes
0
answers
105
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 ...
1
vote
2
answers
390
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 ...
0
votes
0
answers
69
views
LXC and LXD Commands not running
I have lxd and lxd installed on my ubuntu 20.04 server.
RAID 1 configured.
Container backup files was deleted from /var/snap/lxd/backups/lxc
and after that i am getting issue running lxc.
whenever i ...
1
vote
1
answer
1k
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 ...
0
votes
0
answers
42
views
Kernel version 5.4 performs better transactions in PHP than newer kernels? see thread
Good day fellow Ubuntu users.
I would like to ask for any inputs or ideas to see on why the kernel version 5.4 performs way better transactions in PHP compared to the newer kernel versions.
Here's the ...
3
votes
1
answer
493
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 ...
0
votes
0
answers
806
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 ...
1
vote
0
answers
253
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 ...
2
votes
1
answer
1k
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 ...
0
votes
0
answers
558
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 ...
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 ...
0
votes
0
answers
79
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 ...
0
votes
1
answer
124
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 ...
1
vote
0
answers
283
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 ...
0
votes
1
answer
381
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,...
0
votes
1
answer
149
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: ...
1
vote
1
answer
390
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 ...
0
votes
0
answers
121
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 ...
0
votes
0
answers
456
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 ...
9
votes
1
answer
2k
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 ...
-1
votes
1
answer
32
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 ...
0
votes
0
answers
80
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 ...
5
votes
3
answers
6k
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?
0
votes
1
answer
483
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
...
1
vote
0
answers
52
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 (-...
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 ...
0
votes
2
answers
192
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 ...
0
votes
1
answer
681
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 ...
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?
0
votes
0
answers
226
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 ...
1
vote
0
answers
571
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 ...
1
vote
0
answers
290
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 ...
0
votes
0
answers
26
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 ...
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 ...
6
votes
1
answer
3k
views
LXC/LXD as Debian package
Installing LXD from APT installs it as a Snap package and while LXC programs are installed from a Debian package, running them tells me I need to install the LXD snap. Is there anyway to install LXC ...
1
vote
2
answers
1k
views
What does stateful mean
I can snapshot a LXC on a ZFS Pool with or without the Option "Stateful".
I can not find any Info about it. What does it mean?
1
vote
0
answers
251
views
About launching LXC Containers and their IP assignment
i am playing around with LXD and their Containers. I configured my LXD init like this:
...
Would you like to create a new local network bridge? (yes/no) [default=yes]: no
Would you like to configure ...