I believe in Hyper-V!

AdministrationCategory Archives

Add external USB hard drive to Hyper-V virtual machine

In this blog post I’ll describe how to add external USB hard drive to Hyper-V virtual machine.
In my case I have an external WD USB hard drive with 500GB capacity and I want add that drive into my Hyper-V virtual machine.

NOTE: As you probably know, removable usb drives is not supported in Hyper-V.

This is a short “how to”:

1. On your Hyper-V host open Disk Management.
2. Choose external USB hard drive and right click on him.
 1
3. Click on Offline.
2

4. Open Settings on virtual machine to which you want to add external USB drive and select SCSI Controller on the left hand side, select Hard Drive, and click Add on the right hand side.
3

5. Check mark Physical hard disk: , select external USB hard drive na click OK.
4

6. Logon into VM and open Disk Management. Click on newly attached Disk and bring him Online.
5 

Open Windows Explorer and you will see your external USB hard drive ;)
6

Enjoy in day ;)

Add Hyper-V host from other site to System Center 2012 Virtual Machine Manager SP1 Beta

I have several Hyper-V hosts in the Branch Office. Offices are connected with VPN site-to-site connection. In the Main Office I have System Center 2012 Virtual Machine Manager, and I want to add Hyper-V hosts to the VMM, but, when I want to add those Hyper-V hosts to VMM, console crashed after 46% of job.
If you have similar issue here is resolution how to resolve that.

1. On the Hyper-V host install Local Agent.
1
2

2. Open you VMM console and add Hyper-V host with installed Local Agent.
3 

3. After a few moments, the Hyper-V host will appear in Virtual Machine Manager.
 4

Have a nice weekend!

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 :)