forked from pool/virtualbox
f0824ee78b
Hi Larry, I finally put some effort in fixing the VM autostart mechanics, that are terminally broken in the current package (due to the way, systemd interacts with Sys-V init scripts, stop operations aren't executed most of the time, because it lost track of the state...). With these changes, I'm able to reliably start/stop all VMs on hosts ranging from 13.2 to 42.2. I'm confident, this will improve for all systemd based systems, i.o.w all those systems we care about.. It resembles pretty much the same scheme, vboxdrv is using already. Give it a try. - reorganize vbox autostart, coping with systemd: - add /usr/lib/virtualbox/vboxes.sh (based on /etc/init.d/vboxes) - add /usr/lib/systemd/system/vboxes.service - remove /etc/init.d/vboxes OBS-URL: https://build.opensuse.org/request/show/514488 OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=357
20 lines
476 B
Desktop File
20 lines
476 B
Desktop File
# Autostart configured Virtual Box VMs
|
|
# configuration: /etc/sysconfig/vbox
|
|
|
|
[Unit]
|
|
SourcePath=/usr/lib/virtualbox/vboxes.sh
|
|
Description=Autostart Headless Virtual Box VMs
|
|
Before=multi-user.target graphical.target
|
|
After=network-online.target vboxdrv.service
|
|
Wants=network-online.target vboxdrv.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
ExecStart=/usr/lib/virtualbox/vboxes.sh start
|
|
ExecStop=/usr/lib/virtualbox/vboxes.sh stop
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|