Then I decided to try the "native systemd" way.
Executive summary: it is much easier than with old style SysV init:
# cat /etc/systemd/system/vboxservice.service
[Unit]
Description=VirtualBox guest services
[Service]
ExecStart=/usr/bin/VBoxService -f
[Install]
WantedBy=default.target
Activate with
systemctl enable vboxservice.service
.
Also
ReplyDelete[Unit]
...
ConditionVirtualization=oracle
Comes handy to ensure it is never started in a non virtualbox guest.