Questions tagged [systemd-nspawn]
14 questions
9
votes
1 answer
How to set up nested Wayland Desktop Environment with systemd-nspawn container, like VirtualBox
I'll need someone to walk me through setting up Wayland Desktop Environment with linux within a systemd-nspawn container.
user1028880
2
votes
1 answer
mongo - cli drops with Failed to mlock: Cannot allocate locked memory
[root@host project]# mongo
2021-06-01T04:51:34.325+0200 F - [main] Failed to mlock: Cannot allocate locked memory. For more details see: https://dochub.mongodb.org/core/cannot-allocate-locked-memory: Operation not…

Király István
- 599
- 5
- 24
2
votes
1 answer
systemd-nspawn /dev/dri/card0 privileges
I'm trying hard to access /dev/dri/card0 from the nspawn container and have no success. Is it even possible?
/etc/systemd/system/systemd-nspawn@centos7.service.d/override.conf:
[Service]
DeviceAllow=/dev/dri rw
DeviceAllow=/dev/shm…

intelfx
- 131
- 5
2
votes
1 answer
How to run ansible on a nspawn container via its shell commands?
I have several systemd-nspawn containers I would like to connect to via ansible and run a series of scripts on each of them.
The traditional way is to use an SSH connection, I do that for other environments. In this case, the Ansible playbook will…

WoJ
- 27,165
- 48
- 180
- 345
2
votes
1 answer
How use systemd-nspawn with --network-veth and --port ( -n and -p)?
I run;
systemd-nspawn -n -p 80:80 -bD /path/to/httpd-container
In the container, httpd works. However, accessing from host, it dose not access. In addition, the below works without network options;
systemd-nspawn -bD…

user6864208
- 31
- 1
- 5
1
vote
0 answers
How to use ansible on remote systemd-nspawn containers?
I'm using ansible on my local machine "A", manipulating remote host "B". Now I have containers "C1", "C2", etc. on that remote host. Can I use ansible to manipulate them, too? I.e. without having sshd installed in every container?
Of course, I can…

Martin
- 31
- 3
1
vote
0 answers
How can I use systemd-nspawn to PXE boot a container?
I have configured my network environment to PXE boot VMs. I was wondering if it's possible to PXE boot a systemd-nspawn container

dippynark
- 2,743
- 20
- 58
1
vote
2 answers
systemd-nspawn send command with boot flag
In my Debian development machine I set up a systemd-nspawn environment for customizing an embedded systemd.
I'm able to send command to this container from a script, in this way:
systemd-nspawn -q --bind /usr/bin/qemu-arm-static -D $MOUNTPATH…

Mark
- 4,338
- 7
- 58
- 120
0
votes
0 answers
Getting error in systemd-nspawn. Failed to create /init.scope control group: Permission denied. How do i solve this?
I am running a custom systemd-nspawn service in linux with a custom rootfs designed for it. I am able to start the container successfully and everything is working fine. But when check the status of systemd-nspawn service. I get following…

Aditya Deshpande
- 1
- 1
0
votes
1 answer
Couldn't download package from local repository for debian dists with nginx as a web server
I created a local repository for downloading stretch debian dist and I used nginx as a web server for this.
I downloaded all the files and dirs with wget --no-parent --recursive http://ftp.us.debian.org/debian/dists/stretch and placed them in…

Jessica
- 127
- 2
- 10
0
votes
1 answer
Unable to remove a container using machinectl
I pulled a nixos container and now want to remove it.
I enter:
sudo machinectl remove nixos-21-tar
But the return message is:
Could not remove image: Access denied
If I list the images I get:
$ machinectl list-images
NAME TYPE RO…

potong
- 55,640
- 6
- 51
- 83
0
votes
1 answer
Overlayfs volume to docker container
I have a set of directories that I would like to overlay mount into a container:
# On host
/opt/a
- bin
- lib
/opt/b
- bin
- lib
/opt/c
- bin
- lib
# In container
/usr/local
- bin
- lib
- cuda
I am able to create an overlayfs…
0
votes
1 answer
using machinectl as a container manager on a LAN
I have a variety of containers that I would like to spin up on a host, and have them immediately get an IP from my DHCP server, just as my bare metal devices do (phone, laptop, NAS, etc)
I would like to be able to destroy these containers at will…

code_monk
- 9,451
- 2
- 42
- 41
0
votes
1 answer
It is possible to run concourse CI on systemd container?
I am trying to run concourse CI on systemd-nspawn container but I can't.
I have been searching for this issue and I dont found anything helpful. I will try to explain what i do:
First I make a .raw file that contains all I need (with mkosi).
I…

nikozl
- 1
- 2