我已安装Windows Server 2016 Technical Preview 4 on VMware Warkstation。
它具有2 GB RAM和60 GB磁盘空间。
如何在安装Docker时在Windows Server 2016 TP4中正确创建虚拟交换机? (不是boot2docker)
我尝试安装的Windows Server主机为泊坞窗根据official Microsoft instruction.
Instruction in general in the picture
我不需要Hyper-V的集装箱技术,因此对于本指南我没有使步骤标有星号'*'
因此,我们有6个步骤来安装Windows Server主机和Docker:
- 安装容器特性
- 创建虚拟交换机
- 配置NAT
- 配置MAC地址欺骗
- 安装集装箱OS图像
- 安装泊坞 **
我有两个步骤的一个问题:科瑞虚拟交换机,而在PowerShell中输入接下来的cmdlet:
PS C:\> New-VMSwitch -Name "Virtual Switch" -SwitchType NAT -NATSubnetAddress 172.16.0.0/12
New-VMSwitch : Failed while adding virtual Ethernet switch connections.
Internal miniport create failed, name = '8A407781-1BF5-4BB0-8538-35CFF056C598', friendly name = 'vEthernet (Virtual Switch)', MAC = 'DYNAMIC': One or more arguments are invalid
(0x80070057).
At line:1 char:1
+ New-VMSwitch -Name "Virtual Switch" -SwitchType NAT -NATSubnetAddress ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [New-VMSwitch], VirtualizationException
+ FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.NewVMSwitch
我应该在这种情况下怎么办?
NAT是2016年SwitchType参数的有效类型吗?目前的文件表明,只有内部或私人。 https://technet.microsoft.com/en-us/library/hh848455.aspx –