Windows Containers


New-VMSwitch fails on nanoserver TP4 : Failed while adding virtual Ethernet switch connections for 172.16.0.0/12 only. netnat dependency?


Ive been trying to get Neil Petersons windows container creation (on nanoserver) script to work and cannot. It cannot create the VM-switch. It couldnt download the nanoserver base os image for containers either, but I did that manually:
192.168.2.200]: PS C:\> get-containerimage
Name Publisher Version IsOSImage
---- --------- ------- ---------
NanoServer CN=Microsoft 10.0.10586.0 True
Then i tried to manually create the switch but the switch addition fails with:
[192.168.2.200]: PS C:\> New-VMSwitch -Name "Virtual Switch" -SwitchType NAT -NATSubnetAddress "172.16.0.0/12" -Force
A parameter cannot be found that matches parameter name 'Force'.
+ CategoryInfo : InvalidArgument: (:) [New-VMSwitch], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.HyperV.PowerShell.Commands.NewVMSwitch
I deleted all the netnat configurations to see if this would help. It did not. There was one netnat config called containerNAT that had 172.16.0.0/12 subnet config.
I successfully created a container once, but was unable to add the IIS package inside the nanoserver container, again based on some Neil articles. DISM failed during container online update and appeared to implicate corrupt packages, but after multiple re-downloads,
there was no change in behaviour so i gave up and resolved to start again with fresh nanoserver TP4 image.
Where i want to get to is this: I have nanoserver TP4 with all the options running on physical box. This is the (windows) container host OS. I want to create widows containers on this host, and i understand that these must be based on nanoserver container
os image.
find-containerimage
Name Version Description
---- ------- -----------
NanoServer 10.0.10586.0 Container OS Image of Windows Se...
Have i thrashed something by deleting NetNAT? I dont use docker. Is there any dependency that means you should not delete netnat configs after you have downloaded container host image?
Right now, New VM-switch simply wont work for the following ip subnet.
New-VMSwitch -Name "Fred" -SwitchType NAT -NATSubnetAddress "172.16.0.0/12"
However
New-VMSwitch -Name "Fred" -SwitchType NAT -NATSubnetAddress "10.0.0.0/24"
will work for this different subnet.
I power cycle rebooted the server and this somehow fixed this problem or at least its symptoms, as I can create a 172.16.0.0/24 switch again. There is some residual record of this ip address that is preventing it from being re-used if it was previously used
and then deleted.

Related Links

Domain Controller in Container
Error "The request is not supported." when pulling any windows image
Full list of URLs install windows container need?
Docker logs from CMD Get-Content
Install IIS on a nanoserver container
precise 64 login password
Problem exposing ASP .NET Core Web App on Azure ACS
windows server 2016 with containers
Container base images
Problems with pushing images to ACR
"install-package -name docker" fails on windows server 2016 standard
Remote Shared Drive Management
On nanoserver , After I ran "docker run -it microsoft/nanoserver cmd" ,It had no response.
When I updated Win10 1703(15063 win10 creater), the poweshell command which releated to container disappeared.
Does Azure Container Service support auto-scaling the machines and VNET?
Local Registry

Categories

MSDN
Microsoft Office for D...
Data Platform Development
HealthVault
Microsoft ISV Communit...
Learning
Smart Device Development
Windows Embedded Standard
SQL Server (Pre-release)
Windows Live Developer
WebsitePanel
Project Server
Lync Server
Project
OneDrive Development
Kinect for Windows SDKs
Suggestions and Feedba...
Visual Basic
Test Tools in Visual S...
Tools for Apache Cordova
Payouts and Reporting
AdSDK Integration & Ad...
Developing Windows Des...
DirectShow Development
General Office Develop...
SharePoint 2013 - Setu...
SharePoint 2010 - Setu...
Pricing & Billing
Azure Marketplace
Azure Scripting and Co...
Azure Notification Hubs
Azure CDN
Azure App Service - AP...
Azure SQL Data Warehouse
Azure Analysis Services
.NET Framework Class L...
Common Language Runtim...
Team Foundation Server...
Architecture General
BizTalk Server RFID
Commerce Server 2007
The Forum of Sho
Microsoft Solver Found...
Debugger Canvas
Microsoft Translator U...
Microsoft Translator H...
Small Basic
SyncFx - SyncToy-File ...
Microsoft Robotics - V...
Visual Studio Smart De...
Visual Studio Smart De...
SQL Server SMO/DMO
Microsoft StreamInsight
SQL Server Manageability
Standard 2009: Compone...
SQL Server 2012 Analys...
Windows Live General: ...
CRM
Dynamics 365 for Custo...
Orchard –Discussions
Script Junkie Discussion
Developing for the Mob...
Known Issues for Windo...
Bing Maps WPF, WP7/8/8...
Bing Maps REST, SOAP, ...
Bing Maps for Windows ...
Office XML, ODF, and B...
SQL Server Protocols
Project Customization ...
Microsoft Unified Comm...
Hosting and Streaming ...
Expression Blend + Ske...
Expression Media
Retired SharePoint Wor...
Retired SharePoint Acc...
Retired SharePoint Soc...
Project Online General...
.NET Framework 4 Relea...
.NET Platform Architec...
Audio API and Programm...
AppFabric Caching
Charts & Reports in th...
Core Coding Experience...
Face Tracking – Kinect...
Git, Mercurial and Dro...
Installing and Registe...
LINQ to SQL (Pre-Release)
JScript for the .NET F...
Microsoft Security Dev...
Moderator Posting Only...
Monitor, Alert and Aut...
Office Live Small Busi...
Performance Counters f...
Pex and Moles PowerTool
Popfly Game Creator
Search, Organize, and ...
SQL Creation
SQL Server 2014 Master...
SQL Server 2014 In-Mem...
Team Foundation Server...
Team Foundation Server...
UI Design for Windows ...
Visual Basic IDE
Visual C# IDE
Visual Studio 2008 (Pr...
Visual Studio Team Sys...
Windows Desktop Vista ...
Mango Update (Archived)
Ad Revenue, Payout & T...
Windows Phone Preview ...
Microsoft Graph

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile