Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

Commit 0e4a3e4

Browse files
Added explicit error code and message for virtualization not present (#101)
* Added explicit error code and message for virtualization not present
1 parent 28d908d commit 0e4a3e4

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

DistroLauncher/DistroLauncher.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ int wmain(int argc, wchar_t const *argv[])
159159
if (hr == HRESULT_FROM_WIN32(ERROR_LINUX_SUBSYSTEM_NOT_PRESENT)) {
160160
Helpers::PrintMessage(MSG_MISSING_OPTIONAL_COMPONENT);
161161

162+
} else if (hr == HCS_E_HYPERV_NOT_INSTALLED) {
163+
Helpers::PrintMessage(MSG_ENABLE_VIRTUALIZATION);
164+
162165
} else {
163166
Helpers::PrintErrorMessage(hr);
164167
}

DistroLauncher/messages.mc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,9 @@ Language=English
8989
The distribution installation has become corrupted.
9090
Please select Reset from App Settings or uninstall and reinstall the app.
9191
.
92+
93+
MessageId=1014 SymbolicName=MSG_ENABLE_VIRTUALIZATION
94+
Language=English
95+
Please enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS.
96+
For information please visit https://aka.ms/enablevirtualization
97+
.

0 commit comments

Comments
 (0)