Compdigitec Labs

« | Home | »

Creating a service to run a systemd-nspawn server

By admin | January 28, 2021

debootstrap –include=systemd-container –components=main,universe focal myContainer

http://nova.clouds.archive.ubuntu.com/ubuntu/

https://bbs.archlinux.org/viewtopic.php?id=232804

Edit /usr/lib/systemd/system/systemd-nspawn@.service


ExecStart= -> remove -U
Add
[Exec]
PrivateUsers=off

https://wiki.debian.org/nspawn#Booting_a_Container

sudo systemctl daemon-reload
sudo systemctl restart systemd-nspawn@myContainer

If you found this article helpful or interesting, please help Compdigitec spread the word. Don’t forget to subscribe to Compdigitec Labs for more useful and interesting articles!

Topics: Linux | 3 Comments »

3 Responses to “Creating a service to run a systemd-nspawn server”

  1. ติดตั้งโซลาเซลล์ Says:
    April 3rd, 2024 at 03:54

    … [Trackback]

    […] Read More Info here on that Topic: compdigitec.com/labs/2021/01/28/creating-a-service-to-run-a-systemd-nspawn-server/ […]

  2. บริการขนย้ายของ Says:
    April 21st, 2024 at 18:25

    … [Trackback]

    […] There you can find 88613 additional Info on that Topic: compdigitec.com/labs/2021/01/28/creating-a-service-to-run-a-systemd-nspawn-server/ […]

  3. Trustbet Says:
    April 28th, 2024 at 20:44

    … [Trackback]

    […] Read More Information here on that Topic: compdigitec.com/labs/2021/01/28/creating-a-service-to-run-a-systemd-nspawn-server/ […]

Comments