4d61726b / VirtualKD-Redux

VirtualKD-Redux - A revival and modernization of VirtualKD
GNU Lesser General Public License v2.1
812 stars 136 forks source link

Issue with latest version of WinDBG preview #47

Closed SoulXHades closed 1 year ago

SoulXHades commented 2 years ago

Hi! I just installed the latest version of WinDBG on my new PC. However, vmmon64.exe has WinDBG Preview radio button disabled. I tried to open the windbgx.exe via the "Sideloaded windbg preview path..." but it says system cannot open this file. image

4d61726b commented 2 years ago

I looked at the code for this and can see a potential issue that would cause the problem you are describing.

With regard to the host machine (i.e. the machine running vmmon64.exe):

Is the user that is running vmmon64.exe different than the user that installed WinDbg Preview? Are you logged in as a non-admin user? Can you run winver.exe and tell me what the OS build is?

SoulXHades commented 1 year ago

I am logged in as a non-admin user which WinDbg Preview is installed via the non-admin account. image

4d61726b commented 1 year ago

I believe that's the issue then. Windbg Preview is a Microsoft Store app that gets installed per user. You are running vmmon64.exe as a different user (e.g. Administrator) than the user that has Windbg Preview installed (e.g. non-admin account). You never installed it for the admin user that it's running as so vmmon64.exe will never find it and it will be grayed out.

For this case, you have two options if you want to use Windbg Preview with VirtualKD-Redux:

Option 1: Load vmmon64.exe and look at which user the application is running as. You'll need to then log in as that user to install Windbg Preview from the Microsoft Store. This is just a one-time thing you'll have to do.

OR

Option 2: Sideload Windbg Preview and use it that way.

SoulXHades commented 1 year ago

I decided to login as Admin to install WinDbg Preview and is now able to use WinDbg Preview with vmmon64.exe for the user account. Thank you!