ERROR: PrepareVirtualHardDisk: AttachVirtualDisk failed with error 0x80070522

0

I followed this tutorial to create a basic image of Windows IOT Core: https://docs.microsoft.com/en-us/windows-hardware/manufacture/iot/create-a-basic-image

I run IoTCorePShell.cmd as an administrator.

All the previous steps was successful, but I encountered an error while running this step:

New-IoTFFUImage ProductA Test
(or) buildimage ProductA Test

Here the errors:

PS C:\MyWorkspace>New-IoTFFUImage ProductA Test
ADK_VERSION : 10.0.17763.1
IOTCORE_VER : 10.0.17763.253
BSP_VERSION : 10.0.0.0
ADDONKITVER : 6.0.190307.1402
HostOS Info : Microsoft Windows 10 Enterprise - 10.0.17763 - en-US fr-CA
Validating product feature ids
Reading feature ids in C:\MyWorkspace\Source-arm\BSP\Rpi2\Packages\RPi2FM.xml
Reading feature ids in C:\MyWorkspace\Common\Packages\OEMCommonFM.xml
Reading feature ids in C:\MyWorkspace\Source-arm\Packages\OEMFM.xml
Checking Microsoft features in OEMInput file..
Warning: IOT_APPLICATIONS is not defined
Warning: IOT_GENERIC_POP is not defined
Checking OEM features in OEMInput file..
Building product specific packages
Processing Registry.Version.wm.xml
Processing Custom.Cmd.wm.xml
Processing Provisioning.Auto.wm.xml
Processing Recovery.WinPE.wm.xml
Building FM files..
Exporting OEM FM files..
Processing OEMFMList..
Exporting RPi2 BSP FM files
Processing RPi2FMFileList.xml
Creating Image..
See C:\MyWorkspace\Build\arm\ProductA_Test.log for progress
This will take a while...
ThreadId2588 ERROR: PrepareVirtualHardDisk: AttachVirtualDisk failed with error 0x80070522
ThreadId2588 ERROR: CreateVirtualHardDisk: OpenDiskInternal failed with error 0x80070522
ThreadId2588 ERROR: Imaging!CreateImage: Failed to create FFU: CreateVirtualHardDisk failed with error code: 80070522
ThreadId2588 ERROR:     CreateVirtualHardDisk failed with error code: 80070522
Error: Build failed
False
IoTCorePShell arm 10.0.0.0 Test

any idea?

SOLUTION: There was an IT policy that no new storage media shall be attached. Update your group policy or Temporary deactivation solved the problem.

image
windows-10-iot-core
asked on Stack Overflow Jun 13, 2019 by Chuck O • edited Jun 17, 2019 by Chuck O

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0