VirtualBox

Ticket #4179 (new defect)

Opened 6 months ago

Last modified 20 hours ago

Windows Guests (XP, Vista, 7 32 or 64 bit) cause non-recoverable (reboot only) machine freeze (hang) with AMD VT extensions enabled.

Reported by: tiras_dude Assigned to:
Priority: major Component: VMM/HWACCM
Version: VirtualBox 3.0.6 Keywords:
Cc: Guest type: Windows
Host type: Linux

Description

After a few confirmed cases on the board, we decided to do a bug report

History here: http://forums.virtualbox.org/viewtopic.php?f=7&t=17617&start=0

Machine: Acer Asprire 4530 Build 6823 AMD QL-62 Nvidia GeForce? 9100m G BIOS 3335 (3334)

System: Ubuntu Jaunty 9.04 AMD64 Kernel 2.6.28-11-generic X-org 1.6.0 version 11 Nvidia 180.60 drivers Virtual Box 2.2.4 PUEL (Virtual Box 2.2.2 OSE)

Problem:

When Windows guest are allowed to use AMD-V extensions the system would hang (freeze) either during boot or during program execution (not necessarily program start). The freeze is recoverable only after hard reboot, but on certain occasions the host system was able to recover on it's on by going down to run-level 3 (longing out and restarting x-server).

The amount of ram allocated to the guest does not seem to matter. System hangs anywhere from 256 to 2048 mb RAM and 12-128 VRAM

Running System Monitor Applet seems to improve stability (machine runs longer before dying)

Vbox logs are attached

Please advise on what to do or what other info you will need.

Attachments

VBox.log_XPsp3_2.txt (37.9 kB) - added by tiras_dude on 2009-06-04 19:14:59.
VBox-3.0.6-PUEL-XPsp3-Jaunty-2-6-28-25-generic.log (37.2 kB) - added by tiras_dude on 2009-09-15 07:22:42.
No 3d with AMD-V
dump_file.rar (22.0 kB) - added by tiras_dude on 2009-11-18 15:06:39.
file 1 of the windows crash report
sysdata.rar (10.5 kB) - added by tiras_dude on 2009-11-18 15:07:11.
2nd file of windows crash report
problems.txt (336 bytes) - added by tiras_dude on 2009-11-18 15:07:43.
copy of the windows crash report dialog window
BSOD.jpg (90.3 kB) - added by tiras_dude on 2009-11-18 15:08:15.
Photo of the BSOD

Change History

2009-06-04 19:14:59 changed by tiras_dude

  • attachment VBox.log_XPsp3_2.txt added.

2009-06-08 16:30:06 changed by sandervl73

Does turning off 3d support in the VM settings help? If it does, then try to find updates for your NVidia drivers.

2009-06-08 17:14:46 changed by tiras_dude

3D support does not seem to make any difference in my case.

Ditto on shutdown freeze with XP

(follow-up: ↓ 7 ) 2009-07-12 21:20:39 changed by wilbur.harvey@gmail

I have a similar problem. My host system is a Shuttle X48, 8GB Ram, Intel Core 2 Quad Q9650 CPU. Ubuntu 64-bit host. Hardware virtualization support is enabled in the BIOS. Whenever VT-x is enabled, the entire system instantly freezes with a black screen as soon as Virtualbox starts. If in the CPU options in the BIOS, I allow code space memory to not be write protected, then the same thing happens, except the screen doesn't go black. I have tried various versions of Nvidia drivers, VBox from V2.2 and now 3.02, I upgraded from Jaunty 9.04 to 9.10, nothing has any effect on the problem. I upgraded the BIOS as well. I am pretty sure that back < v2.0 of virtual box it would work. I Have tried enabling/disabling the 3D options. I typically have about 1GB of ram assigned to the guest, with 64MB or 128MB of ram for the video display.

(in reply to: ↑ 6 ) 2009-07-14 21:16:49 changed by tiras_dude

Getting Worse!

Well 3.0.0 and 3.0.2 only worsened the situation. The 32 bit XP was very stable on this platform with 2.2.4 Guest Additions. Reinstalling 3.0.0 Guest additions returned the hardware virtualization freeze.

In addition in the 3.0.x series 64 bit XP and Win 7 refuse to run at all.

I tried adding "nohz=off" to the end of the "kernel" line in "/boot/grub/menu.lst" but that did absolutely nothing.

Interestingly enough this problem is specific to Acer 4530 hardware and Jaunty. Tried running VBox 3.0.2 PUEL on a AMD Athlon X2 5200 desktop system running Ubuntu 8.10 x64. X64 XP Guest and Win 7 x64 ran like a charm. Very Stable. Soon to upgrade desktop machine to Jaunty, will update with observations when it happens.

2009-08-12 13:46:40 changed by frank

Is there any difference if you disable nested paging for the VM?

2009-08-26 21:54:00 changed by adhisimon

I confirm this bug. Machine: Acer Asprire 4530 Host: Fedora 11 x86_64 Virtualbox version: 3.0.2 and 3.0.4

I've tried windows xp and vista, 32 bit and 64 bit guest. All have freeze my host.

2009-08-27 09:25:24 changed by sandervl73

adhisimon: VBox.log please. If you don't have one, please tell me which AMD CPU you have.

2009-09-06 15:14:31 changed by tiras_dude

Update. The problem continues on the 3.0.6 beta1. 32 bit XP runs untill total collapse either under Photoshop, or on shutdown signal (AMD-V, and Nested Paging, or without Nested Paging). 64 bit XP runs VDI's created on other systems, but cannot setup or run a 64 bit setup program. Additionally sending shutdown signal to a 64 bit xp vm causes system wide freeze, and irreparable damage to a VDI file (BSOD, FAT destruction, etc).

On machine that has a different amd cpu (VBOX 3.0.4), I am experiencing BSOD on XP 64 after serious system update or software install. Turning of the host (not loging out) and restarting vm seems to solve that problem by itself.

Let me know what info do you guys need to rectify the problem.

2009-09-13 17:49:04 changed by sandervl73

  • host changed from other to Linux.
  • version changed from VirtualBox 2.2.4 to VirtualBox 3.0.6.

(follow-up: ↓ 26 ) 2009-09-13 17:56:41 changed by sandervl73

tiras_dude: try to disable 3d support in the VM settings. If that doesn't help, then please attach a log of the VM with 3.0.6 PUEL (please don't use your own compiled build to rule out any problems there).

2009-09-15 07:22:42 changed by tiras_dude

  • attachment VBox-3.0.6-PUEL-XPsp3-Jaunty-2-6-28-25-generic.log added.

No 3d with AMD-V

(in reply to: ↑ 25 ) 2009-09-15 07:27:12 changed by tiras_dude

Hello,

Still the same issue. I attached the VBox-3.0.6-PUEL-XPsp3-Jaunty-2-6-28-25-generic.log. Died within minutes of boot.

BTW running 3d without AMD-V works ok, except for Solidworks 2008 (video issues, but no system stability problems).

Still can not run 64 bit windows successfully at all.

2009-09-25 11:23:43 changed by frank

  • owner changed.
  • component changed from other to VMM/HWACCM.

2009-10-19 15:42:58 changed by sandervl73

Sounds like a BIOS problem to me. Try to find an update. There are known errata for AMD cpus and BIOSes must be updated to implement workarounds. For a similar ticket see #4988.

2009-10-19 15:49:11 changed by sandervl73

A good thing to check is if there are similar reports for Windows 7/XP Compatibility mode & VirtualPC for the same hardware.

2009-10-19 16:51:15 changed by tiras_dude

sandervl73 - I would tend to disagree

1. I have the newest BIOS from acer on the machine.

2. I have tested vmware and parallels on the same machine and had no stability issues. VBox is much faster.

3. 3.0.8 is a whole lot more stable. I am cautiously going to say that XP32 issue is gone.

XP 64 (and the same for linuxes amd64) do occasionally freeze but this is an exception rather than the rule as previously.

In addition, I have been testing ubuntu karmic with 2.6.31 kernel with Vbox 3.0.8 and have not noticed any issues at all yet. Keeping my fingers crossed.

If the improvement continues in 3.1.0 and above, this would be the most awesome virtualization product out there. (And if we could run snow leopard as guest (as on can do now in VMWare) with additions, without telling mr. jobs there will be no equal to this product =)

(follow-up: ↓ 32 ) 2009-10-20 11:51:27 changed by sandervl73

VMWare nor Parallels use AMD-V by default as far as I know.

There were no fixes in 3.0.8 to address your issue, so something else might have contributed to the improvement. Perhaps the Ubuntu update, but it sounds like the problem is still there.

(in reply to: ↑ 31 ) 2009-10-22 23:08:53 changed by tiras_dude

sandervl73 - I may have spoken too soon, the new Jaunty -16 kernel is unstable again with VBox.

Do you have links to known errata for AMD Hyper-V cpu issue so I can forward the info to ACER to see if they can get a bug fix bios release for our machine?

2009-10-22 23:40:07 changed by tiras_dude

Now, I don't know who should be fixing this (amd is definitely not doing it =(

But this document has something that I think is related http://support.amd.com/us/Processor_TechDocs/41788.pdf

In Particular:

"246 Breakpoint Due to An Instruction That Has an Interrupt Shadow May Be Delivered to the Hypervisor

Description

A #DB exception occurring in guest mode may be delivered in the host context under the following conditions: • A trap-type #DB exception is generated in guest mode during execution of an instruction with an interrupt shadow, and • The instruction that generated the exception is immediately followed by an instruction resulting in #VMEXIT.

Potential Effect on System Unpredictable results due to an unexpected #DB exception.

Suggested Workaround The hypervisor should have a valid interrupt gate in the IDT of the #DB handler entry and the handler must be able to determine that this event has occurred. If the event is detected, the handler should execute an IRET back to the hypervisor; one method that could be used to evaluate for this condition is to compare the RIP pushed on the stack to the RIP of the instruction following VMRUN, if they are equivalent then this event has occurred.

Fix Planned No"

Now given that our hypervison is VBox, may be somebody from V-Box team can implement this adjustment in to the code in the future release.

If it's not the area for v-box please advise and I will go bug Acer or Ubuntu kernel team.

2009-11-14 23:02:40 changed by tiras_dude

problem continues 3.0.8, 3.0.10, 3.1.0 Beta 1

2009-11-15 10:09:16 changed by sandervl73

Can you find anything with google about your machine & Windows 7 (xp comp mode) or Virtual PC?

2009-11-17 04:13:56 changed by tiras_dude

nothing on the net, but I am trying to install win7 rc to see if i get the same problems in virtual pc.

why in the world can you not run windows from a usb drive? arrrr. hate that company.

2009-11-17 20:39:15 changed by tiras_dude

I have installed windows 7 x64 with xp mode / virtual pc. So far no issues, installing same soft as in my xp guest as of the moment. Is there any particular tests you want me to run while this thing is installed? I will keep this os on my machine untill tomorow, please let me know asap.

2009-11-18 09:45:41 changed by sandervl73

How did you use the xp mode? I had to install an additional piece of software (from MSDN) here. Only then will it show up in the menu and you can start the XP VM.

2009-11-18 15:05:47 changed by tiras_dude

Here is an update:

To get to use xp vm I had to go here: http://www.microsoft.com/windows/virtual-pc/download.aspx and install both the xp-vm and virtual pc (the first is the actual xp vm build and the later being the hypervisor as I understand).

I set the memory and everything else to mach as closely to my VBox as I could.

Eventually I did manage to break it to get consistent BSOD's. By default XP-VM does not shut down, but hibernates. As soon as I forced it to shudtown, I got BSOD. I am attaching windows dump data, I don't know if it will help or not.

Called Acer, and forced them to post a BIOS update to version 1.3336 on their website: http://global-download.acer.com/GDFiles%5CBIOS/BIOS/BIOS_Acer_3336_A_A.zip?acerid=633940463055803203&Step1=Notebook&Step2=Aspire&Step3=Aspire%204530&OS=V10&LC=en&BC=Acer&SC=PA_7 (If the link does not work go www.support.acer.com and use driver download script)

Unfortunately, update did not solve the problem. I will be trying to talk to level II techs today, once they wake up, but so far I am dealing with level I and it is terrible.

If you have any suggestions on what I should tell them, please post, I still have the Win 7 installed, and probably keep it untill the weekend or untill issue is resolved.

2009-11-18 15:06:39 changed by tiras_dude

  • attachment dump_file.rar added.

file 1 of the windows crash report

2009-11-18 15:07:11 changed by tiras_dude

  • attachment sysdata.rar added.

2nd file of windows crash report

2009-11-18 15:07:43 changed by tiras_dude

  • attachment problems.txt added.

copy of the windows crash report dialog window

2009-11-18 15:08:15 changed by tiras_dude

  • attachment BSOD.jpg added.

Photo of the BSOD

2009-11-18 20:54:25 changed by tiras_dude

Got through to level II tech at ACER today. Highlighted the AMD errata and our forum thread there. The issue has been forward to engineering. Hopefully the answer will come sooner than later.

sandervl73 - if you know what needs to be done by ACER tech, please post here, my guess they will be reading this soon.

Cheers

2009-11-18 22:36:09 changed by tiras_dude

Guess Acer does not care about hardware support: because virtual pc is not supposed to run on windows home premium (original os of the Acer 4530) they will not provide support for it, or issue a bios patch.

Got to love cop-outs. "And its also not a hardware issue."

Anyway, if any other 4530 owners want to bug Acer, you can reference case 1-5N1FZA, but I am really disappointed in such a stance from the company.

sandervl73 - if your team can do something on your side to resolve it, you would be awesome, otherwise I guess I can forget about hardware virtualization on this system.

2009-11-18 23:18:07 changed by tiras_dude

sandrvl, got an e-mail from the Acer tech guy, guess they do have some good people working there, he sent me this link:

http://www.faultwire.com/solutions_bsod/A_clock_interrupt_was_not_received_on_a_secondary_0x00000101-1254.html (in particular the slew of links to msnd issues at the bottom). Apparetly some of the similar bsod's are indeed software related. I am digging through to see if there is anything particular to amd, so far mostly intel xeon issues.

Just an FYI

2009-11-19 09:32:31 changed by sandervl73

BSOD 0x101 is just a generic one. It would be interesting if there are more reports from 4530 owners about similar problems.

2009-11-19 09:39:24 changed by sandervl73

#4988 is a similar issue with a Dell laptop for instance. (and there are a lot of reports on the internet/dell support forums) Not quite the same CPU as you've got, but it looks like a similar issue.

There are known errata for certain AMD CPU models that require BIOS workarounds. That's all I can say unfortunately (NDA).

From my end without access to such a machine it's rather difficult to provide further assistance.

2009-11-20 04:33:14 changed by tiras_dude

sandrvl73 are you US based? If so, I am willing to send you this thing in the name of science =) for a week or so. If this is acceptable, e-mail me privately just add hotmail to the user name for e-mail.

2009-11-20 09:37:56 changed by sandervl73

We're all in Europe, so that would be difficult (customs, danger to hardware) unfortunately. Thanks for the offer though.

Do you have the same stability issues with linux guests (e.g. DSL bootable iso)?

2009-11-20 15:46:43 changed by tiras_dude

The issue is pretty much for windows (xp,7) guests (and select sofware [photoshop cs3 is notorious for killing the guest and host {zoom, clone tool}]/happens always/, or operations (installation, shutdown, file transfer)/happens ocasionally, except for windows7 x64 install wich fails all the time/. Also, the install environment on xp64 likes to take out the system.

Unix derivatives: Linux (Ubuntu, Suse, Fedora), BSD, or Solaris guests run fine (x32/x64) exept for Moblin and OSX. I do get a freeze on start-up onece in a blue moon, but that is usualy due to faulty settings or oddball occurence (can't replicate it).

© 2009 Sun Microsystems, Inc.
ContactPrivacy policy