I believe in Hyper-V!

VirtualizationCategory Archives

Converting WS2012 Core to a WS2012 with GUI and vice versa.

In the last few weeks I installed several Hyper-V hosts in my production environment. On every host I installed WS2012 Core with Hyper-V role. Why? Because I don’t need anything on that hosts except Hyper-V role, but, what if I’ll ever need something more than Hyper-V role? What if I’ll ever need WS2012 with GUI on that hosts?
In order to be ready for something like that, I decided to try on one of the test servers, and I would like to explain how to convert your installed WS2012 Core to a WS2012 “full” version (with GUI) and vice versa.

Follow this few steps:

1. Create a directory where Windows image will be mounted

MkDir MountDir
1

2. Determine the index number for a Server with a GUI image

Dism /get-wiminfo /wimfile:D:\sources\install.wim
2

3. Mount the WIM file using this command:

Dism /mountwim /WimFile:D:\sources\install.wim /Index:4 /MountDir:
c:\mountdir\readonly

3

4. On the last step, start PowerShell, then execute the following command;

a) PowerShell (press enter)
4
b) Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell –Restart –Source C:\mountdir\windows\winsxs
5 
6 
7

Now we have WS2012 with GUI installed!
 

8

If we want Core version of WS2012 we can do that through PowerShell! All you need to do is to execute the following command at an elevated Windows PowerShell:

Uninstall-WindowsFeature Server-Gui-Mgmt-Infra
9
10 
11

Now, again we have WS2012 Core ;)

14

Enjoy in this beautiful day :)

Replication problem between domain controllers after migration to another Hyper-V host!

This post isn’t related to virtualization, but I want share my experience with you. Before few days ago I migrated virtualized domain controller from one Hyper-V host to another. The migration process was very simple, but when I started my DC and I had replication problem between primary and secondary (migrated) domain controller.
When I wanted to make replication I got this error:

The destination server is currently rejecting replication request”…

1

Resolution:

Open command prompt as administrator on all DCs and run the following commands:

repadmin /options <DC NAME> +disable_outbound_repl press Enter
repadmin /options <DC NAME> -disable_outbound_repl press Enter
repadmin /options <DC NAME> +disable_inbound_repl press Enter
repadmin /options <DC NAME> -disable_inbound_repl press Enter

NOTE: Replace <DC NAME> with your DC name.

After you are done, try to replicate your DCs. If all went well DCs will be replicated.

2

Enjoy and have a nice weekend :)

IT Pro User Group Zagreb – Microsoft Hyper-V Server 2012 session

4th October at the IT Pro User Group meeting in Zagreb I held a lecture about Hyper-V Server 2012 and Hyper-V role on WS2012 Core. That was my first lecture as a Microsoft MVP. It was full house ;). You can view recorded session here.
NOTE: The session was held in the Croatian language.

In the picture below colleague Robert Petrunić polling registered participants ;)

1