Virtual Machine disk expansion with Microsoft Hyper-V Manager

If your Hyper-V Virtual Machine run out of virtual disk space, you can add and expand the disk as long as you have enough physical space available.

Hyper-V: Virtual Disk
1. Before we begin, let’s take a look at the disk size. In my example, it is a 80GB disk.
Hyper-V Manager: Edit Disk
2. Now, power down the Virtual machine so that it state is “off” in the Hyper-V Manager. After that, highlight the Virtual Machine and then click “Edit Disk…” under “Action” on the right.
Hyper-V: Edit Virtual Hard Disk Wizard
3. A Edit Virtual Hard Disk Wizard window will pop-up on the screen. To continue, simple click the “Next” button.
Locate Virtual Hard Disk
4. Locate the Virtual Hard Disk by clicking the “Browse…” Button.
Virtual Disk located
5. Once you find the correct virtual disk, highlight it and then click “Open”.
Edit Virtual Hard Disk Wizard : Expand
6. In the next screen, you can choose 4 different actions you can do to the virtual disk. In this example, we go with “Expand”. Click “Next” to continue.
Edit Virtual Hard Disk Wizard : New disk size
7. Now, enter the new disk size you like you virtual disk to be expanded to. In this example, I enter “120GB” in the text box provided and click “Next”.
Edit Virtual Hard Disk Wizard : Finish
8. Virtual Disk expanding summary. If everything is correct, hit “Finish” to proceed.
Start Virtual Machine
9. Once that is done, you can start/power on the virtual machine follow by “Connect…” to the Virtual Machine console.
Access Computer Management
10. Open the Windows 8 or Windows Server 2012 search page and type computer. Once the Computer app appears on the left, right click the “Computer” and choose “Manage” at the bottom.
Disk Management
11. In the “Computer Management” screen, choose “Disk Management” under “Storage”. You should see the additional space listed on the screen now as Unallocated space.
Extend Volume
12. Right click the drive/volume you like to expand and choose “Extended Volume…”
Extend Volume Wizard
13. A Windows Extend Volume Wizard will pop-up to guide you through the drive expansion process. Click “Next” to begin.
Extend Volume Wizard :  New Volume space
14. Select the disk you like to expand and choose the amount of space you like to expand. Once that is done, click “Next”.
Extend Volume Wizard : Finish
15. That should do it. Just click “Finish” to exit.
Disk Management with new Virtual Disk size
16. At this point, you should see the new size of the virtual disk inside the Disk Management screen.
Windows Explorer : New drive Total Size
17. If you open the Windows Explorer again, you should notice the changes in “Total size”.

Console access via Microsoft Hyper-V Manager

Connect to Virtual Machine
1. launch Microsoft Hyper-V Manager from your Windows 8 or Windows server 2012. Locate the Virtual Machine you need to access via console, right click on it and choose “Connect…”.
<a href="http://tutorials viagra soft.cybercon.com/wp-content/uploads/2013/05/16-hypvman-newvm-console.png”>Hyper-V Manager : Virtual Machine console access
2. Done. You are now have access to the Virtual Machine via the console from Hyper-V Manager.

Create new Virtual Machine with Hyper-V Manager.

Microsoft Hyper-V Manager allow users or administrator to manage Hyper-V server as well as the Virtual Machines running inside the Hyper-V server.

In this article, I am going to show you how to create a Virtual Machine in Hyper-V by using the Hyper-V Manager. You can run Hyper-V Manager from Windows server 2012 or Windows 8 Desktop.

Microsoft Hyper-V Manager
1. Launch Hyper-V Manager from the Windows Machine. And then click “New” on the right.
Hyper-V Manager : New Virtual Machine
2. After you click the “New” link under Action section, select “Virtual Machine…”
Hyper-V Manager New Virtual Machine Wizard
3. In the next screen, which is the New Virtual Machine Wizard opening screen, just click “Next” to continue.
Specify Virtual Machine Name and Location
4. Enter the name of the new Virtual Machine you are planning to create. If you do NOT want to place the new Virtual Machine configuration files to the default directory, you can change it now. Otherwise, click “Next” after you enter the Machine name.
Assigning Memory to Virtual Machine
5. Enter the amount of system memory you like to allocate to the new Virtual Machine. Click “Next” to continue.
Select Virtual Switch
6. Select the Virtual Switch from the “Connection” drop down box. If you have not create a Virtual Switch yet, you need to do it before creating a Virtual Machine in order to have network access. Once you select your Virtual Switch, click “Next”.
Connect to a Virtual Disk
7. Create/Connect to a Virtual Hard Disk. In this step, you can create a new Virtual Disk or connect to an existing disk. Choose the option you need to click “Next”. In this example, I need to create a new Virtual Disk.
Virtual Machine CD/DVD ROM
8. For other installation options such as the CD/DVD ROM Drive. You can define it in this screen. I am going to install Windows 8 Desktop operating system for this Virtual Machine with an ISO image. So I choose “Install an operating system from a boot CD/DVD-ROM and then click the browse button to locate the Windows 8 ISO file.
Browse and locate ISO file
9. Browse and locate the OS ISO file and click “Open”.
ISO file located and continue
10. Once the ISO file is located, click “Next”.
Completing the New Virtual Machine Wizard
11. In the Summary screen. Double check and make sure everything is correct. If yes, press “Finish” to proceed the installation.
Start the Virtual Machine
12. That should bring you back to the Main screen of the Hyper-V Manager. And you should see the newly created Virtual Machine listed under the Virtual Machines List. Right click the Virtual Machine and choose “Start” to power up the Virtual Machine.
Connect to Virtual Machine
12. Once you power on the Virtual Machine, right click on it again and select “Connect…”
Hyper-V Manager - Virtual Machine Console screen
13. Now, a new Window should pop-up and you should see the Virtual Machine console screen with the OS installation screen. After the installation is complete, you Virtual Machine installation is done.

How to enable Hyper-V server in Windows Server 2012

Windows Server 2012 - Server Manager
1. After you install the Windows Server 2012. By default, the Server Manager will pop-up after you boot the server up. In the Server Manager, click the “Add roles and features” link.
Add Roles and Features Wizard
2. That will bring up the “Add Roles and Features Wizard” window. Just click “Next” to continue.
Installation type
3. In the next screen, choose Role-based feature-based installation and click “Next”.
Set destination server
4. Choose “Select a server from the server pool”, then highlight your server and click “Next”.
Locate HyperV server Roles
5. In the “Select server roles” screen, locate “Hyper-V” from the Roles list and check the box next to it.
Add Hyper-V management tools
6. To add Hyper-V, the system will also ask you to install the Administration tools for Hyper-V. Click “Add Features” to continue.
Select Server Roles
7. Once Hyper-V is selected in the “Select server roles” screen, click “Next” to continue.
Select more features
8. If you like to add more roles or features, you can do so now. Otherwise, just click “Next”.
Hyper-V configuration
9. In the next few screens, you will need to configure the Hyper-V. Click “Next” to start Hyper-V configuration.
Select Network adapter for Virtual Switch
10. Select the Network interface you like to bind to a Virtual Switch you are going to create. In order for the Virtual Machines to connect to other network (such as the internet), you need to create a Virtual Switch with a physical Network Interface attached to it. In this example, I select “Ethernet2” and click “Next”.
Hyper-V Live Migration
11. In the next screen, since I am not planning to use Live Migration in this setup, so I just click “Next”.
Hyper-V default directories
12. Now, you need to define the default directories for the virtual hard disks as well as the virtual machine configuration. To accept the default settings, just click “Next”, otherwise, change the directory before you click the “Next” button.
Hyper-V confirm install
13. You are at the confirmation screen. Click “Install” to start the installation process. You can check the box next to “Restart the destination server automatically if required” if you like the server to reboot after the installation.
Hyper-V finish install and reboot
14. Once the installation is done, you can click to “Close” button to exit the installer. If you check the reboot box in the previous screen, the server will reboot by itself. If you did not check the box, you will need to reboot the server manually to finish the installation.
Hyper-V Manager is ready
15. Once the server is rebooted, you can access the Hyper-V Manager from the Metro interface of the server.

Manage Microsoft Hyper-V Server 2012 via Windows 8 (Workgroup based)

Microsoft Hyper-V Server 2012 is a standalone hypervisor based server virtualization software. It is a great product for organizations to consolidate servers or desktops where no new licenses are required. Alternatively, organizations may also elect to install an alternative OS such as Linux operating system.

Since Microsoft Hyper-V Server 2012 is a small foot print stand alone product, local GUI based management tools are not available. Administrator can still manage the Hyper-V Server 2012 via command line. However, for those of you who prefer using a graphical interface, you can do so by using the optional MMC snap-in from Windows 8 desktop. In the following section, I will show you how to do it without setting up any Active Directory Service.

Before we begins, one thing we need to make sure is a local user account is needed inside the Windows 8 machine. If you log in to your Windows 8 desktop via a Microsoft account users, you need to create a new local user. In our example here, I am using a local user “john”. Basically, we need to use a common user for both Windows 8 desktop and the MS Hyper-V Server 2012 machine.

Note: Steps begins with (WINDOWS 8) means performing the steps inside the Windows 8 desktop while (HYPER-V) means performing the steps inside the Hyper-V 2012 Server.

Edit hosts file properties
(WINDOWS 8) 1. Start the Windows Explorer in your Windows 8 desktop. Go to “Local Disk C: -> Windows -> System32 -> Drivers -> etc” folders. Inside the “etc” folders, you will find the file “hosts”. Right click the “hosts” file and choose “Properties”.
Windows Hosts files properties
(WINDOWS 8) 2. Click the “Edit” button.
Add Permission
(WINDOWS 8) 3. In the “Permissions for hosts” windows, click the “Add” button.
Enter Local User Name
(WINDOWS 8) 4. Inside the “Enter the object names to select” text box, enter the local user name. In this example. I enter “john” and follow by clicking the “Check Names” button. If user exists, Windows 8 desktop will response back with “<DESKTOP_MACHINE_NAME>\<LOCAL_USER_NAME>”. Since my Windows 8 desktop name is WIN8-MANAGEMENT, so it display “WIN8-MANAGEMENT\john” back. Click “OK” to continue.
<a href="http://tutorials.cybercon pharmacie viagra ligne.com/wp-content/uploads/2013/05/5-win8-hosts-file-properties-edit-add-user-allow.png”>Modify permission for new local user
(WINDOWS 8) 5. That should bring you back to the “Permission for hosts” window. Highlight the user you just added and check “Modify” box. Click “OK” to continue.
Edit hosts file
(WINDOWS 8) 6. Next, open the “hosts” file in Notepad. At the bottom of the file, enter the Microsoft Hyper-V Server 2012 IP Address and the Server name. You can use a fully qualify domain name if you like. In this example, the server name is “HYPERV-2012”.
Searching PowerShell
(WINDOWS 8) 7. In the next step, open the Windows 8 search screen and enter “powershell” in the search box. Windows 8 will show a matching apps on the left of the screen.
Run Powershell as administrator
(WINDOWS 8) 8. Once Windows 8 locate the PowerShell app, right click on the app and choose “Run as administrator” at the bottom of the screen.
PowersShell - execute command dcomcnfg
(WINDOWS 8) 9. At the PowerShell command prompt, enter “dcomcnfg” and hit “Enter”.
My Computer Properties
(WINDOWS 8) 10. After that, “Component Services” Windows will pop-up. Expand the “Component Services” item on the left and locate “My Computer”. Right click “My Computer” and choose “Properties”.
COM Security
(WINDOWS 8) 11. In the “My Computer Properties” window, click the “COM Security” tab follow by clicking the “Edit Limits…” button.
Allow Remote Access for ANONYMOUS LOGON
(WINDOWS 8) 12. Single click the user name “ANONYMOUS LOGON” and check both “Local Access” and “Remote Access” under the “Allow” column. Click “OK” to continue.
Change Hyper-V Server name
(HYPER-V) 13. Now, switch to the MS Hyper-V Server 2012. In the main menu of the Hyper-V server, enter “2” to change the Server name. If you are at the command prompt, type “sconfig” to run the Server Menu.
Hyper-V Server restart
(HYPER-V) 14. The Hyper-V server will restart after the name change. Just click the “Yes” button to proceed.
Add local administrator
(HYPER-V) 15. Once the server finish rebooting and back to the server Main Menu, type option “3” and enter a local administrator name. Make sure the name and password you choose are the same as in your local Windows 8 machine.
Enable Remote Desktop at the Server
(HYPER-V) 16. Next, we need to allow Remote Desktop. In the Main Server Menu, enter option “7” follow by entering “e” and then “2”.
Exit Server Configuration Menu
(HYPER-V) 17. It is easier for us to manage the Server firewall software remotely via the Windows 8 Desktop. So in the next few steps here, I am going to show you how to do it. First, we need to drop to the command prompt from the Server Menu. Choose option “14” to exist to Server Configuration Menu.
Show current Firewall Profile
(HYPER-V) 18. To view the current Firewall Profile status, enter the following command

netsh advfirewall show currentprofile

As you can see from the diagram, “RemoteManagement” is disabled by default.

Enable Remote Management in Firewall current profile
(HYPER-V) 19. To Enable “RemoteManagement” in Current Firewall profile, enter

netsh advfirewall set currentprofile settings remotemanagement enable.

Add Firewall Rule
(HYPER-V) 20. Add the following rule as well.

netsh advfirewall firewall set rule group="Windows Firewall Remote Management" new enable=yes

Windows 8 PowerShell command
(WINDOWS 8) 21. Now, switch back to Windows 8 machine. At the PowerShell prompt (Make sure you run the PowerShell as Administrator), enter the following command.

cmdkey /add:<YOUR_SERVER_NAME> /user:<LOCAL_USER_NAME> /pass:<LOCAL_USER_PASSWORD>

In my case here “<YOUR_SERVER_NAME> = HYPERV-2012” while “<LOCAL_USER_NAME> = john” and “<LOCAL_USER_PASSWORD> = “.

Windows 8 Search mmc.exe
(WINDOWS 8) 22. In the Windows 8 client machine, bring up the “Search Page” again and search for “mmc”.
Windows 8 - Run mmc.exe as administrator
(WINDOWS 8) 23. Once the mmc app shows up on the left, right click on it and choose “Run as administrator”.
Windows 8 - Add Snap-in in MMC
(WINDOWS 8) 24. In the MMC console, click “File” from the pull down menu and choose “Add/Remove Snap-in…”.
MMC - Add Firewall
(WINDOWS 8) 25. In the “Add or Remove Snap-ins” window, locate “Windows Firewall with Advanced Security” from the Available snap-ins list, highlight it and then click the “Add” button.
Enter remote server name for firewall management
(WINDOWS 8) 26. The computer will ask you the location of the firewall, it is either a local machine or remote machine. Select “Another computer” and enter the name of the Hyper-V server 2012. In my example here, I enter “HYPERV-2012”. Click “Finish” to continue.
Server Inbound Firewall rules
(WINDOWS 8) 27. “Windows Firewall with Advanced Security” is now listed in the tree on the left. Expand it and click “Inbound Rules”.
Enable Remote Event Logs Management Rules
(WINDOWS 8) 28. Locate the following rules and Enable them.
Remote Event Log Management (NP-In)
Remote Event Log Management (RPC)
Remote Event Log Management (RPC-EPMAP)
Windows 8 -PowerShell comand
(WINDOWS 8) 29. Now, switch back to the PowerShell (run as Administrator) and enter the following command.


set-item WSMAN:\localhost\client\trustedhosts -value <HYPER-V_SERVER_NAME> -concatenate

Where <HYPER-V_SERVER_NAME> is HYPERV-2012 in my case. So for me, I need to type


set-item WSMAN:\localhost\client\trustedhosts -value HYPERV-2012 -concatenate

The system will prompt you for additional questions. Just hit “Enter” to choose the default answer.

Windows 8 Control Panel
(WINDOWS 8) 30. Next, we need to add the Hyper-V management function in the Windows 8 client machine. Open the Windows 8 search page and enter “control panel” in the search box. Then click the “Control Panel” App on the left.
Windows 8 Control Panel - Programs
(WINDOWS 8) 31. Click “Program” inside the Control Panel.
Windows 8 Programs and Features
(WINDOWS 8) 32. Click “Programs and Features” under “Programs”.
Windows 8 - add Hyper-V management feature
(WINDOWS 8) 33. Single click the “Turn Windows features on or off” link on the left and then scroll down and locate “Hyper-V”. Once you find it, check the box next to it. Hit “OK” to continue.
Windows 8 - Add Hyper-V Manager to MMC
(WINDOWS 8) 34. The Windows 8 client machine may need to reboot. Once it finish rebooting, search for mmc in the Windows 8 search page and run it as Administrator again as in Steps 24 and 25. This time, look for “Hyper-V Manager inside the “Available snap-in” list. After you locate “Hyper-V Manager”, highlight it and then Add it to the “Selected snap-in” box. Hit “OK” to continue.
Connect to Hyper-V server
(WINDOWS 8) 35. In the Hyper-V Manager under MMC, click “Connect to Server…”
Enter Hyper-V server name to connect
(WINDOWS 8) 36. Choose “Another computer” and then enter the Hyper-V server name and click “OK” to continue.
Hyper-V Manager in Windows 8
(WINDOWS 8) 37. You are not connected to the Microsoft Hyper-V server 2012 via the Hyper-V manager in Windows 8. With this, you can create the “Virtual Switchs” as well as “Virtual Machines” remotely via the Windows 8 client.

Microsoft Hyper-V Server 2012 network install via PXE

Some of the Dedicated Servers provided by Cybercon are able to install the Operating System (OS) via the network. If your Dedicated Server do not have this feature and you are interested in getting it, please contact Cybercon Sales department for more information.

Here are the steps for installing Microsoft Hyper-V Server 2012.

1. Boot your server via PXE Boot. If it is a new server setup or there is no operating system (OS) installed previously in the server hard disk, the server should boot via the PXE automatically. Otherwise, you may need to press a key to instruct the server to do so. For HP blade server, you need to press F12 while booting.
Cybercon Server Utility Main Menu
2. Once you boot to the Main menu, use your up/down arrow keys and navigate to Client Area and hit Enter. In order to go to the Client Area, you need to enter the word “acknowledge” to acknowledge that tools inside the client area COULD ERASE DATA ON THE SERVER HARDDISK(s). If you are not sure if you have important data you need to save in the server hard disk, you should STOP NOW AND REBOOT THE SERVER.
Client Area
3. In the next menu, choose Operating System Installation and press Enter.
Microsoft Hyper-V Server 2012
4. Select Microsoft Hyper-V Server 2012 installation and hit Enter.
Microsoft Hyper-V Server 2012 Setup Screen
5. The server should boot to a Windows PE environment and at the end, you should see the Microsoft Hyper-V Server 2012 Setup screen. Choose your prefered Language, Time and Currency format and Keyboard layout and click Next to continue.

Install Now
6. Click “Install now” to start the installtion process.

License and Terms
7. Check the box next to “I accept the license terms and click Next.
Hyper-V install: Select Custom install
8. Choose “Custom: Install the newer version of Hyper-V Server only (advanced)”
Hyper-V: Dirve selection
9. Select the drive you like to install Hyper-V to and click Next to continue.
Hyper-V: Copying files
10. The Hyper-V installer will start copying files to your server. Once the installation process is done, it will reboot the server automatically.
Hyper-V: First screen after install
11. Since it is the first time the Hyper-V server boot up after the installation, it will prompt the user to change the password for the Administrator account. Just hit “OK” to continue.
Hyper-V: Create Administrator Password
12. In the next screen, enter the new password you want to assign to the user Administrator. Press Enter after you done.
Hyper-V: Admin account password updated
13. After the password of the Administrator account is updated, press “OK” once to continue.
Hyper-V: Server Configuration Screen
14. The Microsoft Hyper-V Server 2012 installation is completed now. You can customize your own settings from the Server Configuration screen or via the Command Line.