New Question

Revision history [back]

click to hide/show revision 1
initial version

Automated Windows Image Creation

I have been able to successfully use the windows-openstack-imaging-tools to build several windows desktop images. However, I tried to recreate the server that I am using to build these from (based on Windows 2012R2) and was unable to do so, every attempt fails with the error:

New-WindowsCloudImage : Exception calling "OpenVirtualDisk" with "1" argument(s): "The system cannot find the file specified" At C:\Users\Cloud\Desktop\windows-openstack-imaging-tools-master\createImage - win81.ps1:43 char:1 + New-WindowsCloudImage -WimFilePath $wimFilePath -ImageName $image.ImageName ` + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [New-WindowsCloudImage], MethodInvocationException + FullyQualifiedErrorId : Win32Exception,New-WindowsCloudImage

The VHD exists, but never gets converted to a raw image file. Adding breakpoints and write-output statements in at various stages of the try/finally statement in WinImageBuilder.psm1, it seems that the error is thrown after the virtual disk is detached, and the final 'conversion' if statement never gets run. I cannot see any code that is actually calling the OpenVirtualDisk cmdlet.

This issue has already been reported on the github repo issues section: https://github.com/cloudbase/windows-openstack-imaging-tools/issues/23

I am confused as to why this works on one server, but not another (it even fails after cloning the original server!). Any insight or help would be greatly appreciated.