You are not logged in.

#1 2019-09-14 19:25:31

7thCore
Member
Registered: 2018-06-09
Posts: 65

Systemd-nspawn: a few questions

I have been using a vm for a while for some game servers and other junk and for the past two days I have been experimenting with the nspawn feature of systemd.

And if it's not too much trouble I would like to ask a few questions because I'm having difficulties understanding the man pages.

1. I'm thinking of using the container as a game server. Is the performance any better than a vm?
2. I use a ramdisk on my vm. How do I configure the container to have a ramdisk with access rights for ordinary users in the container
3. I have two nics on my motherboard. Can I use a bridge without assigning an ip on the host's second nic and use that nic only for containers with specific static ip addresses configured in the container so the host and container have their own dedicated 1Gbit line?
4. What is better, using a custom service file to start and stop the container or a nspawn file.
Also can anyone give me any examples of the nspawn file?
5. Can I assign specific cpu cores to the container (the ones isolated from the host with the isolcpu kernel parameter) and limit the ammount of ram the container can use?
6. If I limit the ram and have a ramdisk mounted, does the ramdisk count as the container's ram?

Thanks in advance!


[ Arch x86_64 | linux | Asus Prime X570-Pro | AMD Ryzen 9 5900X @4,8Ghz | AMD RX580 | 32GB RAM DDR4 | Main, 2 Monitors ]
[ Arch x86_64 | linux | Asus Pro WS X570-Ace | AMD Ryzen 9 5950X @4,9Ghz | Intel A750 | 128GB RAM DDR4 | Server ]

The Linux philosophy is 'Laugh in the face of danger'. Oops. Wrong One. 'Do it yourself'. Yes, that's it.

Offline

Board footer

Powered by FluxBB