New Question

Automated Windows Image Creation

asked 2015-09-01 19:00:50 +0300

Michael Dickinson gravatar image

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:

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.

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2015-09-01 21:19:07 +0300

ader1990 gravatar image

updated 2015-09-02 05:10:36 +0300


The current windows-imaging-tools version has been tested with virtio drivers version lower than 0.1.8x. In case you are using an ISO with virtio drivers version higher then 01.8x: the issue is with the VirtIO driver ISOes, because since version 0.1.9x, the ISO has a different folder structure than the previous versions, leading to that error. I will submit asap a commit to handle this new scenario.

Thank you.

edit flag offensive delete link more


This branch adds support for the new virtio ISO folder structure, version higher than 0.1.8x:

ader1990 gravatar imageader1990 ( 2015-09-02 05:08:03 +0300 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-09-01 19:00:50 +0300

Seen: 550 times

Last updated: Sep 02 '15