VirtualBox crashes with Windows 10 guest

Discussions related to using VirtualBox on Mac OS X hosts.
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: VirtualBox crashes with Windows 10 guest

Post by socratis »

wqiu wrote:I have a 6-core (12 threads) CPU, so allocating 6 "CPU" to VM is still well within the green zone.
No, it's not, because VirtualBox cares about cores only, not threads. And if you allocate one core to VirtualBox, the host loses one core (and two threads). So, no, 6-cores is the limit and it's not recommended at all.

I can't believe I missed that detail when I first looked at the log! :shock:
That would have been my #1 recommendation. :(
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
wqiu
Posts: 14
Joined: 2. Aug 2018, 23:12

Re: VirtualBox crashes with Windows 10 guest

Post by wqiu »

then why in the Virtualbox setting, it says I have 12 CPUs?
Attachments
Screen Shot 2018-08-08 at 9.11.08 AM.jpg
Screen Shot 2018-08-08 at 9.11.08 AM.jpg (26.93 KiB) Viewed 5047 times
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: VirtualBox crashes with Windows 10 guest

Post by socratis »

00:00:01.268594 CPUM: Logical host processors: 12 present, 12 max, 12 online, online mask: 0000000000000fff
00:00:01.268597 CPUM: Physical host cores: 6
That's why. You have 6 cores (that's where the green stops) and 12 threads (logical processors).
00:00:01.268856 Full Name: "Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz"
Take a look at what Intel has to say about your i7-8850H CPU. Make sure to click on the "?" next to the "# of Cores" and "# of Threads" to see what I'm talking about...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
wqiu
Posts: 14
Joined: 2. Aug 2018, 23:12

Re: VirtualBox crashes with Windows 10 guest

Post by wqiu »

I understand that I have 6 cores, 12 threads on my host.
I guess the confusion is, if I allocate 1 "CPU" for the VM, I loose 1 core on the host, why would Virtualbox even display 12 CPUs in the setting?

My understanding is that, when Virtualbox allocating "CPU"s, it counts 1thread as 1"CPU". To prove that, I allocated 4 "CPU"s for the Win10 VM. After I launched the VM,
within Win10 resource monitor, I see 4 threads CPU0-CPU3, so that's 2-cores (4 threads)

but on my Windows desktop, I have one 4-core (8 threads)CPU, and in the resource monitor, I can see 4-cores (8 CPUs CPU0-CPU7)
Attachments
cpu.jpg
cpu.jpg (72.82 KiB) Viewed 5041 times
Screen Shot 2018-08-08 at 9.50.55 AM.png
Screen Shot 2018-08-08 at 9.50.55 AM.png (38.41 KiB) Viewed 5042 times
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: VirtualBox crashes with Windows 10 guest

Post by mpack »

wqiu wrote: I guess the confusion is, if I allocate 1 "CPU" for the VM, I loose 1 core on the host, why would Virtualbox even display 12 CPUs in the setting?
You are offered up to 12 vCPUs because the host OS is reporting that 12 CPUs are available. However VirtualBox has analyzed the CPU and believes there are only actually 6 cores (hence the red bar), but it will not prevent you from overriding what it thinks, and treating all 12 CPUs as cores.

It is up to you to understand your tools. You know that you only have 6 cores. You know that your host needs a core, or preferably 2. Therefore you also know that you should not allocate more than 4 cores to any VM.

For people who are confused by this I have a basic question I always ask: if threads are as good as cores, why doesn't your CPU have 1 core and 12 threads? That would be much cheaper in silicon terms, so if they are equivalent then that would be the obvious way to go. If you know they are not equivalent then where's the beef?
wqiu
Posts: 14
Joined: 2. Aug 2018, 23:12

Re: VirtualBox crashes with Windows 10 guest

Post by wqiu »

regardless the number of cores argument, the VB crash is still there. I just experienced another one ( note the number of cores is 4)
Attached is the crash report generated by macOS, and the box.log
Attachments
VBox.log.zip
(18.46 KiB) Downloaded 27 times
macos_crash_report.txt.zip
(21.38 KiB) Downloaded 31 times
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: VirtualBox crashes with Windows 10 guest

Post by mpack »

Unfortunately the new log is incomplete. However as before there is no sign in the log that the VM crashed, so it looks like some kind of code running on your host is what crashed. Whether that code is part of VirtualBox or something else, I have no idea.

Perhaps it's time to raise a BugTracker ticket, attaching the latest log file and OS X crash report.
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: VirtualBox crashes with Windows 10 guest

Post by socratis »

Let's try the big report first... Post the output of the command:
  • 
    ls -laed \
      / \
      /Applications \
      /Applications/VirtualBox.app \
      /Applications/VirtualBox.app/Contents/MacOS/VBoxRT.dylib \
      /private \
      /private/etc \
      /private/etc/sudoers \
      /private/tmp
    
At the same Terminal window, and with the VM completely shut down, enter the following command:
  • 
    VBoxBugReport "<VMname>"
where "<VMname>" is the actual name of the VM that just crashed VirtualBox. This will generate a "YYYY-MM-DD-hh-mm-ss-bugreport.tgz" file in the current directory (most probably your home directory). Attach that file in your response. See the "Upload attachment" tab below the reply form.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
wqiu
Posts: 14
Joined: 2. Aug 2018, 23:12

Re: VirtualBox crashes with Windows 10 guest

Post by wqiu »

The command output and VB report files are attached
drwxr-xr-x  29 root  wheel      928 31 Jul 21:02 /
drwxrwxr-x+ 58 root  admin     1856  8 Aug 20:48 /Applications
 0: group:everyone deny delete
drwxr-xr-x   3 root  admin       96  5 Aug 10:41 /Applications/VirtualBox.app
-rw-r--r--   1 root  admin  5529952 16 Jul 09:19 /Applications/VirtualBox.app/Contents/MacOS/VBoxRT.dylib
drwxr-xr-x   6 root  wheel      192  3 Jul 23:54 /private
drwxr-xr-x  88 root  wheel     2816  8 Aug 09:08 /private/etc
-r--r-----   1 root  wheel     1563 12 Feb 22:21 /private/etc/sudoers
drwxrwxrwt   5 root  wheel      160  9 Aug 09:46 /private/tmp
Attachments
2018-08-09-15-52-42-bugreport.tgz
(114.66 KiB) Downloaded 32 times
Last edited by socratis on 11. Aug 2018, 00:59, edited 1 time in total.
Reason: Replaced attachment with actual text.
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: VirtualBox crashes with Windows 10 guest

Post by socratis »

Nothing. I get nothing out of the ordinary. Just one last piece of information, to see what apps you've got installed on your OSX. Post the output of:
  • 
    ls -ale@ /Applications/
    ls -ale@ /Applications/Utilities/
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
wqiu
Posts: 14
Joined: 2. Aug 2018, 23:12

Re: VirtualBox crashes with Windows 10 guest

Post by wqiu »

attached

Code: Select all

Weigens-MacBook-Pro:~ wqiu$ ls -ale@ /Applications/
total 40
drwxrwxr-x+ 58 root  admin   1856  8 Aug 20:48 .
 0: group:everyone deny delete
drwxr-xr-x  29 root  wheel    928 31 Jul 21:02 ..
-rw-rw-r--   1 root  admin  18436  8 Aug 20:48 .DS_Store
-rw-r--r--   1 root  wheel      0  6 Oct  2017 .localized
drwxr-xr-x@  3 root  wheel     96 26 Jun 15:25 App Store.app
	com.apple.rootless	    0 
 0: group:everyone deny delete
drwxr-xr-x@  3 root  wheel     96  7 Feb  2018 Automator.app
	com.apple.rootless	    0 
 0: group:everyone deny delete
drwxr-xr-x   3 wqiu  staff     96 18 May  2017 Beyond Compare-2.app
drwxr-xr-x@  3 root  wheel     96  6 Oct  2017 Calculator.app
	com.apple.rootless	    0 
 0: group:everyone deny delete
drwxr-xr-x@  3 root  wheel     96  6 Feb  2018 Calendar.app
	com.apple.rootless	    0 
 0: group:everyone deny delete
drwxr-xr-x@  3 root  wheel     96 21 Feb 21:33 Chess.app
	com.apple.rootless	    0 
 0: group:everyone deny delete
drwxr-xr-x@  3 root  wheel     96 23 May 22:16 Contacts.app
	com.apple.rootless	    0 
 0: group:everyone deny delete
drwxr-xr-x@  3 root  wheel     96 11 Oct  2017 DVD Player.app
	com.apple.rootless	    0 
 0: group:everyone deny delete
drwxr-xr-x@  3 root  wheel     96 18 Oct  2017 Dashboard.app
	com.apple.rootless	    0 
 0: group:everyone deny delete
drwxr-xr-x@  3 root  wheel     96  7 Oct  2017 Dictionary.app
	com.apple.rootless	    0 
 0: group:everyone deny delete
drwxr-xr-x@  3 root  wheel     96 21 Feb 21:19 FaceTime.app
	com.apple.rootless	    0 
 0: group:everyone deny delete
drwxr-xr-x@  3 root  wheel     96  4 Feb  2018 Font Book.app
	com.apple.rootless	    0 
 0: group:everyone deny delete
drwxrwxr-x   3 root  admin     96 31 Jul 20:50 GarageBand.app
drwxrwxr-x@  3 wqiu  admin     96  7 Aug 16:45 Google Chrome.app
	com.apple.FinderInfo	   32 
drwxr-xr-x@  3 root  wheel     96 12 Dec  2017 Image Capture.app
	com.apple.rootless	    0 
 0: group:everyone deny delete
drwxr-xr-x   3 root  wheel     96 31 Jul 20:49 Keynote.app
drwxr-xr-x@  3 root  wheel     96 18 Oct  2017 Launchpad.app
	com.apple.rootless	    0 
 0: group:everyone deny delete
drwxr-xr-x  30 wqiu  admin    960  6 Aug 09:16 MATLAB_R2018a.app
drwxr-xr-x@  3 root  wheel     96 15 May 22:33 Mail.app
	com.apple.rootless	    0 
 0: group:everyone deny delete
drwxr-xr-x@  3 root  wheel     96  8 Apr 14:55 Maps.app
	com.apple.rootless	    0 
 0: group:everyone deny delete
drwxr-xr-x@  3 root  wheel     96 20 May 15:17 Messages.app
	com.apple.rootless	    0 
 0: group:everyone deny delete
drwxrwxr-x   3 root  wheel     96  3 Aug 08:59 Microsoft Excel.app
drwxrwxr-x   3 root  wheel     96  3 Aug 08:59 Microsoft OneNote.app
drwxrwxr-x   3 root  wheel     96  3 Aug 08:59 Microsoft Outlook.app
drwxrwxr-x   3 root  wheel     96  3 Aug 08:59 Microsoft PowerPoint.app
drwxrwxr-x   3 root  wheel     96  3 Aug 08:59 Microsoft Word.app
drwxr-xr-x@  3 root  wheel     96 18 Oct  2017 Mission Control.app
	com.apple.rootless	    0 
 0: group:everyone deny delete
drwxr-xr-x@  3 root  wheel     96  1 Feb  2018 Notes.app
	com.apple.rootless	    0 
 0: group:everyone deny delete
drwxr-xr-x   3 root  wheel     96 31 Jul 20:49 Numbers.app
drwxr-xr-x   3 root  wheel     96  3 Aug 08:59 OneDrive.app
drwxr-xr-x   3 root  wheel     96 31 Jul 20:48 Pages.app
drwxr-xr-x@  3 root  wheel     96  7 Dec  2017 Photo Booth.app
	com.apple.rootless	    0 
 0: group:everyone deny delete
drwxr-xr-x@  3 root  wheel     96 15 Jun 17:06 Photos.app
	com.apple.rootless	    0 
 0: group:everyone deny delete
drwxr-xr-x@  3 root  wheel     96  5 Jan  2018 Preview.app
	com.apple.rootless	    0 
 0: group:everyone deny delete
drwxr-xr-x@  3 root  wheel     96 22 Jun 00:14 QuickTime Player.app
	com.apple.rootless	    0 
 0: group:everyone deny delete
drwxr-xr-x@  3 root  wheel     96 15 Nov  2017 Reminders.app
	com.apple.rootless	    0 
 0: group:everyone deny delete
drwxr-xr-x@  3 root  wheel     96 31 Jul 21:02 Safari.app
	com.apple.rootless	    0 
drwxr-xr-x@  3 root  wheel     96 18 Oct  2017 Siri.app
	com.apple.rootless	    0 
 0: group:everyone deny delete
drwxr-xr-x   3 root  wheel     96 31 Jul 23:09 Skype for Business.app
drwxr-xr-x@  3 wqiu  admin     96 31 Jul 17:33 Skype.app
	com.apple.quarantine	   57 
drwxr-xr-x@  3 root  wheel     96  6 Oct  2017 Stickies.app
	com.apple.rootless	    0 
 0: group:everyone deny delete
drwxr-xr-x@  3 root  wheel     96 16 Oct  2017 System Preferences.app
	com.apple.rootless	    0 
 0: group:everyone deny delete
drwxr-xr-x@  3 root  wheel     96 28 Jan  2018 TextEdit.app
	com.apple.rootless	    0 
 0: group:everyone deny delete
drwxrwxr-x   3 root  wheel     96  2 Aug 14:04 TextWrangler.app
drwxr-xr-x   3 root  wheel     96 31 Jul 21:40 The Unarchiver.app
drwxr-xr-x@  3 root  wheel     96 18 Oct  2017 Time Machine.app
	com.apple.rootless	    0 
 0: group:everyone deny delete
drwxr-xr-x+ 21 root  admin    672  3 Jul 23:52 Utilities
 0: group:everyone deny delete
drwxr-xr-x   3 root  admin     96  5 Aug 10:41 VirtualBox.app
drwxr-xr-x   3 root  wheel     96 31 Jul 23:35 WeChat.app
drwxr-xr-x   3 root  wheel     96 31 Jul 21:38 Xcode.app
drwxr-xr-x@  3 root  wheel     96 12 Apr 21:36 iBooks.app
	com.apple.rootless	    0 
drwxr-xr-x   3 root  wheel     96  4 May 05:35 iMovie.app
drwxr-xr-x@  3 root  wheel     96 31 Jul 20:57 iTunes.app
	com.apple.rootless	    0 
drwxrwxr-x   3 wqiu  admin     96 15 Jul 19:50 zoom.us.app
Weigens-MacBook-Pro:~ wqiu$ ls -ale@ /Applications/Utilities/
total 0
drwxr-xr-x+ 21 root  admin   672  3 Jul 23:52 .
 0: group:everyone deny delete
drwxrwxr-x+ 58 root  admin  1856  8 Aug 20:48 ..
 0: group:everyone deny delete
-rw-rw-r--   1 root  admin     0  9 Apr 20:28 .DS_Store
-rw-r--r--   1 root  wheel     0  6 Oct  2017 .localized
drwxr-xr-x@  3 root  wheel    96 16 Jan  2018 Activity Monitor.app
	com.apple.rootless	   0 
 0: group:everyone deny delete
drwxr-xr-x@  3 root  wheel    96 14 Feb 20:33 AirPort Utility.app
	com.apple.rootless	   0 
 0: group:everyone deny delete
drwxr-xr-x@  3 root  wheel    96 14 Oct  2017 Audio MIDI Setup.app
	com.apple.rootless	   0 
 0: group:everyone deny delete
drwxr-xr-x@  3 root  wheel    96 31 Jul 21:02 Bluetooth File Exchange.app
	com.apple.rootless	   0 
 0: group:everyone deny delete
drwxr-xr-x@  3 root  wheel    96 30 Apr 21:20 Boot Camp Assistant.app
	com.apple.rootless	   0 
 0: group:everyone deny delete
drwxr-xr-x@  3 root  wheel    96 14 Dec  2017 ColorSync Utility.app
	com.apple.rootless	   0 
 0: group:everyone deny delete
drwxr-xr-x@  3 root  wheel    96  9 Jan  2018 Console.app
	com.apple.rootless	   0 
 0: group:everyone deny delete
drwxr-xr-x@  3 root  wheel    96  6 Oct  2017 Digital Color Meter.app
	com.apple.rootless	   0 
 0: group:everyone deny delete
drwxr-xr-x@  3 root  wheel    96 27 Feb 22:24 Disk Utility.app
	com.apple.rootless	   0 
 0: group:everyone deny delete
drwxr-xr-x@  3 root  wheel    96  6 Oct  2017 Grab.app
	com.apple.rootless	   0 
 0: group:everyone deny delete
drwxr-xr-x@  3 root  wheel    96 24 Jun 20:11 Grapher.app
	com.apple.rootless	   0 
 0: group:everyone deny delete
drwxr-xr-x@  3 root  wheel    96 10 Jun 16:18 Keychain Access.app
	com.apple.rootless	   0 
 0: group:everyone deny delete
drwxr-xr-x@  3 root  wheel    96  7 Oct  2017 Migration Assistant.app
	com.apple.rootless	   0 
 0: group:everyone deny delete
drwxr-xr-x@  3 root  wheel    96  6 Oct  2017 Script Editor.app
	com.apple.rootless	   0 
 0: group:everyone deny delete
drwxr-xr-x@  3 root  wheel    96 29 May 20:25 System Information.app
	com.apple.rootless	   0 
 0: group:everyone deny delete
drwxr-xr-x@  3 root  wheel    96  5 Jan  2018 Terminal.app
	com.apple.rootless	   0 
 0: group:everyone deny delete
drwxr-xr-x@  3 root  wheel    96 27 Feb 18:37 VoiceOver Utility.app
	com.apple.rootless	   0 
 0: group:everyone deny delete
Last edited by socratis on 11. Aug 2018, 16:25, edited 1 time in total.
Reason: Replaced attachment with actual text.
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: VirtualBox crashes with Windows 10 guest

Post by socratis »

From the list of your installed applications, the following are not from Apple:
drwxr-xr-x   3 wqiu  staff     96 18 May  2017 Beyond Compare-2.app
drwxrwxr-x@  3 wqiu  admin     96  7 Aug 16:45 Google Chrome.app
drwxr-xr-x  30 wqiu  admin    960  6 Aug 09:16 MATLAB_R2018a.app
drwxrwxr-x   3 root  wheel     96  3 Aug 08:59 Microsoft Excel.app
drwxrwxr-x   3 root  wheel     96  3 Aug 08:59 Microsoft OneNote.app
drwxrwxr-x   3 root  wheel     96  3 Aug 08:59 Microsoft Outlook.app
drwxrwxr-x   3 root  wheel     96  3 Aug 08:59 Microsoft PowerPoint.app
drwxrwxr-x   3 root  wheel     96  3 Aug 08:59 Microsoft Word.app
drwxr-xr-x   3 root  wheel     96  3 Aug 08:59 OneDrive.app
drwxr-xr-x   3 root  wheel     96 31 Jul 23:09 Skype for Business.app
drwxr-xr-x@  3 wqiu  admin     96 31 Jul 17:33 Skype.app
drwxrwxr-x   3 root  wheel     96  2 Aug 14:04 TextWrangler.app
drwxr-xr-x   3 root  wheel     96 31 Jul 21:40 The Unarchiver.app
drwxr-xr-x   3 root  admin     96  5 Aug 10:41 VirtualBox.app
drwxr-xr-x   3 root  wheel     96 31 Jul 23:35 WeChat.app
drwxrwxr-x   3 wqiu  admin     96 15 Jul 19:50 zoom.us.app
From these, I'm a little skeptical about "zoom.us.app", mainly because I discovered that they create their own audio device. I can tell you one thing; it was the first app that managed to freeze my OSX 10.11 VM. :shock:

Also, I'm not so confident about the "WeChat.app" one either...

Can you do me a favor and uninstall them temporarily, then reboot your OSX and try again?
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
wqiu
Posts: 14
Joined: 2. Aug 2018, 23:12

Re: VirtualBox crashes with Windows 10 guest

Post by wqiu »

the crash does not happen all the time, just once in a few days. and I need to use zoom regularly for meetings.
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: VirtualBox crashes with Windows 10 guest

Post by socratis »

OK, great. Let us know if you manage to find the solution then. Good luck!
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Kasimir
Posts: 1
Joined: 10. May 2019, 13:37
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Ubuntu 18 LTS

Re: VirtualBox crashes with Windows 10 guest

Post by Kasimir »

I have the exact same behavior, VBox crashes after orderly guest shutdown.

Host: MacBook Pro (2014), MacOS 10.13.6, 16 GB RAM, 4 cores
VBox: version 6.0.6 r130049 (Oracle)
Guest: Ubuntu 18 Server LTS, 1 CPU, 2 GB RAM, 3 (of 20) GB VMDK disk, Network adapters: 1 x NAT, 1 x host-only, graphics: 1 monitor, no acceleration, audio out enabled, no shared folders

VBox crashes after orderly guest shutdown (shutdown -h now), just like for OP.

Has this problem ever been resolved?
Post Reply