Questions tagged [lxc]
LXC short for (Linux Containers) LXC is an operating system-level virtualization method for running multiple isolated Linux systems (containers) on a single control host. LXC is the userspace control package for Linux Containers, a lightweight virtual system mechanism sometimes described as “chroot on steroids”.
104 questions
0
votes
0
answers
31
views
Traffic issues from LXC containers with ufw configuration provided by Ansible
We have a Debian 12 server that is configured by an Ansible runbook. Besides other things, the runbook provides configuration for the host firewall, the same runbook installs LXD (via snap). Here is ...
1
vote
1
answer
137
views
Why is /usr/local/bin not in my PATH?
I am inside of an debian trixie lxc in proxmox.
This is how PATH looks when i query it from root:
# echo $PATH
/sbin:/bin:/usr/sbin:/usr/bin
In my /etc/login.defs my PATH configuration looks like ...
0
votes
1
answer
150
views
LXC networking: route traffic through a VPN
I'm following this guide to have an LXC's traffic routed through another LXC container running a VPN. Containers are running on top of Proxmox. I created a bridge as explained there, and I added it to ...
0
votes
1
answer
963
views
How can I access Incus container with SSH connect from VSCode?
Context
I have a host that runs on Fedora 38 (yes, I know, I'll upgade soon).
I have a few LXC containers that I can access with VSCode (VSCodium, actually, if that makes any difference). I use the ...
1
vote
0
answers
180
views
Can you use LXC containers with full desktop Linux guests (just like VMs) on Fedora Workstation?
I would like to sandbox a complete desktop linux installation on a Linux host and have graphical hardware acceleration in the guest.
To my knowledge; technologies like SR-IOV that would allow this ...
0
votes
0
answers
435
views
Use OpenVPN /dev/net/tun from an LXC in other LXCs
In proxmox I have passed /dev/net/tun to a LXC with debian than just runs openvpn.
To pass the tun I add to /etc/pve/lxc/XXX.conf
lxc.cgroup2.devices.allow: c 10:200 rwm
lxc.mount.entry: /dev/net dev/...
2
votes
1
answer
2k
views
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 ...
1
vote
0
answers
87
views
ping6 echo requests from container get lost partially
Thanks to kasperd's response on "ipv6 ping host got destination host unreachable until run tcpdump" I learned about tcpdump putting the listened on interface into promiscous mode. When ...
1
vote
2
answers
880
views
How to switch user to subuid running LXC container?
I'd like to either use su or sudo -u to switch users to the subuid created by LXC to run a container as unprivileged.
Note:
There is no username assigned to the UIDs in which containers are run.
Due ...
0
votes
1
answer
241
views
How to start dota2 on ubuntu in an unprivileged lxc container, since steam starts dota2 now in a runtime sandbox
Since the latest update, steam starts some linux games in a sandbox. If you have steam in an lxc container, so it does not install libs in your main OS or you want to isolate it from you work files, ...
1
vote
1
answer
2k
views
How to save the state of a running LXC container?
Using VirtualBox or KVM, I can save the state of the guest VM, reboot the host and then resume the guest.How can I do that if my guest is only a container and not a VM ?
0
votes
0
answers
448
views
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/...
1
vote
0
answers
82
views
Daemon lxd-client client is not running
I have a problem with my init service. After I started the service lxd-agent I tried to check its status. I can see in the output of /etc/rc.d/rc.lxd-agent status below message:
daemon: lxd-agent is ...
1
vote
1
answer
288
views
How to add home folder to user without one
I have a lxc container. I connect to it with sudo lxc-attach 100 which works fine. but I want to use it as a deployment target for jenkins (I know that I could use docker, but I haven't gotten that ...
0
votes
1
answer
667
views
Is it possible to build Linux kernel inside an LXC container?
I would like to build an optimized kernel for a machine that runs Ubuntu 20.04 but in my scenario I cannot "pollute" the Linux installation with all the dependencies required to do the build....