LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
Search this Thread
Old 07-21-2011, 11:32 AM   #1
Gerwar
LQ Newbie
 
Registered: Dec 2010
Location: Cancun
Distribution: Slackware 13.37-x86_64
Posts: 27

Rep: Reputation: 0
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.
 
Old 07-21-2011, 12:12 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,631

Rep: Reputation: 519Reputation: 519Reputation: 519Reputation: 519Reputation: 519Reputation: 519
WHAT problem?
 
Old 07-21-2011, 12:36 PM   #3
Gerwar
LQ Newbie
 
Registered: Dec 2010
Location: Cancun
Distribution: Slackware 13.37-x86_64
Posts: 27

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by AlucardZero View Post
WHAT problem?
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
 
0 members found this post helpful.
Old 03-01-2012, 03:32 AM   #4
oscaringolilingo
Member
 
Registered: Dec 2010
Posts: 34

Rep: Reputation: 3
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.
 
Old 03-01-2012, 03:55 AM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,544
Blog Entries: 28

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by Gerwar View Post
Thatś why i said, "like the title says", as a reference of my problem.
The title says "produces an error". What is the text of the error message? "A segmentation fault" is vague.
 
Old 03-05-2012, 03:12 PM   #6
jefro
Guru
 
Registered: Mar 2008
Posts: 11,416

Rep: Reputation: 1398Reputation: 1398Reputation: 1398Reputation: 1398Reputation: 1398Reputation: 1398Reputation: 1398Reputation: 1398Reputation: 1398Reputation: 1398
How did you get Virtualbox installed and from where?
 
  


Reply

Tags
halt, poweroff, slackware13, virtual box


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtualbox: Howto start a new machine on boot and then stop it on halt cabrilo Linux - Virtualization and Cloud 6 12-14-2010 05:20 AM
System halt Exil Linux - Newbie 2 04-08-2008 12:37 PM
CRC error System Halt f96majh Linux - Hardware 3 03-19-2007 06:21 PM
how to halt a system with private ip from a system in other net work seabark99 Linux - Networking 3 03-20-2005 08:36 AM
Halt system kpraveen Linux - General 2 08-10-2002 08:40 AM


All times are GMT -5. The time now is 04:29 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration