How to fix the error provisioning a target computer for kernel mode driver testing(VS2022 V 17.6.0).

Mans 0 Reputation points
2023-05-31T00:25:11.1433333+00:00

I am trying to use Windows 10 as the target for debugging the driver written in Windows 11 with Visual Studio 2022 V 17.6.0.

I am following this instruction: https://learn.microsoft.com/en-us/windows-hardware/drivers/gettingstarted/provision-a-target-computer-wdk-8-1

When I try to do the provision, I am getting this error log:

Name: Install Driver Test Components
  Path: C:\Users\mans\AppData\Roaming\Microsoft\WDKTestInfrastructure\InfrastructureTaskGroups\Install Driver Test Components.xml
  Target Computer: IntelPC
Install Driver Test Components: Host Computer: MANS-PC
Install Driver Test Components: Host Architecture: AMD64
Install Driver Test Components: Host 64bit Operating System: True
Install Driver Test Components: Host Operating System Version: 10.0.22621.0
Install Driver Test Components: Process Administrator Privilege: False
Progress event: Current: 1, Max: 16, Message: ""
Progress event: Current: 1, Max: 16, Message: "Copying required files"
[16:48:34:713]: Copying required files
Task result status updated: Pass
[16:49:41:375]: Task "Copying required files" completed successfully
Progress event: Current: 1, Max: 16, Message: "    Task "Copying required files" completed successfully"
Result completed
Test process exit code: 0
Progress event: Current: 2, Max: 16, Message: "Configuring WDK Remote User Account"
[16:49:41:375]: Configuring WDK Remote User Account
Task result status updated: Pass
[16:49:41:455]: Task "Configuring WDK Remote User Account" completed successfully
Progress event: Current: 2, Max: 16, Message: "    Task "Configuring WDK Remote User Account" completed successfully"
Result completed
Test process exit code: 0
Progress event: Current: 3, Max: 16, Message: "Installing .NET Framework (possible reboot)"
[16:49:41:455]: Installing .NET Framework (possible reboot)
[16:49:41:455]: [Installing .NET Framework (possible reboot)] Command Line:
%SystemDrive%\DriverTest\Setup\dotNetFx45_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: 3
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: 3
Error message: Unable to open file 'C:\DriverTest\Logs\DotNetInstall*.html'.
Task result status updated: Pass
Task result status updated: Pass
[16:49:57:376]: Task "Installing .NET Framework (possible reboot)" completed successfully
Progress event: Current: 3, Max: 16, Message: "    Task "Installing .NET Framework (possible reboot)" completed successfully"
Result completed
Test process exit code: 0
Progress event: Current: 4, Max: 16, Message: "Installing VC Redist (x64)"
[16:49:57:376]: Installing VC Redist (x64)
[16:49:57:376]: [Installing VC Redist (x64)] Command Line:
%SystemDrive%\DriverTest\Setup\x64\vcredist_x64.exe /q /log %SystemDrive%\DriverTest\Logs\vcredist_x64.log
Task result status updated: Pass
Task result status updated: Pass
[16:49:58:251]: Task "Installing VC Redist (x64)" completed successfully
Progress event: Current: 4, Max: 16, Message: "    Task "Installing VC Redist (x64)" completed successfully"
Result completed
Test process exit code: 0
Progress event: Current: 5, Max: 16, Message: "Installing test automation (x86)"
[16:49:58:273]: Installing test automation (x86)
[16:49:58:273]: [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
[16:49:59:203]: Task "Installing test automation (x86)" completed successfully
Progress event: Current: 5, Max: 16, Message: "    Task "Installing test automation (x86)" completed successfully"
Result completed
Test process exit code: 0
Progress event: Current: 6, Max: 16, Message: "Installing test automation (x64)"
[16:49:59:224]: Installing test automation (x64)
[16:49:59:224]: [Installing test automation (x64)] Command Line:
msiexec.exe /i "%SystemDrive%\DriverTest\Setup\Test Authoring and Execution Framework x64-x64_en-us.msi" /qb- KITSROOT="%ProgramFiles(x86)%\Windows Kits\10" KITTARGET=1 /l*v "%SystemDrive%\DriverTest\Logs\Test Authoring and Execution Framework x64-x64_en-us.msi_install.log"
Task result status updated: Pass
Task result status updated: Pass
[16:50:00:952]: Task "Installing test automation (x64)" completed successfully
Progress event: Current: 6, Max: 16, Message: "    Task "Installing test automation (x64)" completed successfully"
Result completed
Test process exit code: 0
Progress event: Current: 7, Max: 16, Message: "Installing debuggers (x86)"
[16:50:00:962]: Installing debuggers (x86)
[16:50:00:962]: [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
[16:50:03:301]: Task "Installing debuggers (x86)" completed successfully
Progress event: Current: 7, Max: 16, Message: "    Task "Installing debuggers (x86)" completed successfully"
Result completed
Test process exit code: 0
Progress event: Current: 8, Max: 16, Message: "Installing debuggers (x64)"
[16:50:03:317]: Installing debuggers (x64)
[16:50:03:317]: [Installing debuggers (x64)] Command Line:
msiexec.exe /i "%SystemDrive%\DriverTest\Setup\x64 Debuggers And Tools-x64_en-us.msi" /qb- /l*v "%SystemDrive%\DriverTest\Logs\x64 Debuggers And Tools-x64_en-us.msi_install.log"
Task result status updated: Pass
Task result status updated: Pass
[16:50:06:012]: Task "Installing debuggers (x64)" completed successfully
Progress event: Current: 8, Max: 16, Message: "    Task "Installing debuggers (x64)" completed successfully"
Result completed
Test process exit code: 0
Progress event: Current: 9, Max: 16, Message: "Installing onecore driver test framework"
[16:50:06:022]: Installing onecore driver test framework
[16:50:06:022]: [Installing onecore driver test framework] Command Line:
msiexec.exe /i "%SystemDrive%\DriverTest\Setup\OneCoreUap_WDTF_Desktop_Kit_Content-x64_en-us.msi" /qb- KITTARGET=1 /l*v "%SystemDrive%\DriverTest\Logs\OneCoreUap_WDTF_Desktop_Kit_Content-x64_en-us.msi_install.log"
Result file "%SystemDrive%\OnecoreWDTFInstallText.log" 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:\OnecoreWDTFInstallText.log'.
Task result status updated: Pass
Task result status updated: Pass
[16:50:06:751]: Task "Installing onecore driver test framework" completed successfully
Progress event: Current: 9, Max: 16, Message: "    Task "Installing onecore driver test framework" completed successfully"
Result completed
Test process exit code: 0
Progress event: Current: 10, Max: 16, Message: "Installing desktop driver test framework"
[16:50:06:764]: Installing desktop driver test framework
[16:50:06:764]: [Installing desktop driver test framework] Command Line:
msiexec.exe /i "%SystemDrive%\DriverTest\Setup\WDTF_Desktop_Kit_Product-x64_en-us.msi" /qb- KITTARGET=1 /l*v "%SystemDrive%\DriverTest\Logs\WDTF_Desktop_Kit_Product-x64_en-us.msi_install.log"
Result file "%SystemDrive%\WDTFInstallText.log" 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:\WDTFInstallText.log'.
Task result status updated: Fail
Task result status updated: Fail
[16:50:07:978]: ERROR: Task "Installing desktop driver test framework" 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: 16, Message: "    ERROR: Task "Installing desktop driver test framework" 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: 1603
Progress event: Current: 11, Max: 16, Message: "Registering logging components"
[16:50:07:978]: Registering logging components
[16:50:07:978]: [Registering logging components] Command Line:
regsvr32.exe /s %SystemDrive%\DriverTest\WTTLogcm.dll
Task result status updated: Pass
Task result status updated: Pass
[16:50:08:148]: Task "Registering logging components" completed successfully
Progress event: Current: 11, Max: 16, Message: "    Task "Registering logging components" completed successfully"
Result completed
Test process exit code: 0
Progress event: Current: 12, Max: 16, Message: "Installing TAEF service"
[16:50:08:158]: Installing TAEF service
[16:50:08:158]: [Installing TAEF service] Command Line:
C:\Program Files (x86)\Windows Kits\10\Testing\Runtimes\TAEF\X64\Wex.Services.exe /install:Te.Service
Task result status updated: Pass
Task result status updated: Pass
[16:50:08:249]: Task "Installing TAEF service" completed successfully
Progress event: Current: 12, Max: 16, Message: "    Task "Installing TAEF service" completed successfully"
Result completed
Test process exit code: 0
Progress event: Current: 13, Max: 16, Message: "Configuring TAEF test service to start automatically"
[16:50:08:265]: Configuring TAEF test service to start automatically
[16:50:08:265]: [Configuring TAEF test service to start automatically] Command Line:
sc config Te.Service start= auto
Task result status updated: Pass
Task result status updated: Pass
[16:50:08:448]: Task "Configuring TAEF test service to start automatically" completed successfully
Progress event: Current: 13, Max: 16, Message: "    Task "Configuring TAEF test service to start automatically" completed successfully"
Result completed
Test process exit code: 0
Progress event: Current: 14, Max: 16, Message: "Configuring kernel debugger settings (possible reboot)"
[16:50:08:448]: Configuring kernel debugger settings (possible reboot)
[16:50:08:448]: Removing any existing files from test execution folder.
[16:50:08:478]: Copying required files for "Configuring kernel debugger settings (possible reboot)".
[16:50:10:600]: [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.1.237" /p:"NetPort=50877" /p:"NetKey=JCS036PSH5F0.FLR7MZ2WV25T.RNI727P7D372.BIWRMUTOR8Q6" /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)_00003.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)_00003.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)_00003.wtl.trace'.
[16:50:12:064]: Result Summary: Total=1, Passed=1, Failed=0, Blocked=0, Warned=0, Skipped=0
Task result status updated: Pass
Task result status updated: Pass
[16:50:12:064]: Task "Configuring kernel debugger settings (possible reboot)" completed successfully
Progress event: Current: 14, Max: 16, Message: "    Task "Configuring kernel debugger settings (possible reboot)" completed successfully"
Result completed
Test process exit code: 0
Progress event: Current: 15, Max: 16, Message: "Configuring computer settings (possible reboot)"
[16:50:12:404]: Configuring computer settings (possible reboot)
[16:50:12:404]: Removing any existing files from test execution folder.
[16:50:12:484]: Copying required files for "Configuring computer settings (possible reboot)".
[16:50:14:475]: [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)_00003.wtl",writemode=append,encoding=unicode,nofscache=true,EnableLvl="WexStartTest|WexEndTest|WexXml|WexProperty|WexCreateContext|WexCloseContext|*" /runas:Elevated
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.240:50005
[16:50:53:380]: Task "Configuring computer settings (possible reboot)" was aborted because an unexpected error occured during execution.

None of the discovered or specified addresses match the socket address family.
Parameter name: context
Progress event: Current: 15, Max: 16, Message: "    Task "Configuring computer settings (possible reboot)" was aborted because an unexpected error occured during execution.

None of the discovered or specified addresses match the socket address family.
Parameter name: context"
Task result status updated: Aborted
Result completed
Test process exit code: 0
[16:50:53:380]: None of the discovered or specified addresses match the socket address family.
Parameter name: context
Progress event: Current: 15, Max: 16, Message: "None of the discovered or specified addresses match the socket address family.
Parameter name: context"
Progress event: Current: 15, Max: 16, Message: "Computer configuration log file://C:/Users/mans/AppData/Roaming/Microsoft/WDKTestInfrastructure/ProvisioningLogs/Driver%20Test%20Computer%20Configuration%2020230530164834670.log"

How can I fix it?

Windows for business Windows Client for IT Pros Devices and deployment Other
Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 44,746 Reputation points
    2023-06-02T12:39:02.85+00:00

    Hello Mans,

    Thank you for your question and for reaching out with your question today.

    Firstly, you need to check that OneCoreUap_WDTF_Desktop_Kit_Content-x64_en-us.msi is available in the %SystemDrive%\DriverTest\Setup\ folder.

    Then you will need to work through the list of files that are not successfully being found as listed in the error log.

    If the reply was helpful, please don’t forget to upvote or accept as answer.

    Best regards.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.