如何将Windows内核模式驱动程序部署到VM? [英] How to deploy a Windows Kernel Mode Driver to a VM?

查看:116
本文介绍了如何将Windows内核模式驱动程序部署到VM?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,


首先,我是Windows内核模式驱动程序开发的新手。所以,我只是想从MSDN下载一个下载的示例驱动程序(inspect - Windows Filtering Platform)。我按照以下MSDN描述中的描述设置了我的环境
[http://msdn.microsoft.com/en-us/library/windows/hardware/ff538143%28v=vs.85%29.aspx] 。所以我的设置如下:


Win 7(64bit)[主持人]    ---命名管道 - >      Win 7(32位)[VM]


此外,在VM中我执行了以下任务:



  • 通过将相应的注册表项设置为0来禁用UAC
  • 启用管理员帐户并设置密码

在主机操作系统上我有VS2012从中我想将构建的内核模式驱动程序部署到目标VM。我按照说明如何配置VS2012来部署内核模式驱动程序[http://msdn.microsoft.com/en-us/library/windows/hardware/hh454835%28v=vs.85%29.aspx
]


在VS2012中,我可以构建驱动程序但不幸的是部署失败:


1> 为项目"D:\ WFP \Examples \TrafInsp \ C ++ \inspect Package \inspect Package.vcxproj"部署驱动程序文件。 部署可能需要几分钟...
$
1> C:\Program Files(x86)\ MSBuild\Microsoft.Cpp \v4.0 \ V110\Platforms\Win32 \ ImportAfter \DriverDeployment8.0.targets(69,9):错误:无法连接到远程计算机进行部署。

1> C:\Program Files(x86)\ MSBuild \ Microsoft.Cpp\v4.0\V110\Platforms\Win32\ImportAfter\DriverDeployment8.0.targets(69,9):错误:对象引用未设置为对象的实例。


任何提示都表示赞赏!我正在努力解决这个错误几天......


提前致谢,


Sven










解决方案

Hello Sven,


希望它能为您提供帮助。



内核模式和用户模式驱动程序调试使用Visual Studio 2012(VS 2012)和目标虚拟机(VM)到
  相同的主机


 


场景:


主机:
      Windows 7旗舰版x64,(如果选择Win7 Pro或Win7 Home,请确认设置)


目标:
   Windows 7 Ultimate x64,使用VMware Workstation 9在同一主机上的虚拟机


 


要求:


Windows 7旗舰版x64或x86


VMware Workstation 9


.NET Framework 4.5


Visual Studio 2012旗舰版,
(再次,如果选择Pro或Home,请确认设置)


WDK 8


WDK 8可再发行组件


 


安装和创造适当的环境是你的一部分,所以请小心。但是,如果需要任何帮助可以询问。



Dear all,

first of all, I am new to Windows Kernel Mode Driver development. So, I just wanted to start with a downloaded sample driver from the MSDN (inspect - Windows Filtering Platform). I have set up my environment as described in the following MSDN description [ http://msdn.microsoft.com/en-us/library/windows/hardware/ff538143%28v=vs.85%29.aspx ]. So my setup looks as follows:

Win 7 (64bit) [Host]     --- named pipe -->      Win 7 (32bit) [VM]

Furthermore, in the VM I did the following tasks:

  • disabled UAC by setting the corresponding registry key to 0
  • enabled administrator account and set a password

On the host OS I have VS2012 from which I want to deploy the built kernel mode driver to the the target VM. I followed the instructions how to configure VS2012 for deploying kernel mode drivers [ http://msdn.microsoft.com/en-us/library/windows/hardware/hh454835%28v=vs.85%29.aspx ]

In VS2012, I can build the driver but unfortunately deploying fails:

1>  Deploying driver files for project "D:\WFP\Examples\TrafInsp\C++\inspect Package\inspect Package.vcxproj".  Deployment may take a few minutes...
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Platforms\Win32\ImportAfter\DriverDeployment8.0.targets(69,9): error : Could not connect to the remote computer for deployment.
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Platforms\Win32\ImportAfter\DriverDeployment8.0.targets(69,9): error : Object reference not set to an instance of an object.

Any hints are appreciated! I am struggling with this error for a few days...

Thanks in advance,

Sven




解决方案

Hello Sven,

Hope it will help you.

Kernel Mode and User Mode driver debugging using Visual Studio 2012 (VS 2012) and target Virtual Machine (VM) onto  the same Host Machine

 

Scenario:

Host:       Windows 7 Ultimate x64, (Please confirm the settings if selecting Win7 Pro or Win7 Home)

Target:    Windows 7 Ultimate x64, Virtual Machine on the same Host by using VMware Workstation 9

 

Requirement:

Windows 7 Ultimate x64 or x86

VMware Workstation 9

.NET Framework 4.5

Visual Studio 2012 Ultimate, (again, please confirm the settings if selecting Pro or Home)

WDK 8

WDK 8 Redistributable Components

 

Installation and creation of proper environment is your part, so please take care. But still, if require any help can ask.


这篇关于如何将Windows内核模式驱动程序部署到VM?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆