@Huberer hmm mine stays the same, but you are right with file vboxdrv, but that doesnt seems to affect or give any errors in log...
Try this for autoboot:
I made a workaround solution - i created a script in /etc/init.d/startvm
startvm file content:
--------------------------------------------------------------------------------------------------------
#!/bin/bash
#
#This init script autostarts necessary vms at boot
#and saves running vms on shutdown
# Sed explanation: sed -e 's/^.//' -e 's/.$//'
# 1. -e means to allow multiple arguments in a single sed command
# 2. 's/^.//' means to substitute (s) / at the beginning of the line (^), any character (.) / [substitute with nothing] /
# 3. 's/.$//' means to substitute (s) / any character (.), at the end of the line / [substitute with nothing] /
VBOXUSER=vbox
RUNNINGVMS=$(sudo -H -u $VBOXUSER vboxmanage list runningvms | cut -d " " -f1 | sed -e 's/^.//' -e 's/.$//')
STOPPEDVMS=$(sudo -H -u $VBOXUSER vboxmanage list vms | cut -d " " -f1 | sed -e 's/^.//' -e 's/.$//')
case "$1" in
start)
for i in $STOPPEDVMS
do
echo "Starting" $i "VM"
sudo -H -u $VBOXUSER vboxmanage startvm $i --type headless
sleep 5
done
;;
stop)
for i in $RUNNINGVMS
do
echo "Saving state of" $i "VM"
sudo -H -u $VBOXUSER vboxmanage controlvm $i savestate
done
;;
*)
echo "Usage: /etc/init.d/startvm {start|stop}"
exit 1
;;
esac
exit 0
--------------------------------------------------------------------------------------------------------
*This script will start all VM's and will put all VM's to savestate
I ran this cmd to make it execute:
chmod +x /etc/init.d/startvm
Then i insalled sysv-rc-conf to mng my rc.d :
apt-get install sysv-rc-conf
run the application with:
sysv-rc-conf
and here i choose 2 and 6 (2 for startup and 6 for shutdown/reboot)
And now its working
Feel free to ask any questions