Autostart issues
Posted: 6. Dec 2015, 12:15
Hello all!
I've been trying to get autostart working in VirtualBox but I'm running into problems. I'm having the same issues as described at https://www.virtualbox.org/ticket/12812 - I've created all files in that tutorial, set permissions and the autostartdb path. I run VMs as vboxuser, and I've altered the config files accordingly. Interestingly, if I run 'VBoxManage modifyvm "Ubuntu Server Machine" --autostart-enabled on', no vboxuser.start file is created in /etc/vbox, but if I run 'VBoxManage modifyvm "Ubuntu Server Machine" --autostop-type savestate' then a vboxuser.stop~ file is created. Needless to say, no VMs start when the host boots or when I run 'service vboxautostart-service start'. I'm running Debian Jessie, which has systemd rather than init as the virtualbox help file assumes, but I suspect this should not affect the creation of .start and .stop files.
I've searched the forums here and googled as well, but it looks like this unfortunately just isn't going to work for me - and I'm by no means alone in this - so now I'm looking for something else: can anyone offer me a solution that doesn't use autostart, and lets me start virtual machines when the host starts up, and saves their state or shuts them down when the host shuts down?
As an absolute last resort, I could install Windows 7 on the host and run VBoxHeadless, which is what I used to do, but I'm trying to keep my server PC on linux if possible.
Brief system specs:
Linux zeus 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u5 (2015-10-09) x86_64 GNU/Linux
Asrock Q1900-ITX mobo with Intel J1900 CPU, 8GB RAM
VirtualBox 5.0.10-104061
Thanks for reading.
I've been trying to get autostart working in VirtualBox but I'm running into problems. I'm having the same issues as described at https://www.virtualbox.org/ticket/12812 - I've created all files in that tutorial, set permissions and the autostartdb path. I run VMs as vboxuser, and I've altered the config files accordingly. Interestingly, if I run 'VBoxManage modifyvm "Ubuntu Server Machine" --autostart-enabled on', no vboxuser.start file is created in /etc/vbox, but if I run 'VBoxManage modifyvm "Ubuntu Server Machine" --autostop-type savestate' then a vboxuser.stop~ file is created. Needless to say, no VMs start when the host boots or when I run 'service vboxautostart-service start'. I'm running Debian Jessie, which has systemd rather than init as the virtualbox help file assumes, but I suspect this should not affect the creation of .start and .stop files.
I've searched the forums here and googled as well, but it looks like this unfortunately just isn't going to work for me - and I'm by no means alone in this - so now I'm looking for something else: can anyone offer me a solution that doesn't use autostart, and lets me start virtual machines when the host starts up, and saves their state or shuts them down when the host shuts down?
As an absolute last resort, I could install Windows 7 on the host and run VBoxHeadless, which is what I used to do, but I'm trying to keep my server PC on linux if possible.
Brief system specs:
Linux zeus 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u5 (2015-10-09) x86_64 GNU/Linux
Asrock Q1900-ITX mobo with Intel J1900 CPU, 8GB RAM
VirtualBox 5.0.10-104061
Thanks for reading.