Linux VM's sometimes hang on shutdown
Linux VM's sometimes hang on shutdown
I've been experimenting with Ubuntu (12.04) and Linux Mint VM's under Windows 7 32-bit. I've been having an issue where the VM's don't always completely shut down and close the VM. Linux itself seems to complete the shut down, but then VB doesn't seem to recognize that and the window just sits there. I have to use Task Manager to kill the process. Are there any general reasons why this may happen?
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Linux VM's sometimes hang on shutdown
Post the guests log file (as an attachment)
See Online Users Manual for the location of the file.
See Online Users Manual for the location of the file.
Re: Linux VM's sometimes hang on shutdown
Added attachment of the latest log. The end is full of error messages.
- Attachments
-
VBox.log- (79.98 KiB) Downloaded 8 times
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Linux VM's sometimes hang on shutdown
While it is not required for 32-bit guests you will find that the guest will work much better if you enable hardware virtualization in the hosts bios (and may stop the hangs as well).
You should also upgrade the guest additions (in the guest) to match your running version of VirtualBox.
You should also upgrade the guest additions (in the guest) to match your running version of VirtualBox.
Re: Linux VM's sometimes hang on shutdown
This computer is a Q6600. I don't know if it supports hardware virtualization.
As for Mint, it comes with the guest additions pre-installed, and does not seem to accept trying to install the newer additions.
EDIT: I guess it does, and I turned it on in the BIOS. Haven't been in there for over 5 years! Why have it off by default? I did a quick test, and it did shut down cleanly. I don't know if that's because of the virtualization support, or if it was because I only ran it a minute or so.
As for Mint, it comes with the guest additions pre-installed, and does not seem to accept trying to install the newer additions.
EDIT: I guess it does, and I turned it on in the BIOS. Haven't been in there for over 5 years! Why have it off by default? I did a quick test, and it did shut down cleanly. I don't know if that's because of the virtualization support, or if it was because I only ran it a minute or so.
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Linux VM's sometimes hang on shutdown
Mint comes with (as well as a few others) their own Guest additions. To install the guest additions from VirtualBox.org you would need to remove the mint ones. Open your package manager and select to show only installed packages and search for virtualbox. select to remove them and then install ours. You should also install the following using a terminal before you try to install the GAs from VirtualBox.andyross wrote:This computer is a Q6600. I don't know if it supports hardware virtualization.
As for Mint, it comes with the guest additions pre-installed, and does not seem to accept trying to install the newer additions.
EDIT: I guess it does, and I turned it on in the BIOS. Haven't been in there for over 5 years! Why have it off by default? I did a quick test, and it did shut down cleanly. I don't know if that's because of the virtualization support, or if it was because I only ran it a minute or so.
Code: Select all
sudo apt-get install dkms build-essential linux-headers-genericYou should have noticed a faster boot of the guest and a little less sluggishness with VT-x enabled as well ( you may need to enable VT-x/AMD-v in the guest settings under System -> Acceleration).
Re: Linux VM's sometimes hang on shutdown
I tried removing the original Guest and tried installing the newer one. The removal went OK and I'm now stuck at 1024x768. I can't get the new ones to install. I get the autorun prompt, but then nothing happens. I have another Ubuntu VM I was playing with, and that installed fine.
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Linux VM's sometimes hang on shutdown
Assuming you did as I suggested, manually install the GAs from the terminal, or open the guests file manager and run autorun from there. This requires you to install with sudo.
Re: Linux VM's sometimes hang on shutdown
I think I finally figured this out. I'm a bit of a Linux newbie and have been just playing around with it in some VM's. It took a bit of Googling to figure out the correct commands to manually start the install. It is updated to 4.2.4 guest additions. It's hard to say if that made much of a difference, but enabling hardware virtualization in the BIOS has not only sped things up, but did seem to fix the original issue of shutdowns locking up.