锐英源软件
第一信赖

精通

英语

开源

擅长

开发

培训

胸怀四海 

第一信赖

当前位置:锐英源 / 开源技术 / C语言开源技术 / VM虚拟机里部署驱动调试环境失败

服务方向

人工智能数据处理
人工智能培训
kaldi数据准备
小语种语音识别
语音识别标注
语音识别系统
语音识别转文字
kaldi开发技术服务
软件开发
运动控制卡上位机
机械加工软件
软件开发培训
Java 安卓移动开发
VC++
C#软件
汇编和破解
驱动开发

联系方式

固话:0371-63888850
手机:138-0381-0136
Q Q:396806883
微信:ryysoft

VM虚拟机里部署驱动调试环境失败


背景

我在整理驱动开发培训资料时遇到了同样的问题,下面内容翻译自微软网站,翻译内容只提供了思路,但是锐英源驱动开发培训真正解决了问题,欢迎关注。

I am making a very simple and basic driver. When I try to debug and run my driver, there are deployment errors in installing components on the VM. This is what the logs say: 我正在制作一个非常简单且基本的驱动程序。当我尝试调试和运行驱动程序时,在VM上安装组件时会出现部署错误。这就是日志所说的:

 Name: Install Driver Test Components
Path: C:\Users\jason\AppData\Roaming\Microsoft\WDKTestInfrastructure\InfrastructureTaskGroups\Install Driver Test Components.xml
Target Computer: New Computer
Install Driver Test Components: Host Computer: DESKTOP-N3PM5VL
Install Driver Test Components: Host Architecture: x86
Install Driver Test Components: Host 64bit Operating System: True
Install Driver Test Components: Host Operating System Version: 10.0.17134.0
Install Driver Test Components: Process Administrator Privilege: False
Progress event: Current: 1, Max: 13, Message: ""
Progress event: Current: 1, Max: 13, Message: "Copying required files"
[22:18:02:527]: Copying required files
Task result status updated: Pass
[22:19:59:532]: Task "Copying required files" completed successfully
Progress event: Current: 1, Max: 13, Message: " Task "Copying required files" completed successfully"
Result completed
Test process exit code: 0
Progress event: Current: 2, Max: 13, Message: "Configuring WDK Remote User Account"
[22:20:00:109]: Configuring WDK Remote User Account
Task result status updated: Pass
[22:20:00:543]: Task "Configuring WDK Remote User Account" completed successfully
Progress event: Current: 2, Max: 13, Message: " Task "Configuring WDK Remote User Account" completed successfully"
Result completed
Test process exit code: 0
Progress event: Current: 3, Max: 13, Message: "Installing .NET Framework (possible reboot)"
[22:20:00:573]: Installing .NET Framework (possible reboot)
[22:20:00:578]: [Installing .NET Framework (possible reboot)] Command Line:
%SystemDrive%\DriverTest\Setup\dotNetFx40_Full_x86_x64.exe /q /norestart /log %SystemDrive%\DriverTest\Logs\DotNetInstall.log
Result file "%SystemDrive%\DriverTest\Logs\DotNetInstall*.log" could not be retrieved from the target machine. Error: An error occurred on the target machine while retrieving a file.
Error code: 123
Error message: Unable to open file 'C:\DriverTest\Logs\DotNetInstall*.log'.
Result file "%SystemDrive%\DriverTest\Logs\DotNetInstall*.html" could not be retrieved from the target machine. Error: An error occurred on the target machine while retrieving a file.
Error code: 123
Error message: Unable to open file 'C:\DriverTest\Logs\DotNetInstall*.html'.
Task result status updated: Pass
Task result status updated: Pass
[22:21:00:841]: Task "Installing .NET Framework (possible reboot)" completed successfully
Progress event: Current: 3, Max: 13, Message: " Task "Installing .NET Framework (possible reboot)" completed successfully"
Result completed
Test process exit code: 0
Progress event: Current: 4, Max: 13, Message: "Installing VC Redist (x86)"
[22:21:01:244]: Installing VC Redist (x86)
[22:21:01:244]: [Installing VC Redist (x86)] Command Line:
%SystemDrive%\DriverTest\Setup\x86\vcredist_x86.exe /q /log %SystemDrive%\DriverTest\Logs\vcredist_x86.log
Task result status updated: Pass
Task result status updated: Pass
[22:21:11:186]: Task "Installing VC Redist (x86)" completed successfully
Progress event: Current: 4, Max: 13, Message: " Task "Installing VC Redist (x86)" completed successfully"
Result completed
Test process exit code: 0
Progress event: Current: 5, Max: 13, Message: "Installing test automation (x86)"
[22:21:11:214]: Installing test automation (x86)
[22:21:11:214]: [Installing test automation (x86)] Command Line:
msiexec.exe /i "%SystemDrive%\DriverTest\Setup\Test Authoring and Execution Framework x86-x86_en-us.msi" /qb- KITSROOT="%ProgramFiles%\Windows Kits\10" KITTARGET=1 /l*v "%SystemDrive%\DriverTest\Logs\Test Authoring and Execution Framework x86-x86_en-us.msi_install.log"
Task result status updated: Pass
Task result status updated: Pass
[22:21:20:903]: Task "Installing test automation (x86)" completed successfully
Progress event: Current: 5, Max: 13, Message: " Task "Installing test automation (x86)" completed successfully"
Result completed
Test process exit code: 0
Progress event: Current: 6, Max: 13, Message: "Installing debuggers (x86)"
[22:21:20:926]: Installing debuggers (x86)
[22:21:20:926]: [Installing debuggers (x86)] Command Line:
msiexec.exe /i "%SystemDrive%\DriverTest\Setup\x86 Debuggers And Tools-x86_en-us.msi" /qb- /l*v "%SystemDrive%\DriverTest\Logs\x86 Debuggers And Tools-x86_en-us.msi_install.log"
Task result status updated: Pass
Task result status updated: Pass
[22:21:23:988]: Task "Installing debuggers (x86)" completed successfully
Progress event: Current: 6, Max: 13, Message: " Task "Installing debuggers (x86)" completed successfully"
Result completed
Test process exit code: 0
Progress event: Current: 7, Max: 13, Message: "Installing driver test framework"
[22:21:24:018]: Installing driver test framework
[22:21:24:018]: [Installing driver test framework] Command Line:
msiexec.exe /i "%SystemDrive%\DriverTest\Setup\Windows Driver Testing Framework (WDTF) Runtime Libraries-x86_en-us.msi" /qb- KITTARGET=1 /l*v "%SystemDrive%\DriverTest\Logs\Windows Driver Testing Framework (WDTF) Runtime Libraries-x86_en-us.msi_install.log"
Task result status updated: Pass
Task result status updated: Pass
[22:21:25:471]: Task "Installing driver test framework" completed successfully
Progress event: Current: 7, Max: 13, Message: " Task "Installing driver test framework" completed successfully"
Result completed
Test process exit code: 0
Progress event: Current: 8, Max: 13, Message: "Registering logging components"
[22:21:25:497]: Registering logging components
[22:21:25:497]: [Registering logging components] Command Line:
regsvr32.exe /s %SystemDrive%\DriverTest\WTTLogcm.dll
Task result status updated: Pass
Task result status updated: Pass
[22:21:26:207]: Task "Registering logging components" completed successfully
Progress event: Current: 8, Max: 13, Message: " Task "Registering logging components" completed successfully"
Result completed
Test process exit code: 0
Progress event: Current: 9, Max: 13, Message: "Installing TAEF service"
[22:21:26:241]: Installing TAEF service
[22:21:26:241]: [Installing TAEF service] Command Line:
C:\Program Files (x86)\Windows Kits\10\Testing\Runtimes\TAEF\X86\Wex.Services.exe /install:Te.Service
[22:21:26:357]: Task "Installing TAEF service" was aborted because an error occured on the target machine during execution.
An error occurred on the target machine while executing a process.
Error code: 3
Error message: Unable to start process
Progress event: Current: 9, Max: 13, Message: " Task "Installing TAEF service" was aborted because an error occured on the target machine during execution.
An error occurred on the target machine while executing a process.
Error code: 3
Error message: Unable to start process"
Task result status updated: Aborted
Result completed
Test process exit code: 0
Progress event: Current: 10, Max: 13, Message: "Configuring TAEF test service to start automatically"
[22:21:26:386]: Configuring TAEF test service to start automatically
[22:21:26:386]: [Configuring TAEF test service to start automatically] Command Line:
sc config Te.Service start= auto
Task result status updated: Fail
Task result status updated: Fail
[22:21:27:029]: ERROR: Task "Configuring TAEF test service to start automatically" failed to complete successfully. Look at the logs in the driver test group explorer for more details on the failure.
Progress event: Current: 10, Max: 13, Message: " ERROR: Task "Configuring TAEF test service to start automatically" failed to complete successfully. Look at the logs in the driver test group explorer for more details on the failure."
Result completed
Test process exit code: 1060
Progress event: Current: 11, Max: 13, Message: "Configuring kernel debugger settings (possible reboot)"
[22:21:27:308]: Configuring kernel debugger settings (possible reboot)
[22:21:27:314]: Removing any existing files from test execution folder.
[22:21:27:464]: Copying required files for "Configuring kernel debugger settings (possible reboot)".
[22:21:28:636]: [Configuring kernel debugger settings (possible reboot)] Command Line:
$KitRoot$\Testing\Runtimes\TAEF\te.exe "%SystemDrive%\DriverTest\Run\DriverTestTasks.dll" /select:"@Name='DriverTestTasks::_ConfigureKernelDebugger'" /p:"DebugTransport=NET" /p:"NetHost=192.168.56.1" /p:"NetPort=50665" /p:"NetKey=X9VO9UAALZ2Y.I714U1ETF9A.Q31OB288DLPF.ZR7Y7X00ZT1F" /p:"StartPolicy=Active" /p:"IgnoreUserModeExceptions=0" /p:"SuppressReboot=1" /rebootStateFile:%SystemDrive%\DriverTest\Run\DriverTestReboot.xml /enableWttLogging /wttDeviceString:$LogFile:file="%SystemDrive%\DriverTest\Run\Configuring_kernel_debugger_settings_(possible_reboot)_00002.wtl",writemode=append,encoding=unicode,nofscache=true,EnableLvl="WexStartTest|WexEndTest|WexXml|WexProperty|WexCreateContext|WexCloseContext|*" /runas:Elevated
Result file "%SystemDrive%\DriverTest\Run\Configuring_kernel_debugger_settings_(possible_reboot)_00002.wtl.trace" could not be retrieved from the target machine. Error: An error occurred on the target machine while retrieving a file.
Error code: 2
Error message: Unable to open file 'C:\DriverTest\Run\Configuring_kernel_debugger_settings_(possible_reboot)_00002.wtl.trace'.
[22:21:37:503]: Result Summary: Total=1, Passed=1, Failed=0, Blocked=0, Warned=0, Skipped=0
Task result status updated: Pass
Task result status updated: Pass
[22:21:37:505]: Task "Configuring kernel debugger settings (possible reboot)" completed successfully
Progress event: Current: 11, Max: 13, Message: " Task "Configuring kernel debugger settings (possible reboot)" completed successfully"
Result completed
Test process exit code: 0
Progress event: Current: 12, Max: 13, Message: "Configuring computer settings (possible reboot)"
[22:21:39:474]: Configuring computer settings (possible reboot)
[22:21:39:474]: Removing any existing files from test execution folder.
[22:21:39:497]: Copying required files for "Configuring computer settings (possible reboot)".
[22:21:40:447]: [Configuring computer settings (possible reboot)] Command Line:
$KitRoot$\Testing\Runtimes\TAEF\te.exe "%SystemDrive%\DriverTest\Run\DriverTestTasks.dll" /select:"@Name='DriverTestTasks::_ConfigureCommonSettings'" /p:"OsSkuType=0" /rebootStateFile:%SystemDrive%\DriverTest\Run\DriverTestReboot.xml /enableWttLogging /wttDeviceString:$LogFile:file="%SystemDrive%\DriverTest\Run\Configuring_computer_settings_(possible_reboot)_00002.wtl",writemode=append,encoding=unicode,nofscache=true,EnableLvl="WexStartTest|WexEndTest|WexXml|WexProperty|WexCreateContext|WexCloseContext|*" /runas:Elevated
Waiting for task to complete...
Progress event: Current: 12, Max: 13, Message: "Waiting for task to complete..."
Waiting for task to complete...
Progress event: Current: 12, Max: 13, Message: "Waiting for task to complete..."
Communication error occured while monitoring test. Ignoring error. An error occurred while connecting from the remote machine.
Error: 10061 (ConnectionRefused)
Error message: No connection could be made because the target machine actively refused it 192.168.1.8:50005
Communication error occured while monitoring test. Ignoring error. An error occurred while connecting from the remote machine.
Error: 10060 (TimedOut)
Error message: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 192.168.1.8:50005
Waiting for task to complete...
Progress event: Current: 12, Max: 13, Message: "Waiting for task to complete..."
Communication error occured while monitoring test. Ignoring error. An error occurred while connecting from the remote machine.
Error: 10061 (ConnectionRefused)
Error message: No connection could be made because the target machine actively refused it 192.168.1.8:50005
Communication error occured while monitoring test. Ignoring error. An error occurred while connecting from the remote machine.
Error: 10061 (ConnectionRefused)
Error message: No connection could be made because the target machine actively refused it 192.168.1.8:50005
Waiting for task to complete...
Progress event: Current: 12, Max: 13, Message: "Waiting for task to complete..."
Result file "%SystemDrive%\DriverTest\Run\Configuring_computer_settings_(possible_reboot)_00002.wtl.trace" could not be retrieved from the target machine. Error: An error occurred on the target machine while retrieving a file.
Error code: 2
Error message: Unable to open file 'C:\DriverTest\Run\Configuring_computer_settings_(possible_reboot)_00002.wtl.trace'.
[22:26:21:128]: Result Summary: Total=2, Passed=1, Failed=0, Blocked=1, Warned=0, Skipped=0
Task result status updated: Pass
Task result status updated: Pass
[22:26:21:129]: Task "Configuring computer settings (possible reboot)" completed successfully
Progress event: Current: 12, Max: 13, Message: " Task "Configuring computer settings (possible reboot)" completed successfully"
Result completed
Test process exit code: 0
Progress event: Current: 13, Max: 13, Message: "Creating system restore point"
[22:26:24:040]: Creating system restore point
[22:26:24:040]: [Creating system restore point] Command Line:
cscript.exe %SystemDrive%\DriverTest\Setup\CreateRestore.js
Task result status updated: Fail
Task result status updated: Fail
[22:26:27:884]: ERROR: Task "Creating system restore point" failed to complete successfully. Look at the logs in the driver test group explorer for more details on the failure.
Progress event: Current: 13, Max: 13, Message: " ERROR: Task "Creating system restore point" failed to complete successfully. Look at the logs in the driver test group explorer for more details on the failure."
Result completed
Test process exit code: -2147023838
Progress event: Current: 13, Max: 13, Message: ""
Progress event: Current: 13, Max: 13, Message: "Computer configuration log file://C:/Users/jason/AppData/Roaming/Microsoft/WDKTestInfrastructure/ProvisioningLogs/Driver%20Test%20Computer%20Configuration%2020190605221802261.log"

 

 

I could see few things here, however if you could tell 我在这里看不到什么,但是如果你能告诉

WDK Version WDK版本

Host and Target(VM in your case) OS versions. 主机和目标(您所用的VM)操作系统版本。

"%SystemDrive%\DriverTest\Setup\dotNetFx40_Full_x86_x64.exe /q /norestart /log" 

Can you try executing this command on the VM and paste the log here. same for C:\Program Files (x86)\Windows Kits\10\Testing\Runtimes\TAEF\X86\Wex.Services.exe /install:Te.Service 您可以尝试在VM上执行此命令并将日志粘贴到此处吗?与C:\\ Program Files(x86)\\ Windows Kits \\ 10 \\ Testing \\ Runtimes \\ TAEF \\ X86 \\ Wex.Services.exe /install:Te.Service相同

 

Most of the professional driver writers never use the VS deployment.  Install your driver once on your testbed, then use .kdfiles  大多数专业的驱动程序编写者从不使用VS部署。将驱动程序一次安装到测试台上,然后使用.kdfiles https://docs.microsoft.com/zh-cn/windows-hardware/drivers/debugger/mapping-driver-files根据需要进行更新。https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/mapping-driver-files to update it as needed.

友情链接
版权所有 Copyright(c)2004-2021 锐英源软件
公司注册号:410105000449586 豫ICP备08007559号 最佳分辨率 1024*768
地址:郑州大学北校区院(文化路97号院)内