VMs take a long time to start on VB 7

Discussions related to using VirtualBox on Windows hosts.
jvidal
Posts: 25
Joined: 12. Oct 2022, 17:25

VMs take a long time to start on VB 7

Post by jvidal »

Hi!

I just updated to VB 7 and now whenever I click on "start VM", to start a VM, nothing happens for about 5-10 seconds until the VM window appears and starts running. This also sort of happened in VB 6, but it was somewhat faster.
I must add, though that this only affects the starting of the VMs, after they start, they run at normal speed.

I hope something can be done about this, it is kind of annoying.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: VMs take a long time to start on VB 7

Post by mpack »

Sounds like you have Hyper-v enabled on the host.

See HMR3Init: Attempting fall back to NEM (Hyper-V is active).
jvidal
Posts: 25
Joined: 12. Oct 2022, 17:25

Re: VMs take a long time to start on VB 7

Post by jvidal »

Hi!

nope, I don't have it enabled. I enabled it once, a long time ago, but since it created issues with other virualization solutions, I disabled it.
(Unless, it got enabled by itself or something)

Edit: Come to think of it, I never enabled it, I did it on another computer, not on this one...
The issue is that there's a long delay between pressing the "Start" button and the VM Window appearing, the rest goes fine. This doesn't happen with other VM software, like VMWare, for example, machines start immediately with that one.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: VMs take a long time to start on VB 7

Post by scottgus1 »

A VM log would show us if Hyper-V is enabled, and the green turtle in the VM window's status bar will show you. No green turtle, no host Hyper-V.

The delay is for hardening checks, and the time taken depends on the processing and data speeds of your PC. My workstation is faster on the hardening checks than my laptop. The delay being longer for 7 vs 6.1 may be for different hardening algorithms, or it may be a bug or three. Please post this in Discuss the VirtualBox 7.0.0 release so the devs can see it.
jvidal
Posts: 25
Joined: 12. Oct 2022, 17:25

Re: VMs take a long time to start on VB 7

Post by jvidal »

FWIW, I've never seen the green turtle icon. I'll check again.

Edit: confirmed, no green turtle. I see the normal icon (the chip with the "v" over it).
execution engine: VT-x / AMD-V
nested paging: active
restriction-less execution: active
execution limit: 100
paravirtualization interface: none

Like I said, the machine runs at normal speed, for example, starting windows 3.1 on a DOS VM takes about 2 seconds. The problem is that it can take anything from 5 to 20 seconds for the VM window to appear after pressing the start button.
HonDen
Posts: 1
Joined: 13. Oct 2022, 12:29

Re: VMs take a long time to start on VB 7

Post by HonDen »

Same problem here. Reproducible slowdown in every version newer than 6.1.34.
trongod05
Posts: 1
Joined: 2. Feb 2022, 11:03

Re: VMs take a long time to start on VB 7

Post by trongod05 »

mpack wrote:Sounds like you have Hyper-v enabled on the host.
I guess they still haven't figured out how to get Virtualbox working along side Hyper-V? I've been using Vmware Workstation because of this.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: VMs take a long time to start on VB 7

Post by mpack »

trongod05 wrote:I guess they still haven't figured out how to get Virtualbox working along side Hyper-V?
At this stage it's nearly impossible, as MS keep changing things. There would need to be a couple of years of stability before it would be IMO worth trying to optimize VirtualBox for the Hyper-v platform. In the meantime I don't enable Hyper-v on my PCs. The only thing I might have wanted it for was to run WSL2, but it turns out that WSL2 doesn't work very well for what I need and a VBox Linux VM works better anyway (more intuitively).
AndyCot
Posts: 297
Joined: 29. Feb 2020, 03:04

Re: VMs take a long time to start on VB 7

Post by AndyCot »

WSL2 Linux works very well on both Windows 10 and Windows 11 for all, but one corner case for me.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: VMs take a long time to start on VB 7

Post by mpack »

I said that it doesn't work for me, not that it doesn't work.
AndyCot
Posts: 297
Joined: 29. Feb 2020, 03:04

Re: VMs take a long time to start on VB 7

Post by AndyCot »

I said WSl2 works " for me."
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: VMs take a long time to start on VB 7

Post by mpack »

This discussion is off topic. Let it end there please.
jvidal
Posts: 25
Joined: 12. Oct 2022, 17:25

Re: VMs take a long time to start on VB 7

Post by jvidal »

You're going off topic, this issue is NOT related to Hyper-V (it happens with Hyper-V disabled). It's an issue introduced with the last few versions of VB 6.x and intensified with V7. Machines take A LONG (5 to 20 seconds) time to appear after pressing the start button, but they run fine after that.
fth0
Volunteer
Posts: 5677
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: VMs take a long time to start on VB 7

Post by fth0 »

jvidal wrote:Machines take A LONG (5 to 20 seconds) time to appear after pressing the start button, but they run fine after that.
Please provide a (zipped) VBoxHardening.log file, which covers most of what happens before the start of the VBox.log file.
jvidal
Posts: 25
Joined: 12. Oct 2022, 17:25

Re: VMs take a long time to start on VB 7

Post by jvidal »

Here it goes!
this is a really simple VM running DOS and win 3.1.
The machine runs perfectly and at a very good speed, it's just starting the machine that takes a lot longer than it used to.
Attachments
VBoxHardening.zip
(33.74 KiB) Downloaded 11 times
Post Reply