Failed to create win2012r2 standard image for Ubuntu MAAS [closed]

asked 2014-10-31 10:11:16 +0200

jeff gravatar image

updated 2014-11-03 13:11:29 +0200

Hi, I want to use Ubuntu MAAS to deploy windows server 2012 on some of my bare metal nodes. Therefore I followed: to build the windows server 2012 standard image. But I got error when executing this step: ".\BuildInstallImage.ps1 -InstallMediaPath D:". Error messages are listed below:

PS C:\Users\Administrator\adk-tools-maas> .\BuildInstallImage.ps1 -InstallMediaPath D:

new-object : Exception calling ".ctor" with "1" argument(s): "Unable to find the specified file." At C:\Users\Administrator\adk-tools-maas\WimFileInfo.ps1:1085 char:14 + $w = new-object WIMInterop.WimFile -ArgumentList $WimFilePath + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [New-Object], MethodInvocationException + FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand

PS C:\Users\Administrator\adk-tools-maas>

Did I miss anything?

Thank you, Jeff

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by jeff
close date 2014-12-03 06:25:45.319787


Hi Jeff. Sorry for the late reply. Can you make sure that: D:\sources\install.wim exists? (D: in this case should be your windows ISO mounted). That error seams to be related to the fact that it cannot locate a required file on your installation media.

gabriel-samfira gravatar imagegabriel-samfira ( 2014-11-09 14:11:08 +0200 )edit

Hi Gabriel, Sorry for the late reply and thank you for pointed me out the root cause of the problem I got. Thank you, Jeff

jeff gravatar imagejeff ( 2014-12-03 06:23:39 +0200 )edit