Last week I published a script to create a converged fabric clustered host.Â I wrote that script using the beta of Windows Server 2012 (â€ś8â€ť).Â But since then, the release candidate has come out.Â And wouldnâ€™t you know it, some of the PowerShell cmdlets in the RC have changed.
Hereâ€™s a summary of the changes:
- When you create a NIC team in the GUI, the device name now matches the NIC team local area connection name.Â Thatâ€™s a good change.Â I hated that the local area connection name was tucked away in the advanced settings and threw in a â€śdefaultâ€ť into the name.
- The cmdlet to set the IP address of the NIC is different.Â We used to say â€“IPv4Address to specify the address.Â Now we use â€“IPAddress.
- By default, the new virtual NIC took on a meaningless â€śWired Ethernet Connectionâ€ť label for the Local Area Connection name.Â I had to rename it to something meaningful, like â€śHost-Parentâ€ť.Â Now, the new virtual NIC takes on a meaningful name, such as â€śvEthernet (Host-Parent)”, so I can delete the cmdlet to delete it.Â At first I didnâ€™t like this, but after talking to Hans Vredevoort last night, he changed my mind.
- I have found that a new management OS virtual NIC can take over 20 seconds to initialise.Â That means that any attempt to configure the IP address straight away will fail.Â Therefore I’ve moved all the IP config cmdlets to the end of the script, and they only run after a 30 second sleep.
I have updated the original script to reflect these changes.
After some testing I found that I had to add a sleep cmdlet before configuring the IP addresses of the virtual NICs.
This blog post is the property of Aidan Finn (@joe_elway / http://www.aidanfinn.com) and may not be reused in any manner without prior consent of Aidan Finn. You may quote one paragraph from this blog post if you link to the original blog post.
- PowerShell Script To Create A Converged Fabric For Clustered Windows Server 2012 Hyper-V Host
- Some Different Converged Fabric Architectures For Windows Server 2012 Hyper-V
- All My Windows Server 2012 Hyper-V Converged Fabric Posts From The Past 2 Weeks
- Windows Server 2012 Hyper-V Converged Fabrics & Remote Host Engineering
- Create A Windows Server 2012 Hyper-V Cluster Using PowerShell