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”.
100
questions
0
votes
0
answers
17
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/...
0
votes
0
answers
74
views
How to find rootfs disk file of lxc when it's running
It's a terrible mistake, I remove the disk file of lxc.
I know linux rm will not remove file when it's open by other processes. So I login ssh of that lxc, it's running, and the files in that disk is ...
2
votes
1
answer
1k
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
34
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
384
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
190
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
1k
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
383
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
61
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
201
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
510
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....
1
vote
1
answer
383
views
how bind Dummy network interface od alias ip an LXC guest without bridge?
i search any way to bind second public or lan ip direct with Dummy Iface or Alias ip to LXC container WITHOUT bridge interface.
any idea and config example?
(debian)
ip link add eth2 type dummy'
LXC ...
2
votes
1
answer
762
views
How LXC (Linux Containers) differ from Docker?
I am wondering if LXC and Docker does the same thing (Operating System level virtualization)
What are the advantages/disadvantages one have over the other? I also want to know for a low power arm ...
0
votes
0
answers
451
views
Wireguard handshake is unstable, and I don't know why
I tried using Wireguard on a Ubuntu LXC container in Proxmox. The handshake does not fail but is very unstable. If I connect to the server there can be multiple seconds until the handshake completes.
...
0
votes
1
answer
322
views
How to attach to linux container started with systemd?
Long story short, I have a few unprivileged containers that run on boot that I used to be able to start from rc.local. That no longer works, and currently start them with a systemd unit. They start, ...