Free Hyper-V 2012 Core Configurator: Corefig8
Does anyone else using Hyper-V 2012 miss the fantastic CoreConfig (Core Configurator) tool that was available on Hyper-V R2? I sure did. So, I rewired it to work on 2012.
Download – Getting The Goods
You can download the files from the Corefig page on Codeplex.
Installation and Usage
I have provided an ISO and a ZIP file. The ISO can be mounted to a server and have its contents copied anywhere you like. If you download the ZIP file, right-click on it, open Properties, and click “Unblock”. Then extract its contents to the folder of your choice.
On the first run-through, execute “CSCRIPT Start_corefig.wsf”. This will ensure the run environment is properly configured. From then on, you can run “POWERSHELL .\Corefig.PS1″.
Why Core Configurator 2.0 Doesn’t Run on 2008 R2
When I first installed Hyper-V 2012 and tried to run Core Configurator on it, my assumption was that it wouldn’t run because of changes to PowerShell. That turned out to be completely incorrect. The real issue is that CoreConfig relies on oclist.exe, which was deprecated in 2008 R2 and removed in 2012. Upon digging, I found some other problems that would have made it problematic for 2012.
Why Was This Needed?
It seems that no update for the official Core Configurator project is in the works, based on my searching (example). It seems that it’s expected that you’ll use Minimal Server Interface mode instead. Unfortunately, you don’t get that in Hyper-V Server 2012. You have to have an edition of Windows Server 2012 to have that available. I’ve never encouraged anyone to install a complete server product to run Hyper-V and I’m not about to start. Even if you want to install Core, you may not want to switch to Minimal Server Interface mode just for some minor configuration changes; I would encourage you to use PowerShell, but I’m perfectly aware that there are times when you just want to click and get it done.
Most of the changes are under the hood and won’t be all that noticeable. I made some of the language a little easier to understand. If you’re not a native English speaker, I’ve modified all the .PS1 files so that they’ll read their strings from an external data file, meaning that all is needed is an enterprising soul and Corefig can support any language. Contact me if you’d like to volunteer to add a non-US English language pack.
One thing that I never realized on CoreConfig was that it quietly sets PowerShell’s Execution Policy to Unrestricted — the least secure mode possible and not necessary. Corefig sets it to RemoteSigned.
I stopped somewhat short of a complete code review, but a lot of the scripts have been updated to utilize some of the new PowerShell 3.0 cmdlets introduced in the 2012 server series. There is still substantial room for improvement, but whether or not I jump into it myself will depend on time and popularity of the scripts.
The ability to promote or demote a Windows Server 2012 installation to be or cease being a domain controller is not in this release. Core Configurator 2.0 relied on DCPROMO.EXE, which is not in 2012. People who want GUIs for this may settle for Minimal Server Interface mode, so it may not be worth the effort to put in all the scripting and troubleshooting time for this particular feature.
The scripts underneath the Firewall and Network Interface screens were almost completely rewritten although they look much the same. Where possible, they no longer rely on deprecated NETSH commands.
The original script, much of which is intact, was released under the Microsoft Public License. As a result, this script is released under the same license. The details are available on the project site.
Have any questions?
Leave a comment below!
Another free tool: Altaro Hyper-V Backup
If you’d like to make backing up your Hyper-V VMs easy, fast and reliable, check out Altaro Hyper-V Backup v4. It’s free for up to 2 VMs and supports Hyper-V Server 2012 R2! Need more? Download a 30-day trial of our Unlimited Edition here: http://www.altaro.com/hyper-v-backup/.