Last active
February 10, 2018 04:14
-
-
Save pkutzner/4c576da300028ebc0dc4d1700536248d to your computer and use it in GitHub Desktop.
systemd service for starting headless VirtualBox guests on boot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=VirtualBox Virtual Machine %i Service | |
Requires=systemd-modules-load.service | |
After=systemd-modules-load.service vboxdrv.service | |
[Service] | |
User=vbox | |
Group=vboxusers | |
ExecStart=/usr/bin/VBoxHeadless -s %i | |
ExecStop=/usr/bin/VBoxManage controlvm %i acpipowerbutton | |
KillMode=process | |
KillSignal=SIGWINCH | |
TimeoutStopSec=40 | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment