It is like the same old method used in Virtual Server or Virtual PC. This post will use some screenshots to explain the same thing for Hyper-V. In genera, for debugging guest OS, we use named pipes. You can read more about named pipes here.
- Turn-off the guest
- Open Hyper-V manager
- Right Click on Virtual Machine and select “Settings”
- In the Settings window, select COM1 on the left side of the window
- On the right side, Select Named Pipe and type “VirtualCom1” as the name or anything you like as the pipe name
- Click OK to exit the VM settings window
Now, on the Host system, install Windows Debugging Tools. You can download the tools from here.
After the install is complete,
- Open WinDBG window and connect to the named pipe by clicking on File -> Kernel Debug option
- Select Pipe and Reconnect check boxes
- Type in the named pipe name in the Port text box. For example, if the pipe name is VirtualCom1 as shown in the above image, you need to type in, \\.\pipe\VirtualCom1
- click OK to get connected to the debuggee
That is it. You are all set to debug the guest now.