4 ms·
Doesn't Windows do it more or less the same? A lot of Windows features depend on Hyper-V, once enabled Windows is not booted directly any more, Hyper-V is star
by andix 3y ago
Doesn't Windows do it more or less the same?
A lot of Windows features depend on Hyper-V, once enabled Windows is not booted directly any more, Hyper-V is started and the main Windows system runs in a privileged VM.
All other VMs need to utilize the Hyper-V hypervisor, because nested virtualization is not that well supported. So even VMware then is just a front-end for Hyper-V.
- neilalexander 3y agoYou are right that Windows itself runs under Hyper-V as a guest when virtualisation-based security is enabled and it even has paravirtual devices that are not massively different to VirtIO. I think your statement about VMware Workstation is right as of today too with recent versions, although for a long time older versions would simply refuse to start if it detected that Hyper-V was enabled, presumably because it made assumptions about the host virtualisation support.
- andix 3y agoIt's not just security features that need Hyper-V. Also WSL (Linux on Windows) or the Android Subsystem (run any side loaded app or anything from the Amazon App Store) need Hyper-V. Both of them are super useful for me, more and more things are iOS/Android App based only. Linux should speak for itself.
- ComputerGuru 3y agoOnly WSLv2 needs (or uses) Hyper-V.
- andix 3y agoBut WSL1 is de-facto dead, although it is still supported.
- ComputerGuru 3y agoIt still makes more sense than v2 for certain patterns.
- OkGoDoIt 3y agoI still use WSL1 daily. It makes a lot more sense than WSL2 for me. If I want a VM of Linux, I’ll run a VM of Linux. The exciting thing about WSL from the beginning was the notion of actually running Linux processes in Windows without a VM.
- josephg 3y ago> Hyper-V is started and the main Windows system runs in a privileged VM. What are the performance implications of that?
- abhinavk 3y agoMinor performance loss. 5% fps on average. MS recommends turning it off if gaming is your primary use.
- overstay8930 3y agoEven then it's really not that much of a hit if you have half-decent hardware, I've kept it on and I think the only issue I saw was launch day BG3 and it would use much more power from the wall than when I turned it off.
- therein 3y agoMake sure to have Intel VT-x or AMD-V enabled too. There are now a lot of BIOS flags that you can have set to off by default that'll silently hinder performance.
- Avamander 3y agoThere's no way in hell to run any relatively modern hypervisor without VT-x or AMD-V. There are other, newer additions that do provide a performance boost (or well, a smaller loss) but yeah, VT-x/AMD-V is the basis.
- RandomBK 3y agoBack when I ran Windows in a KVM VM for gaming, a lot of anti-cheat systems didn't take kindly to running in a virtualized environment. Turning on HyperV to go KVM->HyperV->Windows effectively 'laundered' my VM signature enough to satisfy the anticheats, though the overall perf hit was ~10-15%.
- beebeepka 3y agoVery interesting. I wonder what sort of (available) CPU would be ideal for such a setup. A 7800x3D or 7950x. Also, was there any hit on the GPU side?
- declaredapple 3y agoYeah I'm very curious as to how this effected 99% framerates and frame pacing. I suspect only a modest hit to average framerate, but I can only imagine it hurt the actual max frametimes which make it "feel choppy" even if the framerate is still higher then your monitor's refresh rate.
- RandomBK 3y agoMore cache never hurts. I'd imagine there were GPU perf gaps, though they were hard to distinguish from CPU-based performance hits. The most notable issues were random latency spikes caused by the multiple layers of hypervisors, which interfered with some games and occasionally caused audio/video desync on Youtube. I ultimately tore down that setup and just swapped to dual-boot. The steps needed to set up high-performance VFIO (i.e. clearing enough contiguous RAM for 1GB Hugepages) meant most of the benefits of VFIO never really materialized for me.
- rdedev 3y agoIs it possible to use hyper v directly? Like could I boot into linux but switch over to Windows with just a key press? I'm guessing no since its not in Microsoft interest to do so
- ComputerGuru 3y agoNot with Hyper-V but the thing to be aware of is there is no difference which you initially “boot into” since each is essentially run at the same level. You can install ESXi (free) to do what you are asking, though.
- andix 3y agoESXi is a completely headless system, except some minimal management UI/CLI there is no possibility to directly interact with the VMs on the host system. At least that's my understanding. And I think a very similar thing can be archived with Windows Server Core. Running Hyper-V with just a minimal Windows installation for management, without the full Windows UI.
- ComputerGuru 3y agoYeah, but it's configurable. I have it pull up the core on a VGA card and then boot up my primary VM on a GPU.
- andix 3y agoThat's an interesting idea, to run Hyper-V completely without Windows. I think it's not possible, at least not without some substantial amount of hacking. But it's no problem to run Linux on Hyper-V. It's a hypervisor, off course you can start nearly any operating system as a VM. You can also give the VM access to some hardware components. But I don't think it's possible to get a full native Linux desktop experience, with GPU/Screen, Keyboard and Mouse connected to the host system. Edit: this post seems to answer your question, not sure if it's correct: https://superuser.com/a/1531799 https://superuser.com/a/1531799
- 3y ago
- moffkalast 3y ago> Hyper-V is started and the main Windows system runs in a privileged VM Wait it's all VMs? Always has been?! That is actual one sentence horror.
- deleted 3y ago[deleted]
- lodovic 3y agoSometimes it's hard to tell how many VMs there are between my code and the actual hardware. It seems to be VMs all the way down.
- deaddodo 3y agoIt hasn't always been, nor is it necessarily now. If you enable Hyper-V, that will act as Hypervisor for your machine and boot Windows by default. Applications that use it (VMWare, for instance, or Microsoft ones like WSL2) will add their own guests to the Hypervisor. It is not the default configuration. And it wasn't even installed before Windows 8.
- andix 3y agoIsn't virtualization based security the default for Windows 11? I only have upgraded Win 11 systems, so no idea what's the default on a fresh installation.
- deaddodo 3y agoMy fresh install of Windows 11 definitely didn't have Hyper-V active by default. It had to install it and reboot to activate the WSL2 subsystem. Now, to be fair, this was an install from a couple major updates back. So newer builds might have it active by default.
- Avamander 3y agoIt is on some hardware on latest feature updates.
- edude03 3y ago> A lot of Windows features depend on Hyper-V, once enabled Windows is not booted directly any more, Hyper-V is started and the main Windows system runs in a privileged VM. Got a source for this? Not that I don't believe you but other than for the Xbox I haven't seen/can't find any details about this.
- dgellow 3y agoSurprised you didn’t find the information, it’s covered in details in Microsoft own docs: https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/ https://learn.microsoft.com/en-us/virtualization/hyper-v-on-... quote: “ In addition, if you have Hyper-V enabled, those latency-sensitive, high-precision applications may also have issues running in the host. This is because with virtualization enabled, the host OS also runs on top of the Hyper-V virtualization layer, just as guest operating systems do. However, unlike guests, the host OS is special in that it has direct access to all the hardware, which means that applications with special hardware requirements can still run without issues in the host OS.” From https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/about/ https://learn.microsoft.com/en-us/virtualization/hyper-v-on-...
- marshray 3y ago"Virtualization-Based Security: Enabled by Default" https://techcommunity.microsoft.com/t5/virtualization/virtualization-based-security-enabled-by-default/ba-p/890167 https://techcommunity.microsoft.com/t5/virtualization/virtua...