我正在尝试在Windows Server 2016 TP4上设置Windows Server容器。我正在跟随微软的guideline,但它不工作。它总是失败,并显示以下错误:
Getting Container OS image (WindowsServerCore) version 10.0.10586.0 from OneGet (this may take a few minutes)...
C:\Install-ContainerHost.ps1 : Unable to download.
In Zeile:1 Zeichen:1
+ C:\Install-ContainerHost.ps1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Install-ContainerHost.ps1我可以发现Install-ContainerHost.ps1脚本尝试从here下载WindowsServerCore镜像。手动调用此URL将返回"BlobNotFound“。
我不确定这是我的错,还是他们只是服务器有问题。今天我已经试过多次运行这个脚本了。昨天,它在另一个虚拟机上工作。
编辑:似乎是Micrsoft的下载服务器出现了问题,现在已经修复了。
发布于 2016-04-13 00:43:50
好的,这就是我们所做的,去你的TP4的ISO,打开ISO。里面有一个"NanoServer“的文件夹,你可以在里面找到wim文件(图片)。
将此图像复制到本地,或您喜欢的internet上的位置。获取URL,您将使用它来破解Powershell脚本。在Powershell中运行这些命令
Install-Package ContainerProvider通过运行以下命令,验证程序包是否已安装:
Find-ContainerImage记事本打开: C:\Program Files\WindowsPowerShell\Modules\ContainerProvider\0.5.2\ContainerProvider\ContainerProvider.psm1
转到第: 508行并修改变量$downloadURL:(注意我是如何使用自己的url的)
$downloadURL = "http://10.0.2.2:8000/NanoServer.wim"之后:只需运行
Install-ContainerImage -Name NanoServer将安装该映像
https://stackoverflow.com/questions/36573258
复制相似问题