[systemd-devel] systemd-nspawn/systemd.nspawn machinectl enable/start

2023-10-01 Thread Rob Ert
Hello all,

As I have not been able to find an answer to my question after consulting
man pages and google, I am turning to this mailing list.

I have a systemd-nspawn os container that I have set to automatically start
with machinectl enable.
I would like to automatically have a bcachefs snapshot created before the
machine is started. As provisions for a hook to script something like this
do not seem to be supported in systemd.nspawn,
I would like to know what and where the best way and place to achieve this
is?

Please cc me.

Many thanks,
and all the best,
Rob


[systemd-devel] Can't get port mapping to work for https

2023-12-06 Thread Rob Ert
Hello all,

I'm running a systemd-nspawn container started with machinectl using the
following systemd.nspawn file in /etc/systemd/nspawn:

[Exec]
PrivateUsers=off
Timezone=off
[Network]
VirtualEthernet=yes
Port=tcp:23:22
Port=tcp:8080:80
Port=tcp:4433:443

The problem I'm having is that the port mapping for 443 fails, whereas the
other mappings work. The listed services are all active in the guest
system, and no firewall rules are active.

System: Debian

Host: # apt list systemd-container
Listing... Done
systemd-container/testing,now 254.5-1 amd64 [installed]

Guest: # apt list systemd-container
Listing... Done
systemd-container/stable,now 252.17-1~deb12u1 amd64 [installed]


Any help would be much appreciated.

Best regards,
Rob