I found out that the settings required to run tizen emulator on win10 are incompatible with WSL2. Specifically the hypervisorlaunchtype
must be set to off for it to work, which prevents WSL2 from launching. I created two scripts to turn it on and off if needed, they are in the answer, but the only thing they do is elevate themselves and run bcdedit /set hypervisorlaunchtype (auto/off)
. If anyone managed to get the two to play nice together please do show us how. Hope this will help someone in the future.
Asked
Active
Viewed 494 times
1

Luk164
- 657
- 8
- 22
2 Answers
2
Script to turn hypervisor off (tizen emulator works):
If (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator))
{
# Relaunch as an elevated process:
Start-Process powershell.exe "-File",('"{0}"' -f $MyInvocation.MyCommand.Path) -Verb RunAs
exit
}
# Now running elevated so launch the script:
& bcdedit /set hypervisorlaunchtype off
Script to turn hypervisor on (WSL2 works):
If (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator))
{
# Relaunch as an elevated process:
Start-Process powershell.exe "-File",('"{0}"' -f $MyInvocation.MyCommand.Path) -Verb RunAs
exit
}
# Now running elevated so launch the script:
& bcdedit /set hypervisorlaunchtype auto

Luk164
- 657
- 8
- 22
-
It works - I had found the same solution (using bcdedit turning hyperv on and off) after reading this other article https://www.petri.com/how-to-disable-hyper-v-completely-in-windows-10 - but it's a horrible hack having to switch this every time and reboot. Moreover, I use WSL all the times for things like using GIT... which I use for the Tizen project. I really hope Samsung fixes this. – Daniele Muscetta Jul 20 '21 at 08:51
-
@DanieleMuscetta I would not count on that, Samsung itself is switching to Android for their watches and there is not much need for tizen as a lightweight alternative to android either, because chips have gotten more powerful. Tizen is on its last legs I would say. – Luk164 Jul 20 '21 at 11:31
-
Interesting... they were trying to move away from Android for their phones, trying to rely on vertical integration not having to pay royalties to Google... but I don't think that took off, yet, either... there aren't many devs nor apps. The story will unfold itself in a few years time, I guess. I have this Tizen app for Samsung Smart TV's and for the foreseable future it will still have to be maintained... they have recently re-done their 'seller' office website (which as an app vendor you use to publish packages to their store)... so I think for TV's it will stick around for some time... – Daniele Muscetta Jul 20 '21 at 18:19
-
2@DanieleMuscetta Yeah, TV's are gonna be the last to fall, maybe together with fridges and such, but on mobile devices I believe Tizen is done for – Luk164 Jul 21 '21 at 10:33
0
Thank you for this post. I discovered this as well and posted a bug on MS WSL
I was hoping they would have a more elegant solution than manually changing the hypervisor setting, but the response was: "Conflicting hypervisors can't be running at the same time" :(

Greg
- 1,007
- 1
- 9
- 9