News for hackers. Stuff that matters.
Re:Wine on Windows 10 by Danieru on Wednesday August 07, 2019 @05:38AM (#20633161)
Any CPU can only have one hypervisor running at a time. Thus the recursion stops pretty quick.
Re:Wine on Windows 10 by intea on Wednesday August 07, 2019 @05:45AM (#20633202)
Actually most modern hypervisors allow nested virtualization.

https://www.linux-kvm.org/page/Nested_Guests

https://communities.vmware.com/docs/DOC-8970

Re:Wine on Windows 10 by skissane on Wednesday August 07, 2019 @07:32PM (#20640336)
Not even just modern hypervisors. The IBM mainframe hypervisor z/VM (and its predecessor VM/CMS) has supported nested virtualisation for decades. It was an important tool to support its own development (especially considering that mainframes were expensive and not even IBM could afford to give every mainframe OS developer a whole mainframe to themselves.)
Re:Wine on Windows 10 by saint_abroad on Wednesday August 07, 2019 @05:50AM (#20633222)
Intel and AMD CPUs have supported hardware-accelerated nested virtualisation for quite some time now.

https://docs.microsoft.com/en-us/virtualization/hyper-v-on-w...

https://www.redhat.com/en/blog/inception-how-usable-are-nest...

Re:Wine on Windows 10 by Nullabillity on Wednesday August 07, 2019 @05:44AM (#20633189)
Cygwin and Wine don't use virtualization. And even if they did, most hypervisors support nesting these days.
Re:Wine on Windows 10 by ape4 on Wednesday August 07, 2019 @09:49AM (#20634644)
Because, of course, its not a emulator
Re:Wine on Windows 10 by bartvanH on Wednesday August 07, 2019 @05:47AM (#20633210)
Well, yes and no. On modern enough hardware you can do nested virtualisation, so you can run kvm in esxi on hyper-v if you want. Not that it's very usefull, but it is a fun weekend project nonetheless.
Re:Wine on Windows 10 by jrockway on Wednesday August 07, 2019 @06:58AM (#20633562)
I use nested virtualization for Windows Desktop -> Linux VM -> minikube. Works great.

Obviously you could just run minikube under Windows, but then from the Linux VM you can't "minikube ssh" and whatnot, so nested virtualization makes everything a lot simpler.

Re:Wine on Windows 10 by monocasa on Wednesday August 07, 2019 @01:29PM (#20636886)
You can even do nested virtualization without hardware support, it's just super duper slow and not a lot of hypervisors think it's worth the complexity increase.
Re:Wine on Windows 10 by aasasd on Wednesday August 07, 2019 @08:07AM (#20633911)
Aside from all the other corrections, hardware virtualization support isn't necessary for virtualization.
Re:Wine on Windows 10 by Tepix on Wednesday August 07, 2019 @05:57AM (#20633263)
Re:Wine on Windows 10 by mschuster91 on Wednesday August 07, 2019 @05:44AM (#20633193)
Why? There's only one hypervisor involved for the initial "wine" environment.
Re:Wine on Windows 10 by lnx01 on Wednesday August 07, 2019 @05:52AM (#20633231)
Neither WINE nor WSLv1 use virtualisation. WSLv2 does use virtualisation however; but WINE still isn't a VM.
Re:Wine on Windows 10 by mschuster91 on Wednesday August 07, 2019 @06:28AM (#20633421)
I was referring to WSLv2 here, so technically there is a hypervisor involved at the root level hosting the first WINE instance in the chain.

Further recursion WINE => Cygwin => WINE however will not require more nesting of hypervisors.