I am trying to implement AutoDeploy on Cisco UCS servers using the script from alanrenouf as the basis. I want any of my co-workers to be able to run the script from thier local workstation. Where i run into a problem is with the Add-EsxSoftwareDepot cmdlet with the depot on a network share. The depot is a custom image built with ImageBuilder that lives on MyVC.
If I use a UNC i get the error
PowerCLI C:\> Add-EsxSoftwareDepot "\\MyVC\ImageBuilder\ESXi-5.0.0-469512-standard-UCS.zip"
Add-EsxSoftwareDepot : Could not download from depot at zip:C:\ImageBuilder\ESXi-5.0.0-469512-standard-UCS.zip?
index.xml, skipping (('zip:C:\\ImageBuilder\\ESXi-5.0.0-469512-standard-UCS.zip?index.xml', '', "Error extracti
ng index.xml from C:\\ImageBuilder\\ESXi-5.0.0-469512-standard-UCS.zip: [Errno 2] No such file or directory: 'C
:\\\\ImageBuilder\\\\ESXi-5.0.0-469512-standard-UCS.zip'"))
At line:1 char:21
+ Add-EsxSoftwareDepot <<<< "\\MyVC\ImageBuilder\ESXi-5.0.0-469512-standard-UCS.zip"
+ CategoryInfo : ReadError: (System.String[]:String[]) [Add-EsxSoftwareDepot], Exception
+ FullyQualifiedErrorId : ConnectDepotError,VMware.ImageBuilder.Commands.AddDepot
If I use a psdrive V:
new-psdrive -name V -psprovider filesystem -root \\MyVC\imagebuilder
i get the error
I get the same error if I cd to V:\ first.
If I copy the same depot,ESXi-5.0.0-469512-standard-UCS.zip, local to the C:\ drive it works fine.
Does anyone know what might be going on here or have some insight?
thanks,
Tim
I know that a local file path or an URL is supported, not sure about an UNC or PSDrive.
Afaik those last 2 are not supported
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I know that a local file path or an URL is supported, not sure about an UNC or PSDrive.
Afaik those last 2 are not supported
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
thanks for your super fast reply. Along the same lines. Is there a way to get my custom SoftwareDepot exposed as a URL on my vC?
Sorry, haven't tried if that is possible from the vCenter without installing additional SW on there.
But shouldn't you be able to do this from any web server you have in your environment ?
The web server just has to offer the ZIP file I assume
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
interesting thought. Might try that. Thanks.