Virtualbox 4.1.0 produces an error when i halt my system.
Linux - VirtualizationThis forum is for the discussion of all topics relating to Linux Virtualization. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Virtualbox 4.1.0 produces an error when i halt my system.
I have a problem with the new Virtual Box (like the title says).
I have the kernel version 2.6.29.6-smp. The problem only happens with the halting (power-off), when i reboot, there is no problem. I think its caused by the virtual box kernel.
Thatś why i said, "like the title says", as a reference of my problem.
The problem is that when i halt my computer, the virtualbox module (i think the name is vboxdrv), seems to be running even when the computer is shutdown, causing a segmentation fault.
The only way i can shutdown my computer, is stopping the virtual box module
I had a similar problem. A solution was to unload vboxdrv via 'sudo /etc/rc.d/rc.vboxdrv stop' before halting, but you can't do that unless all virtual machines are inactive, that is, "closed".
Try
Code:
#!/bin/bash
echo 'Please wait for all virtual machines to save and exit...'
PROCS=
for i in `vboxmanage list runningvms | grep '"' | sed 's/^"//' | sed 's/".*$//'`
do
vboxmanage controlvm $i savestate 2>/dev/null 1>/dev/null &
PROCS="$PROCS $!"
done
PROCS=`echo -n $PROCS | sed 's/^[ ]//'`
while test -n "$PROCS"
do
for i in $PROCS
do
PROC=`ps -e | grep -e "$i"`
if test -z "$PROC"
then
PROCS=`echo -n $PROCS | sed s/$i// | sed 's/^[ ]//' | sed 's/[ ]$//'`
fi
done
done
sleep 1
sudo /etc/rc.d/rc.vboxdrv stop
exit 0
as a pre-halt script.
Last edited by oscaringolilingo; 03-03-2012 at 11:01 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.