VM BSOD when enabling USB Controller in VM

Temporary forum to discuss issues and problems during a VirtualBox Beta or Release Candidate phase.

VM BSOD when enabling USB Controller in VM

Postby MarkCranness » 18. Nov 2009, 11:26

VirtualBox beta1. Selecting Settings>USB>'Enable USB Controller' causes guest to BSOD during boot.
May be difficult to debug because no minidump file is created in the guest OS.

Existing guest OS: Windows 2000 Server from a P2V where source PC had USB. When converted, I set the VM up with NO USB controllers. After P2V I had 'set devmgr_show_nonpresent_devices=1; start devmgmt.msc' and removed the now unused original USB devices with Device Manager.

Created a new VM in beta1, with 'Enable USB Controller' selected and attaching the above VDI and booting, and guest OS recognises the new USB hardware and installs existing drivers (from C:\I386 likely).

USB Devices and drivers:
Standard Enhanced PCI to USB Host Controller
C:\WINNT\system32\drivers\usbehci.sys 5.00.2195.6709
C:\WINNT\system32\drivers\usbhub20.sys 5.00.2195.6655
C:\WINNT\system32\drivers\usbport.sys 5.00.2195.6681
C:\WINNT\system32\usbui.dll 5.00.2134.1

Standard OpenHCD PCI to USB Host Controller
C:\WINNT\system32\drivers\openhci.sys 5.00.2195.6675
C:\WINNT\system32\drivers\usbd.sys 5.00.2195.6658
C:\WINNT\system32\drivers\usbhub.sys 5.00.2195.6689
C:\WINNT\system32\usbui.dll 5.00.2134.1

USB 2.0 Root Hub
C:\WINNT\system32\drivers\usbhub20.sys 5.00.2195.6655

USB Root Hub
C:\WINNT\system32\drivers\usbhub.sys 5.00.2195.6689

Upon reboot, BSOD appears:
*** Stop: 0x0000001E (0xC0000005,0xEB298E17,0x00000000,0x000000CC)
KMODE_EXCEPTION_NOT_HANDLED
(screen dump attached)
Screen dump deleted as it was fixed by beta3, please see post below for current error:
Stop: 0x0000001E ... ntoskrnl.exe

Unfortunately, no minidump was indicated in the message or produced (tho' the OS has been setup to create minidumps and has in the past done so).

Guest can be booted by turning 'Enable USB Controller' off, but as soon as it is turned back on, the BSOD occurs.
If I turn it off and 'set devmgr_show_nonpresent_devices=1; start devmgmt.msc' and removed the now unused original USB devices I cna get one boot with 'Enable USB Controller', as the device drivers are installed, but next time BSOD. The '0xEB298E17' number was different the last time I reproduced it, but is consistent

The same sequence of steps in the same VDI image do not give a BSOD in 3.0.12
Last edited by MarkCranness on 6. Dec 2009, 02:17, edited 2 times in total.
MarkCranness
Volunteer
 
Posts: 875
Joined: 10. Oct 2009, 06:27
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Windows Server 2008 R2; Ubuntu 11.04; Windows 2000 Server; Windows XP

Re: VM BSOD when enabling USB Controller in VM

Postby MarkCranness » 18. Nov 2009, 12:31

Logs attached.

Restore Snapshot to a previously working snapshot still works.
Attachments
VBox-USB-Enabled1.log
1st boot with USB enabled. OS installs USB drivers
(55.73 KiB) Downloaded 4 times
VBox-USB-Enabled2.log
2nd boot now drivers are installed: BSOD
(54.62 KiB) Downloaded 5 times
MarkCranness
Volunteer
 
Posts: 875
Joined: 10. Oct 2009, 06:27
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Windows Server 2008 R2; Ubuntu 11.04; Windows 2000 Server; Windows XP

Re: VM BSOD when enabling USB Controller in VM

Postby sandervl » 19. Nov 2009, 12:35

Any difference when you turn off PAE in the VM settings?
sandervl
Volunteer
 
Posts: 1064
Joined: 10. May 2007, 10:27
Primary OS: MS Windows Vista
VBox Version: PUEL
Guest OSses: Windows, Linux, Solaris

Re: VM BSOD when enabling USB Controller in VM

Postby MarkCranness » 19. Nov 2009, 13:12

No difference: still get BSOD: (same hex numbers as before)
*** Stop: 0x0000001E (0xC0000005,0xEB298E17,0x00000000,0x000000CC)
KMODE_EXCEPTION_NOT_HANDLED
Still no minidump Just in case I changed the dump type to Kernel Dump and also no dump.

A strange thing: During testing with No PAE I did *not* change the ethernet adapter, but now with the USB controller disabled (which used to boot OK) I am getting the 'VM BSOD when disable then enable network card' stop error:
*** Stop: 0x0000001E (0xC0000005,0x8046ACC8,0x00000000,0x00000000)
KMODE_EXCEPTION_NOT_HANDLED
*** Address 8046ACC8 base at 80400000, DateStamp 4a781d9e - ntoskrnl.exe
BSOD three times then it booted on the 4th boot then it BSOD'ed on the 5th boot.

Exit VB GUI, Hibernate host, power-up host, Start VB GUI and the VM booted and shutdown OK 3 times in a row.
It seems something gets damaged but is then cleared by a power-down.

Note: This host has/had VM problems when host Standby was used: http://www.virtualbox.org/ticket/5256, but I have not retested this with 3.0.12 or beta1 yet. Edit: Standby still a problem with 3.0.12 same symptoms as in the ticket.
Attachments
VBox-USB-NoPAE-Enabled1.log
No PAE/NX : 1st boot with USB enabled. OS installs drivers
(55.65 KiB) Downloaded 3 times
VBox-USB-NoPAE-Enabled2.log
No PAE/NX : 2nd boot now drivers are installed: BSOD
(54.57 KiB) Downloaded 3 times
Last edited by MarkCranness on 19. Nov 2009, 13:50, edited 1 time in total.
MarkCranness
Volunteer
 
Posts: 875
Joined: 10. Oct 2009, 06:27
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Windows Server 2008 R2; Ubuntu 11.04; Windows 2000 Server; Windows XP

Re: VM BSOD when enabling USB Controller in VM

Postby MarkCranness » 19. Nov 2009, 13:46

Additional note: The VM while BSOD'ing when booting Windows Server 2000, will boot with a UBCD4WIN (WinXP SP3 based) ISO attached to the DVD-ROM.
MarkCranness
Volunteer
 
Posts: 875
Joined: 10. Oct 2009, 06:27
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Windows Server 2008 R2; Ubuntu 11.04; Windows 2000 Server; Windows XP

Re: VM BSOD when enabling USB Controller in VM

Postby MarkCranness » 21. Nov 2009, 02:49

Retested on beta2, still the same error.

Re:
MarkCranness wrote:A strange thing: During testing with No PAE I did *not* change the ethernet adapter, but now with the USB controller disabled (which used to boot OK) I am getting the 'VM BSOD when disable then enable network card' stop error...

I've now discovered this happens anyway even without any VM config changes, on the third and subsequent VM boot, which makes it not strange that it was happening.
MarkCranness
Volunteer
 
Posts: 875
Joined: 10. Oct 2009, 06:27
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Windows Server 2008 R2; Ubuntu 11.04; Windows 2000 Server; Windows XP

Re: VM BSOD when enabling USB Controller in VM

Postby Sasquatch » 21. Nov 2009, 20:29

Just a question that might not be relevant at all, but do you have hardware virtualization on? If so, disable it. I believe I've read somewhere that it can cause problems for W2k.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Sasquatch
Volunteer
 
Posts: 17800
Joined: 17. Mar 2008, 13:41
Location: /dev/random
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux

Re: VM BSOD when enabling USB Controller in VM

Postby MarkCranness » 27. Nov 2009, 13:46

Confirmed still a problem in beta3, but the symptoms have changed a little.

Same VDI image as in the first post:
- Enable USB in VirtualBox.
- Boot, OS installs USB drivers.
- Then on most (80%+) subsequent boots, get BSOD but with different message than before.

I get:
*** Stop: 0x0000001E (0xC0000005,0x8046ACC8,0x00000000,0x00000000)
KMODE_EXCEPTION_NOT_HANDLED
*** Address 8046ACC8 base at 80400000, DateStamp 4a781d9e - ntoskrnl.exe
(Same error as my other issue!)

VBox.log has an extra line not present in earlier logs:
Code: Select all   Expand viewCollapse view
00:00:20.887 SharedFolders host service: connected, u32ClientID = 1
... just before the BSOD occurs.

This line appears in the '*** Stop: 0x0000001E (0xC0000005,0x8046ACC8,0x00000000,0x00000000)
KMODE_EXCEPTION_NOT_HANDLED
*** Address 8046ACC8 base at 80400000, DateStamp 4a781d9e - ntoskrnl.exe' BSODs,

... but does not occur for the beta1 & beta1 '*** Stop: 0x0000001E (0xC0000005,0xEB298E17,0x00000000,0x000000CC)
KMODE_EXCEPTION_NOT_HANDLED' BSODs.

If uninstall the Guest Additions, the BSOD no longer occurs (even when VT-x/AMD-V is still on, see below).

Also different than last time is that if I Restore to a Snapshot that did/does not have USB enabled, the BSOD does not persist anymore, and all machine behaviour reverts to that snapshot state as expected.
BTW, Setting of IO APIC has no effect (VM does not have an IO APIC HAL).

Sasquatch wrote:Just a question that might not be relevant at all, but do you have hardware virtualization on? If so, disable it. I believe I've read somewhere that it can cause problems for W2k.

Good call!

Disabling VT-x/AMD-V allows the VM to boot with USB enabled. VM then boots consistently OK.
Re-enabling VT-x/AMD-V and the VM then BSOD 80% of the time.
Attachments
USB-VBox-2.log
(56.03 KiB) Downloaded 4 times
MarkCranness
Volunteer
 
Posts: 875
Joined: 10. Oct 2009, 06:27
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Windows Server 2008 R2; Ubuntu 11.04; Windows 2000 Server; Windows XP

Re: VM BSOD when enabling USB Controller in VM

Postby Sasquatch » 27. Nov 2009, 13:50

MarkCranness wrote:Good call!Disabling VT-x/AMD-V allows the VM to boot with USB enabled. VM then boots consistently OK.Re-enabling VT-x/AMD-V and the VM then BSOD 80% of the time.

Then it's not since the beta, but a longer standing 'bug'. I think the main problem is that 2k can't handle hardware-V. That's also one of the reasons it's no longer supported as Host, there were some additional features for VT-x/AMD-v that didn't work on 2k (lack of support).
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Sasquatch
Volunteer
 
Posts: 17800
Joined: 17. Mar 2008, 13:41
Location: /dev/random
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux

Re: VM BSOD when enabling USB Controller in VM

Postby MarkCranness » 28. Nov 2009, 00:55

More information: Only happens with the uniprocessor version of ntoskrnl.exe.

@Sander: I hope these steps below will successfully reproduce it for Sun:

*** Stop: 0x0000001E (0xC0000005,0x8046ACC8,0x00000000,0x00000000)
KMODE_EXCEPTION_NOT_HANDLED
*** Address 8046ACC8 base at 80400000, DateStamp 4a781d9e - ntoskrnl.exe
... BSOD occurs (80%+ of the time) when all of these conditions are true:

  • Uniprocessor version of ntoskrnl.exe in use.
    This means 'ACPI Uniprocessor PC' HAL or 'Advanced Configuration and Power (ACPI) PC' HAL.
    (When 'ACPI Multiprocessor PC' HAL is installed, ntoskrnl.exe == ntkrnlmp.exe, and boot is OK.)

  • USB enabled in VirtualBox Settings>USB>...

  • USB host controllers recognised in Device Manager and drivers installed.

  • Guest Additions installed. 3.0.10 or 3.1.0 beta1,2,3 does not matter: they all BSOD.
    (If Guest Additions are not installed then boot is OK.)

  • VT-x/AMD-V enabled in VirtualBox Settings>...
Because VT-x/AMD-V is involved, my CPU might be significant: Intel Core 2 Duo E8400 E0.

@Sasquatch: It does not happen on 3.0.12, so it is a regression.
MarkCranness
Volunteer
 
Posts: 875
Joined: 10. Oct 2009, 06:27
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Windows Server 2008 R2; Ubuntu 11.04; Windows 2000 Server; Windows XP

Re: VM BSOD when enabling USB Controller in VM

Postby MarkCranness » 6. Dec 2009, 02:00

Still a problem with the released 3.1.0 r55467.
MarkCranness
Volunteer
 
Posts: 875
Joined: 10. Oct 2009, 06:27
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Windows Server 2008 R2; Ubuntu 11.04; Windows 2000 Server; Windows XP


Return to VirtualBox Beta/Release Candidate Feedback

Who is online

Users browsing this forum: No registered users and 2 guests