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”.
99
questions
0
votes
0
answers
73
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
374
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
188
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
381
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
200
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
505
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
380
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
733
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
447
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
319
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, ...
2
votes
1
answer
2k
views
Create a LXD CentOS container
With lxc1, lxd and lxd-client installed I can launch a ubuntu based container with
lxc launch --profile default ubuntu:18.04 c1
I was wondering if it is also possible to lauch a container based on ...
1
vote
0
answers
124
views
Access container's wireless network from host
I have linux setup on embedded device with many lxc containers. Container A has in its network namespace wlan0 interface
(I moved wlan0 from host to container by writing to A's config:
lxc.net.0.type =...
0
votes
1
answer
414
views
Make host IPv6 only and assign its sole public IPv4 to LXC container
I have a Debian 10 server which gets its IPv4-v6 via DHCP which can be configured as static also:
root@host:~# ifconfig
ens3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet ...
0
votes
1
answer
711
views
How to load the kernel module to lxc container?
lxc containers do not have their own Kernel so is there possible way to load the kernel into lxc container?
0
votes
1
answer
488
views
It is possible to set up DRBD on lxc container?
The purpose is I want to set up DRBD to run on lxc container but it looks like different from the physical server because drbd requires to syn from a block device but it does not have in lxc container....
0
votes
1
answer
2k
views
How do I take advantage of FreeIPA centralized authentication in an LXC container under Proxmox?
I'd like to request assistance with an issue I'm having in my Proxmox homelab. I have a FreeIPA domain lab.ads1031.local, in which resides a user ads1031 with UID 1000001. I would like to log in as ...
0
votes
1
answer
499
views
Debian 10 - static route doesn't override default
My /etc/network/interfaces:
auto lo
iface lo inet loopback
auto wan
iface wan inet static
address $myPublicIP
netmask $ispSubnet
gateway $ispGateway
auto vpn
iface vpn inet ...
4
votes
2
answers
5k
views
Increase the LXD/LXC Btrfs loop file storage pool size
Our production container crashed because its LXC storage pool is out of space.
Here is dh -h from inside the container:
Filesystem Size Used Avail Use% Mounted on
/dev/loop0 82G 78G 2....
1
vote
0
answers
346
views
Creating docker image from lxc container tar file
i am trying to create a docker image from an lxc_container tar file,
i am able to import it using the docker import command
sudo docker import ./app.tar
i was able to import it and run it,
docker ...
0
votes
2
answers
355
views
A Docker OS container - why?
If Docker is an application container (unlike a system container like LxC), and is to be used for running only one app/service, I wonder what good is a full, Docker OS container, say, for Ubuntu?
Any ...
2
votes
2
answers
400
views
openstack ansible deployment fail after creating lxc containers while running apt-get update command inside container
The openstack ansible created containers where running but they don't have access to internet. When I manually add routing then I get following error:
Err:1 http://archive.ubuntu.com/ubuntu bionic ...
0
votes
1
answer
486
views
Ubuntu LXD iptables SNAT / Masquarade
i have Ubuntu Server with LXD.
Every Container has own IP (local)address.
Example: LXD Host: 10.10.1.200, DNS container: 10.10.1.141, LXC inside address: 10.71.85.107
Ok - that no problem, incoming ...
1
vote
1
answer
1k
views
LXC start/stop hangs and filesystem sync hangs
edit: The issue was my umask being set to 027 rather than the default of 022. See below for details.
I'm experiencing a bewildering (set of) issues regarding LXC that manifests itself throughout the ...
1
vote
1
answer
4k
views
reboot command in a Linux Container, does it just reboot the container?
I am using several remote Linux Containers that I access with SSH (PlanetLab to be specific). Sometimes they work unreliably so then I issue the command sudo reboot . What I wonder, will this restart ...
0
votes
1
answer
889
views
Identify host of lxc containers when connecting via ssh
I have plenty of servers (>100), mostly centos, ubuntu and some windows servers, monitored with Zabbix. Many of those servers are virtualized with vanilla LXC version 2 or version 3 (no libvirt, no ...
0
votes
1
answer
627
views
How to disable lxc container login prompt on centos 7
I have created an LXC container on CentOS 7. Every time I do sudo lxc-start -n mycontainer I'm greeted with a login prompt:
...
[ OK ] Started Console Getty.
[ OK ] Started Command Scheduler.
[ ...