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 | 6 Comments »

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

  1. kc9 Says:
    January 26th, 2025 at 23:30

    … [Trackback]

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

  2. best gym equipment store Says:
    February 2nd, 2025 at 18:38

    … [Trackback]

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

  3. Nonameauto Says:
    February 6th, 2025 at 03:55

    … [Trackback]

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

  4. Lsm99bet Says:
    February 7th, 2025 at 20:19

    … [Trackback]

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

  5. เอเจนซี่ศัลยกรรมจีน Says:
    February 14th, 2025 at 21:24

    … [Trackback]

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

  6. lucabet Says:
    February 21st, 2025 at 05:57

    … [Trackback]

    […] Here you will find 3029 more Info on that Topic: compdigitec.com/labs/2021/01/28/creating-a-service-to-run-a-systemd-nspawn-server/ […]

Comments