Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1425108
  • 博文数量: 596
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 173
  • 用 户 组: 普通用户
  • 注册时间: 2016-07-06 15:50
个人简介

在线笔记

文章分类

全部博文(596)

文章存档

2016年(1)

2015年(104)

2014年(228)

2013年(226)

2012年(26)

2011年(11)

分类: Windows平台

2014-04-20 21:31:47



virtual box :4.1.6

VirtualKD improves kernel debugging performance with VirtualBox and VMWare virtual machines. To use VirtualKD with your VM, you will need to install 3 components:

  • Install debug transport DLL inside your VM

  • Prepare VirtualBox to work with VirtualKD (this step is not required if you are using VMWare only)

  • Start the VM monitor to be able to debug.

This tutorial provides step-by-step instructions on doing it:

  1. Download the  and unpack the self-extracting atchive.

  2. If you are using VirtualBox, close all VirtualBox instances and run VirtualKDSetup.exe. Then press "Integrate into VirtualBox".
    In the new window press "Automatic integration":If you are using only VMWare, just skip step 2.

  3. Start your virtual machine. Copy target/vminstall.exe to it (e.g. via a shared folder)

  4. Run vminstall.exe on your VM:

  5. Restart the Virtual Machine. If your VM is running Windows 8,  in the OS selection menu.

  6. Start vmmon64.exe on the host machine (use vmmon.exe if you are running 32-bit Windows).

  7. Start booting your VM. If VirtualKD has installed correctly, Windows will halt in the beginning of the boot process waiting for a debugger to connect:

  8. Switch back to the vmmon window you should see your VM in the list and the "OS" column should indicate "yes":

  9. Ensure that "OS" column actually mentions "yes". If not, the VirtualKD debug transport has not been loaded (not properly installed?) and the debugging wont't work.

  10. Press the "Run debugger" button. WinDbg will start (if not, press "Debugger path" and specify location of WinDbg):

  11. Now you can start debugging your VM with VirtualKD. Note that currently Windows is just preparing to start and none of your drivers are loaded.

  12. To debug an actual driver, press F5 in WinDbg and let the OS boot.

  13. When OS finishes booting, create a snapshot before you install your driver.

  14. Then install the driver, set the breakpoints and launch it.

  15. If your driver crashes the system, simply close WinDbg, restore the snapshot, go to VMMon window and press "Run debugger" again.

阅读(1186) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~