SOLVED

Server 2019 Datacenter can't create Static IP for Virtual Switch

%3CLINGO-SUB%20id%3D%22lingo-sub-2001668%22%20slang%3D%22en-US%22%3EServer%202019%20Datacenter%20can't%20create%20Static%20IP%20for%20Virtual%20Switch%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2001668%22%20slang%3D%22en-US%22%3E%3CP%3EHello.%20I%E2%80%99m%20a%20newbie%20to%20virtualization%2C%20this%20is%20my%20first%20project.%20I%E2%80%99m%20hoping%20to%20take%20this%20server%20live%20by%202Q%202021.%20It%E2%80%99s%20what%20I%20define%20as%20a%20low%20resource%20load%20project%20so%20the%20server%20isn%E2%80%99t%20the%20fanciest%20or%20fastest.%20HW%20Spec%20at%20the%20bottom%20of%20this%20document.%20It%20was%20originally%20going%20to%20be%20a%20test%20and%20development%20machine%20but%20has%20been%20repurposed%20to%20use%20in%20production.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%E2%80%99ve%20run%20into%20a%20dead%20end%20trying%20to%20configure%20Virtual%20Switches%20with%20Static%20IP%E2%80%99s.%20I%E2%80%99ve%20read%20a%20lot%20of%20documentation%2C%20tried%20various%20approaches%20and%20am%20hoping%20that%20someone%20can%20point%20me%20to%20something%20that%20works.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%E2%80%99ve%20set%20up%20the%20Core%20with%20Desktop%20Experience%20so%20that%20I%20don%E2%80%99t%20have%20to%20learn%20WAC%20or%20all%20of%20the%20Power%20Shell%20commands%20while%20doing%20my%20first%20project.%3C%2FP%3E%3CP%3EHere%20is%20what%20I%E2%80%99m%20trying%20to%20accomplish.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20server%20has%2014%20NIC%E2%80%99s.%20Two%20on%20the%20motherboard%20which%20are%20reserved%20for%20the%20Core%20and%20are%20teamed%20with%20a%20Static%20IP.%20There%20are%2012%20(three%204%20Port%20PCIe)%20NIC%E2%80%99s%20which%20support%20SR-IOV%20which%20I%20would%20like%20to%20use%20to%20reduce%20processing%20load%20on%20the%20server.%20I%20need%20to%20configure%20each%20NIC%20with%20a%20Static%20IP.%20I%20want%20to%20attach%201%20Virtual%20NIC%20with%20a%20static%20IP%20to%20each%20VM%20for%20internet%20access.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20I%20add%20the%20IPv4%20Static%20IP%20prior%20to%20trying%20to%20use%20the%20NIC%20to%20create%20a%20Virtual%20Switch%20the%20Virtual%20Switch%20creation%20fails%20it%20the%20following%20message%20%E2%80%9CA%20protocol%20on%20the%20network%20adapter%20prevented%20it%20from%20binding%20to%20the%20virtual%20switch%E2%80%9D.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20I%20leave%20the%20IPv4%20set%20to%20Obtain%20an%20IP%20address%20automatically%20and%20the%20same%20with%20the%20DNS%2C%20It%20creates%20the%20Virtual%20Switch.%20I%20can%20then%20add%20the%20Virtual%20Switch%20to%20a%20VM%20(Server%202019%20Standard%2C%20Licensed%20with%20an%20AVMA%20Key).%20I%20login%20to%20the%20VM%20as%20Administrator%20and%20I%20then%20go%20to%20change%20the%20adapter%20and%20get%20the%20following%20error%20message%3A%20%E2%80%9CWindows%20cannot%20access%20the%20specified%20device%2C%20path%2C%20or%20file.%20You%20may%20not%20have%20the%20appropriate%20permissions%20to%20access%20the%20item.%E2%80%9D%20I%20have%20tried%20this%20both%20with%20the%20setting%20for%20%E2%80%9CAllow%20management%20operating%20System%20to%20share%20the%20network%20adapter%20checked%20and%20unchecked%20when%20creating%20the%20Virtual%20Switch.%20I%E2%80%99ve%20also%20tried%20it%20with%20SR-IOV%20checked%20and%20unchecked.%20I%E2%80%99m%20sure%20it%E2%80%99s%20something%20simple%2C%20but%20what%20am%20I%20missing%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnother%20issue%2Fquestion.%20How%20do%20I%20correlate%20the%20physical%20NIC%20to%20the%20External%20Network%20ID%20shown%20when%20creating%20the%20Virtual%20Switch.%20The%20only%20method%20I%E2%80%99ve%20found%20is%20to%20correlate%20the%20Physical%20Addresses.%20What%20am%20I%20missing%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETIA%20for%20any%20help.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EServer%20%E2%80%93%20HP%20ML110%20Gen%2010.%20176GB%20Ram%2C%2024TB%20HDD%2C%2014%20NIC%E2%80%99s%20%2B%20ILO.%20Single%20processor%20with%208%20cores.%3C%2FP%3E%3CP%3EServer%202019%20Datacenter%20Edition%201809%20(Licensed)%2C%20updated%20through%202020-12%2C%20OS%20Build%2017763.1637%2C%20where%20it%20will%20remain%20stabilized%20for%20some%20time.%20HP%20Updates%20through%20November%202020.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2001668%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EHyper-V%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ENetworking%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWindows%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2002233%22%20slang%3D%22en-US%22%3ERe%3A%20Server%202019%20Datacenter%20can't%20create%20Static%20IP%20for%20Virtual%20Switch%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2002233%22%20slang%3D%22en-US%22%3E%3CP%3EWhen%20you%20create%20a%20new%20external%20vSwitch%20the%20internet%20protocols%20are%20removed%20from%20the%20adapter%20and%20the%20Hyper-V%20Extensible%20Switch%20protocol%20is%20added%20turning%20that%20physical%20port%20into%20a%20multi-port%20virtual%20switch.%20Connect%20your%20VMs%20to%20this%20vSwitch%20and%20use%20each%20VM's%20vEthernet%20to%20configure%20the%20addressing%20in%20the%20exact%20same%20manner%20as%20if%20it%20were%20a%20physical%20NIC%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2002239%22%20slang%3D%22en-US%22%3ERe%3A%20Server%202019%20Datacenter%20can't%20create%20Static%20IP%20for%20Virtual%20Switch%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2002239%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F51719%22%20target%3D%22_blank%22%3E%40Dave%20Patrick%3C%2FA%3E%26nbsp%3B%5C%3C%2FP%3E%3CP%3EThank%20you.%20I'll%20do%20it%20when%20I'm%20back%20in%20my%20office%20later%20this%20afternoon%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hello. I’m a newbie to virtualization, this is my first project. I’m hoping to take this server live by 2Q 2021. It’s what I define as a low resource load project so the server isn’t the fanciest or fastest. HW Spec at the bottom of this document. It was originally going to be a test and development machine but has been repurposed to use in production.

 

I’ve run into a dead end trying to configure Virtual Switches with Static IP’s. I’ve read a lot of documentation, tried various approaches and am hoping that someone can point me to something that works.

 

I’ve set up the Core with Desktop Experience so that I don’t have to learn WAC or all of the Power Shell commands while doing my first project.

Here is what I’m trying to accomplish.

 

The server has 14 NIC’s. Two on the motherboard which are reserved for the Core and are teamed with a Static IP. There are 12 (three 4 Port PCIe) NIC’s which support SR-IOV which I would like to use to reduce processing load on the server. I need to configure each NIC with a Static IP. I want to attach 1 Virtual NIC with a static IP to each VM for internet access.

 

If I add the IPv4 Static IP prior to trying to use the NIC to create a Virtual Switch the Virtual Switch creation fails it the following message “A protocol on the network adapter prevented it from binding to the virtual switch”.

 

If I leave the IPv4 set to Obtain an IP address automatically and the same with the DNS, It creates the Virtual Switch. I can then add the Virtual Switch to a VM (Server 2019 Standard, Licensed with an AVMA Key). I login to the VM as Administrator and I then go to change the adapter and get the following error message: “Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item.” I have tried this both with the setting for “Allow management operating System to share the network adapter checked and unchecked when creating the Virtual Switch. I’ve also tried it with SR-IOV checked and unchecked. I’m sure it’s something simple, but what am I missing?

 

Another issue/question. How do I correlate the physical NIC to the External Network ID shown when creating the Virtual Switch. The only method I’ve found is to correlate the Physical Addresses. What am I missing?

 

TIA for any help.

 

Server – HP ML110 Gen 10. 176GB Ram, 24TB HDD, 14 NIC’s + ILO. Single processor with 8 cores.

Server 2019 Datacenter Edition 1809 (Licensed), updated through 2020-12, OS Build 17763.1637, where it will remain stabilized for some time. HP Updates through November 2020.

 

4 Replies
best response confirmed by George_Kulman (New Contributor)
Solution

When you create a new external vSwitch the internet protocols are removed from the adapter and the Hyper-V Extensible Switch protocol is added turning that physical port into a multi-port virtual switch. Connect your VMs to this vSwitch and use each VM's vEthernet to configure the addressing in the exact same manner as if it were a physical NIC

 

 

 

@Dave Patrick \

Thank you. I'll do it when I'm back in my office later this afternoon

@Dave Patrick 

Thanks very much Dave. It's so easy when you know what you're doing. Worked like a charm. :smile:

 

It also answered my second question. I had left the 'Allow management operating system to share this network adapter' box checked and the Server Manager Properties Screen for the Core gives me all of the info I dneed about whichphtsical adapter it is.

Glad to hear, you're welcome.