Skip to main content

Questions tagged [systemd-nspawn]

For questions pertaining to systemd-nspawn, a utility to spawn a command or OS in a light-weight container. Use this tag for questions about systemd-nspawn itself, using systemd-nspawn, or questions about issues arising inside a container spawned by systemd-nspawn where that is significant.

0 votes
0 answers
19 views

Possible to setup veth with -n but not -b in systemd-nspawn?

making first experiments with systemd-nspawn. I would like to set up a container to run a single application with isolation. So far my command line is sudo systemd-nspawn -M mycontainer -x -U --user=...
callegar's user avatar
  • 111
0 votes
1 answer
48 views

How to increase kernel parameter (`msgmnb`) for a systemd-nspawn container

I have a systemd-nspawn container in which I am trying to change the kernel parameter for msgmnb. When I try to change the kernel parameter by directly writing to the /proc filesystem or using sysctl ...
Yeow_Meng's user avatar
  • 409
0 votes
1 answer
75 views

How to declare systemd dependency for a nspawn service that depends on WireGuard interfaces?

I have a nspawn service that needs to take a WireGuard interface from the host. fw0.nspawn [Network] Interface=wg0 According to nspawn man page, I will also need this systemd drop-in. [Unit] Wants=...
Waiho's user avatar
  • 33
1 vote
1 answer
22 views

Automate passing JBOSS installer arguments using Expect Command

I have a JBOSS Installer which when run manually it will prompt for input and below is the sample of the execution is as below [sp@sp baseInstaller]$ ./advStart.sh config Buildfile: /home/sp/jboss/sp/...
sabarish jackson's user avatar
0 votes
0 answers
73 views

systemd-nspawn: how to select root partition if ambiguous on image?

I have pendrive which (as /dev/sdb) after opening LUKS device on dev/sdb4 looks NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS sdb 8:16 1 ...
drwx's user avatar
  • 1
2 votes
0 answers
226 views

Cannot write to /dev/fb0 in systemd-nspawn container

I've created a systemd-nspawn container in which /dev/fb1 from the host is bound as /dev/fb0. I've set PrivateUsers=off in the .nspawn config file, and the file ownership and permissions of /dev/fb0 ...
Clydog's user avatar
  • 31
0 votes
0 answers
43 views

Linux container initialization script utilizing systemd

I am trying to make a template filesystem for my systemd-nspawn container. The container filesystem will be cloned from this template by btrfs snapshot. I needs the container to run a initialization ...
Waiho's user avatar
  • 33
0 votes
1 answer
470 views

How to make a restrictive syscall *whitelist* with systemd-nspawn?

I'm trying to lock down a container using systemd-nspawn, so that only the specific syscalls I whitelist are allowed. Per the documentation, there's a pretty lax filter in place by default, ...
SwarmOfBees's user avatar
0 votes
1 answer
714 views

Failed to get login PTY: Failed to activate service 'org.freedesktop.systemd1'

Been trying to understand and play around with systemd-nspawn because I'd like to run a Debian Testing install for myself without enabling the testing repos on my main Debian stable system. I wrote ...
mrjpaxton's user avatar
2 votes
0 answers
306 views

How do I give my container a static ip address (systemd-nspawn)

My container changes its ip address extremely often, almost every boot. I tried giving it a static ip address so my script knows how to ssh into it but nothing I did seemed to work. So I tried looking ...
Andrew Benor's user avatar
0 votes
1 answer
190 views

How can i map multiple ports in systemd-nspawn container?

I'm writing a container manager script which depends on nspawn, and the container is using a Virtual Ethernet Connection(-n opt). but it looks like that nspawn only support port mapping for single ...
Tsing Kwai's user avatar
2 votes
0 answers
202 views

How are ulimits determined for processes running in unpriviledged containers?

Recently, while I was building something in an unprivileged nspawn container (for CI), with the host system running arch linux, I repeatedly ran into an EMFILE error, from yarn, indicating that I'm ...
Graham Leach-Krouse's user avatar
0 votes
0 answers
604 views

Why do systemd-nspawn's network namespaces not work correctly without systemd running inside the container?

I am trying to run a systemd-nspawn container without an init system and inside of a systemd-nspawn-managed network namespace. My container is a stock Fedora 35 image, and I am invoking it like so: ...
pipe_connector's user avatar
4 votes
1 answer
1k views

How do I wait for a systemd-nspawn container to boot?

I have a script that contains the following: sudo machinectl start "$machinename" sudo systemd-run -PM root@"$machinename" "$command" Failed to connect to bus: No such ...
25pwn's user avatar
  • 43
2 votes
1 answer
541 views

How to resolve a systemd-nspawn container?

I have a nspawn container: root@nomad-02:~# machinectl list MACHINE CLASS SERVICE OS VERSION ADDRESSES debian container systemd-nspawn debian 11 192.168.88.171… 1 machines listed....
nomad87's user avatar
  • 21

15 30 50 per page
1
2 3 4 5