Running A VirtualBox in a VirtualBox generates a critical error

Discussions related to using VirtualBox on Linux hosts.
Post Reply
Valerian
Posts: 3
Joined: 26. Sep 2019, 16:04

Running A VirtualBox in a VirtualBox generates a critical error

Post by Valerian »

I have a Ubuntu 19.04 system and I run a a Win10 Dev in a VirtualBox
For some tests I needed a Ubuntu on windows so I Run an Ubuntu VirtualBox in the Windows VirtualBox.
Unfortunately this generates a "Guru" telling me : "A critical error has occurred while running the virtual machine and the machine execution has been stopped."

Did anyone run into this before ? Is there a known workaround ?
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Running A VirtualBox in a VirtualBox generates a critical error

Post by mpack »

Please post a VM log file (of the host VM). With the VM fully shut down, right click and "Show Log" in the GUI, save "VBox.log" (no other file) to a zip, and attach the zip here.
Valerian
Posts: 3
Joined: 26. Sep 2019, 16:04

Re: Running A VirtualBox in a VirtualBox generates a critical error

Post by Valerian »

Here is a log that I just generated by:
1. Starting the VirtualBox (running Win10)
2. Starting the VirtualBox in the VirtualBox and running the Ubuntu image
3. Save log
Attachments
WinDev1903Eval-2019-09-27-15-00-39.log.tgz
(84.98 KiB) Downloaded 13 times
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Running A VirtualBox in a VirtualBox generates a critical error

Post by mpack »

00:00:00.754447 Full Name: "Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz"
Nested virtualization is only supported on AMD CPUs, and then only if you can enable AMD-v passthrough to the VM.
User Manual section 3.5.2 wrote: • Enable Nested VT-x/AMD-V: Enables nested virtualization, with passthrough of hardware
virtualization functions to the guest VM.
This feature is available on host systems that use an AMD CPU. For Intel CPUs, the option
is grayed out.
Valerian
Posts: 3
Joined: 26. Sep 2019, 16:04

Re: Running A VirtualBox in a VirtualBox generates a critical error

Post by Valerian »

I see :( So other than replace my CPU is there a way around this ?
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Running A VirtualBox in a VirtualBox generates a critical error

Post by mpack »

Not at the moment. Prior to v6 a nested VM was unsupported, period. It still isn't something I'd recommend (two layers of simulation will not provide best possible performance).
Martin
Volunteer
Posts: 2562
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: Running A VirtualBox in a VirtualBox generates a critical error

Post by Martin »

You could try the VirtualBox 6.1 Beta:
VirtualBox 6.1 will be a new minor release. Here is an incomplete list of changes since version 6.0:
  • Virtualization core: support for nested hardware-virtualization on Intel CPUs (starting with 5th generation Core i, codename Broadwell)
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Running A VirtualBox in a VirtualBox generates a critical error

Post by mpack »

Valerian has an 8th gen i7, so he certainly qualifies... though we're a bit early in the beta phase for my taste.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Running A VirtualBox in a VirtualBox generates a critical error

Post by socratis »

WinDev1903Eval-2019-09-27-15-00-39.log wrote:
00:00:00.754467   Mnemonic - Description                                  = guest (host)
00:00:00.754482   UnrestrictedGuest - Unrestricted guest                  = 0 (1)
00:00:00.754485   VmcsShadowing - VMCS shadowing                          = 0 (1)
Yes, it does support nested virtualization (in theory).

@Valerian,
If you use 6.1.0b1 or any beta, make sure that you report your issues in the VirtualBox Beta / Release Candidate Feedback area, not in the "usual" area...
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.
Post Reply