Windows Server 2012 Hyper-V Partner
Readiness Workshop
Virtual Labs
1
Information in this document, including URL and other Internet Web site references, is subject to change
without notice. Unless otherwise noted, the example companies, organizations, products, domain
names, e-mail addresses, logos, people, places, and events depicted herein are fictitious, and no
association with any real company, organization, product, domain name, e-mail address, logo, person,
place or event is intended or should be inferred. Complying with all applicable copyright laws is the
responsibility of the user. Without limiting the rights under copyright, no part of this document may be
reproduced, stored in or introduced into a retrieval system, or transmitted in any form or by any means
(electronic, mechanical, photocopying, recording, or otherwise), or for any purpose, without the express
written permission of Redynamics Asia Sdn Bhd.
Redynamics Asia may have patents, patent applications, trademarks, copyrights, or other intellectual
property rights covering subject matter in this document. Except as expressly provided in any written
license agreement from Microsoft, the furnishing of this document does not give you any license to
these patents, trademarks, copyrights, or other intellectual property.
© 2012 Redynamics Asia Systems Management Sdn Bhd. All rights reserved.
Training material prepared by
Name : Lai Yoong Seng (MVP Virtual Machine)
Email : [email protected]
Blog : www.ms4u.info
Revision : 1.1
To learn more about virtualization, please feel free to join our virtualization user group (MVUG):-
https://www.facebook.com/groups/mvuggroup/
2
Contents
Lab 01: New Windows Server 2012 Style User Interface ............................................................................. 6
Lab 02: Server Management....................................................................................................................... 12
Lab 03: - Understanding Microsoft Assessment and Planning Toolkit (MAP) 7 ......................................... 14
Lab 04: Conversion between Windows Server 2012 Installation ............................................................... 18
Lab 05: Live Snap Shot Merge..................................................................................................................... 20
Lab 06: VHDX Virtual Hard Disk .................................................................................................................. 22
Lab 07: Live Storage Migration ................................................................................................................... 25
Lab 08: Real Time Dynamic Memory .......................................................................................................... 27
Lab 09: Port ACL .......................................................................................................................................... 30
Lab 10: Resource Metering ......................................................................................................................... 32
Lab 11: Storage Spaces (Storage Virtualization) ......................................................................................... 35
Lab 12: Data Deduplication......................................................................................................................... 38
3
Configuration Virtual Machine IP Address
192.168.128.100
No Virtual Machine Name 192.168.128.102
1 RED-DC01 192.168.128.103
2 RED-SVR01 192.168.128.104
3 RED-SVR02 192.168.129.104
4 RED-RRAS 192.168.129.101
192.168.128.105
5 RED-S200 192.168.128.106
6 RED-S201 -
7 RED-VMM01 -
8 RED-Core 192.168.128.107
9 RED-GUI
10 RED-MAP7 IP Address
192.168.128.50
Configuration Physical Server 192.168.128.51
192.168.128.52
No Hyper-V Host 192.168.128.53
1 Station 1 192.168.128.54
2 Station 2 192.168.128.55
3 Station 3 192.168.128.56
4 Station 4 192.168.128.57
5 Station 5 192.168.128.58
6 Station 6 192.168.128.59
7 Station 7 192.168.128.60
8 Station 8 192.168.128.61
9 Station 9 192.168.128.62
10 Station 10 192.168.128.63
11 Station 11 192.168.128.64
12 Station 12 192.168.128.65
13 Station 13 192.168.128.66
14 Station 14 192.168.128.67
15 Station 15 192.168.128.68
16 Station 16 192.168.128.69
17 Station 17 192.168.128.70
18 Station 18 192.168.128.71
19 Station 19 192.168.128.72
20 Station 20 192.168.128.73
21 Station 21 192.168.128.74
22 Station 22 192.168.128.75
23 Station 23
24 Station 24
25 Station 25
26 Station 26
4
27 Station 27 192.168.128.76
28 Station 28 192.168.128.77
29 Station 29 192.168.128.78
30 Station 30 192.168.128.79
Subnet mask : 255.255.255.0 Bind to
N/A
Gateway : 192.168.128.254
DNS : 192.168.128.100
Initial Virtual Switch Configuration
Virtual Switch Name Virtual Switch Type
Internal Internal
5
Lab 01: New Windows Server 2012 Style User Interface
Username: administrator
Password: P@ssw0rd
Lab Objective: At the end of this lab, students will be able to familiar with new
Windows Server 2012 style User Interface
Windows Server 2012 Virtual Lab Introduction : https://vimeo.com/50048715
Intro Lab01-Windows Server 2012 User Interface: https://vimeo.com/50378658
Answer Lab01-Windows Server 2012 User Interface: https://vimeo.com/50375531
Task Detail step
Start Button & 1. Press “Windows Logo” button using your keyboard
Application
2. To view all application, place cursor on the background color (i.e not on a tile)
and right click. The All Apps click button will appear at the lower left part of the
screen. Click All Apps.
6
Task Detail step
3. Clicking All Apps bring up the Apps screen revealing all the apps currently
installed in the system. On the Apps screen, right click an app to mark and
pin/unpin the app to the desktop / taskbar.
4. Right click again to unmark as needed. Try to put “Windows Powershell ISE “ into
Start and Taskbar. Make sure “Windows Powershell ISE “is available in Start and
Taskbar screen
5. Once complete, Unpin from Start and Taskbar. Make sure “Windows Powershell
ISE” has removed from Start screen and taskbar.
7
Task Detail step
The Four Corner
LL – Lower Left
UL – Upper Left
LR – Lower Right
UR – Upper Right
1. Place the cursor and click at each of the magic corner to toggle screen.
LL Corner
a) Try move your mouse to LL on a screen. It will toggle Windows Start Screen. Left click
to open Start Screen.
b) Right click, to open Start menu.
8
Task Detail step
Upper Left
a) On a screen, place cursor to the UL corner to see the last accessed Metro style app.
b) Move cursor down along the left edge of the screen to list out all inactive Metro style app.
c) As preferred, left click to active and bring up the app or right click to close an app here
Lower Right or Upper Right
a) Moving cursor to either LR or UR will bring up the so called Charms showed in transparency
with the background. Moving cursor up or down at this time along the edge will highlight the
Charms with a black bar and also show the current day, date, time, network, and power status.
Notice Charms provides an access to the Settings options of both the current screen and the
Start screen as well.
9
Task Detail step
1. Press Windows Logo Key + i
Change Server
Settings
2. Navigate each Settings to familiar with the Metro UI.
Search from Start 1. Click Windows Logo key. Start screen appear.
Screen 2. Type “Administrative”. It will invoke the search function.
Windows Explorer 1. Open Windows Explorer. Click on the Explorer icon on the taskbar or use Search. Type
“Explorer” and select File Explorer.
2. Within Windows Explorer, you can right click a folder from the navigation tree to pin the
folder to the Start Screen.
10
Task Detail step
3. Pin Documents from the Libraries folder.
Run dialog button 4. Make sure Documents has added into Start Screen.
Run As Different 1. Press Windows Logo Key + r
User Account
1. From Windows Explorer, navigate to C:\Windows
2. Right click with Shift key on the regedit Application
3. Select “Run as Different User”
Or
1. On the Start Screen, right click “Windows Powershell ISE” and select “Run As Different User”
11
Lab 02: Server Management
Virtual Machines: RED-DC01, RED-SVR01, RED-SVR02
Username: Redcloud\administrator
Password: P@ssw0rd
Lab Objective: At the end of this lab, students will be able to setup Hyper-V server and
perform multi server management using Server Manager snap-in
Intro Lab2-Server Manager: https://vimeo.com/50049874
Answer Lab2-Server Manager: https://vimeo.com/50375532
Task Detail step
Disable Windows 1. Boot up the Virtual Machine using Hyper-V Manager snap-in
Firewall 2. Connect to RED-SVR01 and disable the Windows Firewall using Server
Manager snap-in. Open Server Manager snap-in, click Local Server and select
Windows Firewall – Public: On.
3. Click Turn Windows Firewall on or Off
4. Select Turn off Windows Firewall for Domain, Private and Public network
setting.
5. Repeat the same step and disable Windows Firewall on RED-SVR02 VM
6. Then connect to RED-DC01 Virtual Machine, open command prompt and type
the following command:
Ping 192.168.128.102
Ping 192.168.128.103
Note: Make sure the ping is successful before proceed to next step.
Create a Group 1. Connect to RED-DC01 Virtual Machine using Hyper-V Manager snap-in
2. Login using above authentication
3. In the Server Manager console, click Dashboard, Click Manage and then click
Create a server group.
4. Type IIS Demo Server for the Server Group name
5. Click the Active Directory tab, and then click Find Now.
6. Add RED-SVR01 and RED-SVR02 to the server group.
7. Click OK to create Server group
8. Click IIS Demo Server. Scroll down to Performance. Press and hold the Ctrl
key to select both RED-SVR01 and RED-SVR02.
9. When both are selected, right-click RED-SVR01, and then click Start
Performance Counters.
Deploy roles and 1. In Server Manager, click the IIS Demo Server server group, right-click RED-
features to both SVR01, and then click Add Roles and Features.
12
Task Detail step
servers
2. Click Next, click Role-based or feature-based installation, and then click Next.
View Metro UI 3. Verify that RED-SVR01 is selected, and then click Next.
Dashboard 4. Select the Web Server (IIS) Server role.
5. Select the Windows Server Backup feature.
2. Add the Windows Authentication role service, and then click Next.
3. Select the Restart the destination server automatically if required check box,
and then click Install.
4. Click Close.
5. Right-click RED-SVR02, click Add Roles and Features, and then click Next.
6. Click Role-based or feature-based installation, and then click Next.
7. Verify that RED-SVR02.REDCLOUD.Local is selected, and then click Next twice.
8. Click Windows Server Backup, and then click Next.
9. Select the Restart the destination server automatically if required check box,
click Install, and then click Close.
10. In Server Manager, click the IIS node, and verify that RED-SVR01 is listed.
1. In Server Manager, click Dashboard
2. From the single Dashboard you will be able to view the health of the server in
your environment. (Green – Healthy, Red- Error)
1. Click on Services in IIS Demo Server.
2. Right click Shell Hardware Detection and select Start Services
3. Once complete, the dashboard will reported “Healthy”.
If the dashboard reported Healthy, use Server Manager and stop the services “Shell
Hardware Detection. The dashboard will reported “Error”
13
Lab 03: - Understanding Microsoft Assessment and Planning
Toolkit (MAP) 7
Virtual Machines: RED_DC01, RED-MAP7
Username: Redcloud\administrator
Password: P@ssw0rd
Lab Objective: At the end of this lab, students will be able to perform inventory,
assessment and reporting using MAP that helps you assess your
current IT infrastructure and determine the right Microsoft
technologies for your IT needs.
Intro Lab03-Microsoft Assessment and Planning Toolkit 7 : https://vimeo.com/50049876
Answer Lab03-Microsoft Assessment and Planning Toolkit 7 : https://vimeo.com/50375535
Task Detail step
Collect Inventory 1. Connect to RED-MAP7 Virtual Machine using Hyper-V Manager snap-in
Data
2. Double-click the MAP Toolkit shortcut to launch the MAP Toolkit in Start | All
Programs | Microsoft Assessment and Planning Toolkit.
3. In the Create or Select a Database to Use dialog click Create an inventory
database and type student as a new database name and click OK. (The lab uses
this database to do a very small inventory of your local computer.)
4. Ensure that the Inventory and Assessment Wunderbar is active (highlighted) and
that Data Collection is highlighted in the top left tree-view.
5. In the center pane click the Perform an Inventory “Go” button to launch the
wizard.
6. In the Inventory Scenarios page, ensure Windows-based computers checkbox is
selected, which should be selected by default, then click Next.
7. In the Discovery Methods page, uncheck Use Active Directory Domain Services
(AD DS).
8. Check Manually enter computer names and credentials then click Next.
9. In All Computer Credentials page, click Create.
10. In the Account Entry dialog, type the username for the local computer user
(example: redcloud\Administrator) in the Account Name field
11. In both the Password and Confirm Password fields, type the password for the
local computer user (example: P@ssw0rd) then click Save.
14
Task Detail step
12. In the All Computer Credentials Page, click Next.
13. Click Next in the Credentials Order page.
14. In the Enter Computers Manually Page, click Create.
15. In the Specify Computers and Credentials page, type the name of the local
computer (example: RED-DC01) as the computer name and click Add.
16. Check Use All Computers Credential list and click Save.
17. Click Next and review the information displayed in the Summary page.
18. Click Finish to launch a status dialog and the inventory process.
Collect Performance In order to determine the resources needed by individual computers that are candidates
Data for virtualization, the MAP Toolkit needs to collect performance data from these
computers over an extended period.
1. Create a text file called local-computer.txt with notepad containing the
server: RED-DC01, and save it to your Documents folder - this document will
be used in the steps below.
2. In the top left tree-view click Data Collection.
3. In the center pane under click the Collect Performance Data “Go” button.
4. On the Collection Configuration page, check the box Windows-based
machines
5. In the End Time field, type a time 31 minutes from now, then click Next.
6. You will see a dialog that will warn you that the duration is too short. Click
Yes to dismiss the notification.
7. In the Choose Computers dialog, click Provide a text file…
8. Click Browse…
9. Locate the file local-computer.txt in your Documents folder and click Open.
10. Click Next in the Choose Computers dialog.
11. You will see a dialog that will notify you about the number of machines on
which the toolkit will collect performance data. Click OK to dismiss the
notification.
12. Click Next in the All Computers Credentials dialog.
13. Click Finish to start collecting performance data.
Note:- This lab will took 30 minute to collect data. You can click Close button to proceed
15
Task Detail step
to next step
Create Hardware 1. In the center pane click the Create a Hardware Configuration “Go” button to
Configuration launch the wizard.
2. On the Choose Scenario page, click General Server Consolidation/Desktop
Virtualization.
3. Under Create new, type the name myhardware and click Next twice and the
CPU page will display.
4. From the Manufacturer drop down menu, select Intel. You can personalize
the CPU specification as you like, then click Next.
5. Keep or modify the Storage settings and click Next.
6. Enter “1000” for the network throughput, 16GB for memory in the Network
and Memory settings and click Next.
7. Inspect the summary of hardware settings for the virtualization host and click
Finish.
Perform Server Note:- Make sure Performance collection data has completed or 30 minute has passed
Consolidation before proceed to next lab. You can take a break or proceed with next Lab module.
Assessment
1. Ensure that the Inventory and Assessment Wunderbar is active then, in the
16 top left tree-view, click Server Virtualization.
2. In the center pane click the Run Server Consolidation Wizard “Go” button to
launch the wizard, the Virtualization Technology page is displayed.
3. Select Windows Server 2008 R2 SP1 Hyper-V (default) and click Next, the
Hardware Configuration page is displayed.
4. Click Select from your hardware library, verify that myhardware is selected
and click View to inspect the configuration you are about to use. After
inspecting the configuration click Close on the Hardware Configuration
Properties page.
5. Click Next on the Hardware Configuration page and the Utilization Settings
page is displayed, adjust as desired.
6. Click Next and the Choose Computers page is displayed.
7. Click Provide a text file…
8. Click Browse to select a file and open the local-computer.txt file.
Task Detail step
9. Click Next to see a dialog informing you how many machines will be
considered for placement. Click OK on the dialog and a Summary page of the
host machine configuration will be shown.
10. Click Finish on the Summary page to start the placement assessment, and to
launch a status dialog.
11. When the assessment is complete, click Close.
12. Expand Virtualization in the top left tree view and click Server Consolidation
Results node. View the server consolidation assessment results within the UI.
Generate Server 1. Ensure you have completed the previous procedure, To perform a Server
Consolidation Report Consolidation Assessment.
2. From the main menu, select File → Prepare New Reports and Proposals to
launch the Select Reports and Proposals dialog.
3. Click Select All/Unselect All too clear all selections.
4. Click Server Consolidation Recommendations.
5. Click Next to review the list of reports and proposals that will be generated.
6. Click Finish to start generating the reports and proposals and to launch a
status dialog.
7. After the status dialog reports that the generation has completed, click Close.
8. Select View → Saved Reports and Proposals from the main menu (or
navigate to a previously opened file explorer) to launch a file browser on the
directory where the generated files are stored.
9. Open the ServerVirtRecommendation-<date-and-time> Excel report and the
ServerVirtProposal-<date-and-time> Word document. View the report and
proposal which contains detailed information on the placement of existing
hardware as virtual machines on future hardware running Windows Server
2008 R2 SP1 Hyper-V.
10. After viewing close report, proposal, and file browser.
17
Lab 04: Conversion between Windows Server 2012 Installation
Virtual Machine Red-GUI, RED-Core
Username: administrator
Password: P@ssw0rd
Lab Objective: At the end of this lab, students will be able switch between different
installation options without reinstall the entire operating system.
Intro Lab04-Win2012 Installation Conversion : https://vimeo.com/50049878
Answer Lab04-Win2012 Installation Conversion : https://vimeo.com/50375537
Task Detail step
Convert Windows 1. Connect to RED-GUI Virtual Machine using Hyper-V Manager.
Server GUI to 2. Login to the Virtual Machine using above authentication
Server Core 3. Open Windows Powershell and type
Uninstall-WindowsFeature Server-GUI-Mgmt-Infra –restart
Convert Windows 4. Once virtual machine has rebooted, you in Server Core mode.
Server Core to GUI
1. Connect to RED-Core Virtual Machine using Hyper-V Manager
On Command Prompt:
2. Create a folder to mount WIM. Type mkdir C:\mountdir
3. Then Type “powershell” to access Windows Powershell and enter below
command in the next step.
3. Determine the index number for a server with GUI image. Type
dism /get-wiminfo /Wimfile:c:\win2012\sources\install.wim
4. Mount the WIM for “Server DataCenter Edition”. So the Index is 4
dism /mount-wim /wimfile:c:\win2012\sources\install.wim /Index:4
/mountdir:c:\mountdir /readonly
On Windows Powershell:
5. Start Windows Powershell and execute
Install-WindowsFeature Server-Gui-Mgmt-Infra, Server-Gui-Shell –restart –source
c:\mountdir\windows\winsxs
18
Task Detail step
Convert GUI to This options allow you to enjoy the benefit of Server Core and limited GUI option.
Minimal Installation What is missing in Minimal Server Interface?
No desktop
No Start screen (Bye bye start menu)
No Windows Explorer
No Internet Explorer
So what’s management tool available in Minimal Server Interface?
Server Manager
MMC snap-ins
Subset of Control panel
1. Connect to RED-Core Virtual Machine using Hyper-V Manager
2. To switch in Minimal Server Interface using Windows Powershell:
Uninstall-WindowsFeature Server-Gui-Shell –remove
3. Restart the Virtual Machine
4. Login into the Virtual Machine. You will see Server Core Interface and Server
Manager snap-in
19
Lab 05: Live Snap Shot Merge
Virtual Machines: RED-DC01, RED-SVR01
Username: Redcloud\administrator
Password: P@ssw0rd
Lab Objective: At the end of this lab, students will be able to perform snapshot using
Hyper-V and live snapshot merging without shutdown the virtual
machine. In Windows Server 2008 R2, if you create and delete a virtual
machine snapshot – we will not merge out and delete the differencing
disk that was used for the snapshot until you turn off the virtual
machine. This is really annoying as it means that whenever you take a
snapshot on a virtual machine, you are committing to turning it off (for
a potentially long period of time in the future). Furthermore, many
users do not turn off the virtual machine to allow deleted snapshot files
to be merged out – and they then run out of space.
This is no longer a problem in Windows Server 2012. In Windows
Server 2012, the moment you delete a snapshot we begin to merge the
changes in while the virtual machine is running.
Intro Lab05-Live Snapshot : https://vimeo.com/50050637
Answer Lab05-Live Snapshot : https://vimeo.com/50375538
Task Detail step
Create Snapshot 1. Start the RED-SVR01 Virtual Machine
2. Login to the Virtual Machine
3. Go to Control Panel, select “Change Desktop background”
4. Select “Solid Color” in Picture Location
5. Change to “Green” and click Save Changes
6. On the Hyper-V Manager, right click RED-SVR01 and select Snapshot.
7. Once complete, rename the snapshot to “Green Background”.
20
Task Detail step
8. Repeat the same process (step 3-6 to change color to Yellow first, create
snapshot called “Yellow Background” and Red” color, rename snapshot to
Red Background) . At the end, you will have 4 snapshot
9. Navigate to C:\VM, you will saw 4 snapshot has created (RED-SVR01 with the
extension .avhd). Each snapshot created will occupy hard disk space.
Apply Snapshot 1. Using Hyper-V Manager snap-in, apply the snapshot Yellow Background.
Right click Yellow Background snapshot and select Apply.
Live Snapshot
Merge 2. Click Apply.
3. You will notice Hyper-V will revert to the point of state which is “Yellow
Background” and make sure the background colour is “Yellow”.
4. Repeat the same step to test Green and Red Background
Once the test has completed and you will like to remove the snapshot and free
some hard disk space.
1. Delete “Green Background” snapshot. Using Hyper-V Manager, select
“Green Background” snapshot and select Delete Snapshot.
2. Click Delete to confirm.
3. Navigate to C:\VM. You will realise now you only have 3 snapshots for RED-
SVR01
4. Delete the rest of the snapshot (except Initial Snapshot) and Hyper-V will
reclaim the hard disk which occupy for Snapshot. At the end, rather than 4
snapshot, you will have only a snapshot.
21
Lab 06: VHDX Virtual Hard Disk
Virtual Machines: RED-DC01, RED-SVR01
Username: REdCloud\administrator
Password: P@ssw0rd
Lab Objective: At the end of this lab, students will be able to
a) Convert VHD to VHDX
b) Convert VHDX to VHD
c) Create a VHDX Disk
VHD virtual hard disk allow you to create up to 2 TB of virtual hard disk. VHDX is designed to handle
current and future workload. VHDX has a much larger storage capacity than the older VHD format. It
also provides data corruption protection during power failures and optimizes structural alignments of
dynamic and differencing disks to prevent performance degradation on new, large-sector physical disks.
The main new features of the VHDX format are:
Support for virtual hard disk storage capacity of up to 64 TB.
Protection against data corruption during power failures by logging updates to the VHDX
metadata structures.
Improved alignment of the virtual hard disk format to work well on large sector disks.
Intro Lab 06-VHDX : https://vimeo.com/50049877
Answer Lab 06-VHDX : https://vimeo.com/50375874
Task Detail step
Convert VHD to 1. Use Hyper-V Manager snap-in.
VHDX 2. Select Edit Disk on the Action pane
3. Select SampleVHD from C:\VM\SampleVHD.vhd and click Next
22 4. On Choose Action page, select Convert and click Next
5. On Choose Disk format, select VHDX and click Next
6. On Disk Type, select Dynamically expanding and click next
7. On Configure disk location, type C:\VM\ConvertVHDX and click Next
8. Click Finish to start the conversion
9. Wait till the conversion is complete before proceed to next Lab.
Task Detail step
Convert VHDX to 10. Navigate to C:\VM. A “ConvertVHDX.vhdx” has created. Right click the virtual
VHD disk and select Properties. The Type of file should be “Hard Disk Image File
(.vhdx)”
Create a new 64TB
VHDX and assign to 1. Use Hyper-V Manager snap-in.
Virtual Machine 2. Select Edit Disk on the Action pane
3. Select “SampleVHD” from “C:\VM\ConvertVHDX.vhdx” and click Next
4. On Choose Action page, select Convert and click Next
5. On Choose Disk format, select VHD and click Next
6. On Disk Type, select Dynamically expanding and click next
7. On Configure disk location, type “C:\VM\EndResultVHD” and click Next
8. Click Finish to start the conversion.
9. Wait till the conversion is complete before proceed to next Lab.
10. Navigate to C:\VM. A “EndResult.vhd” has created. Right click the virtual disk
and select Properties. The Type of file should be “Hard Disk Image File (.vhd)”
1. In Hyper-V Manager, right click RED-SVR01 Virtual Machine and Select Settings
2. Click on SCSI Controller, select Hard Disk and click Add.
3. On the New Hard Drive , select New
4. On the New Virtual Hard Disk Wizard, click Next
5. On the Choose Disk Format, select VHDX and Click Next
6. On the Choose Disk Type, select Dynamically expanding and Click Next
7. Specify the name, RED-SVR01Disk2.vhdx and click Next
8. On Configure Disk, assign the size 65536 and Click Next
9. Click Finish
10. Click OK to close the Setting dialog box.
11. Connect to RED-SVR01 Virtual Machine
12. Open Start Screen and select Administrative Tool
13. Open Computer Management and select Disk Management
14. Right click Disk 1, select Online Disk
23
Task Detail step
15. Right click Disk 1 , select Initialize Disk 1
16. Select GPT for partition disk and click OK
17. Right click on Unallocated Disk 1 and select New Simple Volume
18. Click Next on Specify Volume Size
19. Click Next on Assign Drive Letter or Path
20. Click Next on Format Partition
21. Click Finish
22. Once formatting process is complete, right click New Volume and select
Properties
23. Notice the size of the disk is 64TB
24
Lab 07: Live Storage Migration
Virtual Machines: RED-DC01, RED-SVR01
Username: administrator
Password: P@ssw0rd
Lab Objective: At the end of this lab, students will be able to move a running virtual
machine virtual hard disk from one disk to another without causing any
downtime.
Storage migration is one of the new features of Windows Server 2012 Hyper-V. It helps you to transfer
virtual machine VHD (VHDX) and configuration items to a new locations. While Hyper-V gets all bits to a
new folder, Virtual Machine continues to run with all functionality
Storage migration process creates a new virtual hard disk in the destination directory thereupon user
initiates Live Storage Migration through UI or PowerShell.
Important part is during source virtual hard disk read and write operations, newly created operations
mirrored to the new virtual hard disk. Reads are occurring from the source, writes are happening to
both source and destination.
Then Hyper-V initiates copying virtual disks. If your storage array supports Offloaded Data Transfer,
storage migration accelerate itself as taking advantage of ODX technology. Offloaded Data Transfer
(ODX) introduces a tokenized operation to move data on the storage device. The source file and
destination file can be on the same volume, two different volumes hosted by the same machine, a local
volume and a remote volume through SMB3, or two volumes on two different machines through SMB3.
ODX in Windows Server 2012 allows handing off operations to the storage system that can perform
actions with higher performance.
Once disk copy process is complete, Hyper-V switch VM to run on destination virtual hard disk. In case of
a failure on destination side, there is always fail back option to run back again on source directory. And
finally deletes source VHDs.
Intro Lab07-Live Storage Migration https://vimeo.com/50050639
Answer Lab07-Live Storage Migration https://vimeo.com/50375877
Task Detail step
Perform Live 1. Open File Explorer and notice the folder “C:\VM\NewLocation” is empty
Storage Migration 2. Using Hyper-V Manager, right click RED-SVR01 Virtual Machine and select Move
25
Task Detail step
3. On Choose Move Type page, select “Move the virtual machine storage” and
click Next
4. On Choose Options for Moving Storage page, select “Move the all of the virtual
machine data to a single location and click Next
5. On Choose a new location for a virtual machine, select the folder
C:\VM\NewLocation and click Next
6. Click Finish to start the move process.
7. Open C:\VM\NewLocation and notice Hyper-V Created new 3 folders. Navigate
to Virtual Hard Disks and notice virtual hard disk is been copy to new location.
8. Use Hyper-V manager and Connect to the RED-SVR01 Virtual Machine. Virtual
machine is up and running and Hyper-V Manager status reported “Moving
storage – Copying Files”
9. Wait till the 100% completed and make sure VHD, AVHDX and Red-SVR01Disk2
has moved to C:\VM\NewLocation
26
Lab 08: Real Time Dynamic Memory
Virtual Machines: RED-DC01,RED-SVR02
Username: REdCloud\administrator
Password: P@ssw0rd
Lab Objective: At the end of this lab, students will be able to decrease and increase
memory while the virtual machine is up and running
Intro Lab08-Dynamic Memory https://vimeo.com/50050450
Answer Lab08-Dynamic Memory https://vimeo.com/50375878
Task Detail step
Change Static 1. Using Hyper-V Manager, shutdown the RED-SVR02 Virtual Machine
Memory to 2. Right click RED-SVR02 Virtual Machine and click Settings.
Dynamic Memory 3. Click Memory and change to the following settings
Start-up Memory : 750 MB
Tick Enable Dynamic Memory
Minimum Memory : 512 MB
Maximum Memory : 1024 MB
4. Click OK to close the Setting page.
Observe the Start-up 1. Start the RED-SVR02 Virtual Machine
Memory & Minimum 2. Notice the virtual machine boot up using 750 MB of Memory.
Memory
3. After the guest operating system boot up to Windows, you will able to see
27
Task Detail step
the result of Memory Demand which indicate the memory utilization of the
workload.
Memory Status reported OK indicate the virtual machine has sufficient
memory.
4. After wait for a while, previous 750MB memory will reduce to 512 MB (the
minimum memory that you have configure previously).
5. The Virtual Machine will reported 290- 300 MB of memory demand. You can
decrease the minimum memory without shutdown the virtual machine.
Decrease Minimum 1. Using Hyper-V Manager snap-in, right click RED-SVVR02 Virtual Machine and
Memory click Settings
Increase Maximum 2. Click on Memory and change the Minimum Memory from 512 to 350MB
Memory 3. Change the Memory Buffer to 5%
4. Click OK
28 5. It will take a while before the memory drop to 350.MB.
Note: - It is subject to the VM workload and take for a while to reduce the
memory to 350MB
1. Login to RED-SVR02
2. Open MS Paint program
3. Click File | Properties
4. Change the Width and Height to 8000 X 8000
5. Notice the Virtual Machine has increase the memory to 1024 (Maximum
memory that you have previously configure)
6. Notice the Memory Demand is showing more than 1024MB and Memory Status
“Warning”. This indicate the virtual machine require more memory due to
increase workload utilization.
7. Using Hyper-V Manager snap-in, right click RED-SVVR02 Virtual Machine and
click Settings
Task Detail step
8. Click on Memory and change the Maximum Memory to 1500 MB.
9. Click OK
10. The Virtual Machine is slowly increase the memory to more than 1024MB and
memory status reported “OK”
29
Lab 09: Port ACL
Virtual Machines: RED-DC01, RED-RRAS, RED-S200, RED-S201
Username: administrator
Password: P@ssw0rd
Lab Objective: At the end of this lab, students will be able to perform access control
list on the virtualization infrastructure without involve network team.
RED-S200 IP Address : 192.168.129.101
RED-S201 IP Address : 192.168.128.105
Intro Lab09-Port ACL https://vimeo.com/50050896
Answer Lab09-Port ACL https://vimeo.com/50375876
Task Detail step
Perform Continuous 1. Login to RED-S200 Virtual Machine
Ping 2. Open Command prompt and type the following command
Ping 192.168.128.105 –t
3. The end result of the ping:
“Reply from 192.168.128.105: bytes=32 time<1 ns TTL=128””.
4. This proof that RED-S200 Virtual Machine which reside in subnet
192.168.128.0/24 can access to RED-S201 Virtual Machine.
View ACL 1. On the Physical Hyper-V host, open Windows Powershell
2. Type the following command:-
Get-VMNetworkAdapterACL
3. No Result is display as ACL is not configure
Configure ACL to Command to use: Add-VMNetworkAdapterACL
block RED-S200 Specify the VM name to apply the ACL
access to RED-S201 Remote IP Address (Ipv4 or Ipv6) or Remote Mac Address
Virtual Machine Direction – Inbound traffic, OutBound traffic, Both (Inbound & Outbound)
30
Task Detail step
Action – Allow traffic, Deny traffic, Meter – to measure traffic
1. On the Physical Hyper-V host, open Windows Powershell
2. Type the following command:-
Add-VMNetworkAdapterACL –VMName RED-S201 –RemoteIPAddress
192.168.129.0/24 –Direction Both –Action Deny
Get-VMNetworkAdapterACL
3. Traffic Inbound and Outbound from 192.168.129.0/24 to VM RED-S201 is blocked.
Verify Result after 1. Connect to RED-S200 Virtual Machine
configure ACL 2. Check the ping result. You will receive a result “ Request Timed Out”
Remove ACL to 1. On the Physical Hyper-V host, open Windows Powershell
allow traffic from 2. Type the following command:-
Subnet Get-VMNetworkAdapterACL RED-S201 | Remove-VMNetworkAdapterACL
192.168.129.0/24 to Get-VMNetworkAdapterACL
192.168.128.0/24 3. Now ACL is empty
Verify Result after 1. Connect to RED-S200 Virtual Machine
remove ACL 2.The end result of the ping:
“Reply from 192.168.128.105: bytes=32 time<1 ns TTL=128””.
31
Lab 10: Resource Metering
Virtual Machine RED-DC01, RED-RRAS, RED-S200, RED-S201
Username: Redcloud\administrator
Password: P@ssw0rd
Lab Objective: At the end of this lab, students will be able to measure the following
parameter on individual Hyper-V virtual machines:
Average CPU use
Average physical memory use, including:
Minimum memory use
Maximum memory use
Maximum disk space allocation
Incoming network traffic for a network adapter
Outgoing network traffic for a network adapter
Movement of virtual machines between Hyper-V hosts—for example, through live, offline, or storage
migrations—does not affect the collected data.
Intro Lab 10 – Resource Metering https://vimeo.com/50346999
Answer Lab 10 – Resource Metering https://vimeo.com/50378510
Task Detail step
Change VM Settings 1. Using Hyper-V Manager and change the following VM Settings
VM name: RED-RRAS
Virtual CPU : 4
Start up memory: 750
Min Memory : 350
Max Memory : 1024
VM name: RED-S200
Virtual CPU : 2
Start up memory: 1024
Min Memory : 512
Max Memory : 1500
VM name: RED-S201
32
Task Detail step
Virtual CPU : 1
Start up memory: 512
Min Memory : 256
Max Memory : 750
2. Start the above virtual machine
Enable Resource 3. On the Physical Hyper-V Server, open Windows Powershell
Metering on Hyper- 4. Type the following command
V Server
Hostname
5. Take note of the physical server computer name
6. Type the following command
Get-VM –Computername <your computer name> | Enable-
VMResourceMetering
Change Collection By default the collection interval for Hyper-v metering data is one hour to
Interval change this interval the following PowerShell command can be used “value used
in the command below is one minute”:
To Get all VM
Metering Set-VMHost –ComputerName <your computer name> -
ResourceMeteringSaveInterval 00:01:00
1. Type the following command
Get-VM –ComputerName <your computer name> | Measure-VM
33
Task Detail step
To get a particular 1. To get a particular VM “RED-RRAS” metering data run the following PowerShell
VM Metering command:
Get-VM –ComputerName <your computername> -Name “Red-RRAS” |
Measure-VM
.
Reset Resource 1. Type the following command
Metering Statistic Reset-VMResourceMetering –vmname “Red-RRAS”
Get-VM –ComputerName <your computername> -Name “Red-RRAS” |
Measure-VM
34
Lab 11: Storage Spaces (Storage Virtualization)
Virtual Machines: RED-DC01, RED-SVR02
Username: Redcloud\administrator
Password: P@ssw0rd
Lab Objective: At the end of this lab, students will be able to group multiple physical
disk together. Storage Spaces is a Windows Server 2012 feature that
pool disks together and present them to the operating system as a
single disk. It provides redundancy and pooled storage for numerous
internal and external drives of differing sizes and interfaces. You can
use Storage Spaces to add physical disks of any type and size to a
storage pool, and then create highly available virtual disks from it. The
primary advantage of Storage Spaces is that you do not manage single
disks, but can manage multiple disks as one unit.
Intro Lab11-Storage Spaces https://vimeo.com/50126601
Answer Lab11-Storage Spaces https://vimeo.com/50377623
Task Detail step
Create New Disk to 1. Using Hyper-V Manager snap-in, Right click the RED-SVR02 Virtual Machine and
RED-SVR02 Virtual click Settings
Machine
2. Click on SCSI Controller, click Hard Disk and select Add
3. Click New
Configure the following setting:-
Disk Format : VHDX
Disk Type : Dynamically Expanding
Specify name: RED-SVR02Disk2.vhdx
Size : 50GB
4. Click Finish.
5. Repeat step 2 till step 4 to add RED-SVR02Disk3, RED-SVR02Disk4 and RED-
SVR02Disk5 into the existing SCSI Controller.
Disk Format : VHDX
Disk Type : Dynamically Expanding
Specify name: RED-SVR02Disk3.vhdx
Size : 100GB
35
Task Detail step
Disk Format : VHDX
Disk Type : Dynamically Expanding
Specify name: RED-SVR02Disk4.vhdx
Size : 100GB
Disk Format : VHDX
Disk Type : Dynamically Expanding
Specify name: RED-SVR02Disk5.vhdx
Size : 250GB
Create Storage Pool 1. Connect to RED-SVR02 and login using above authentication
Create a Simple 2. In the left pane, click File and Storage Services, and in the Servers pane, click
Virtual Disk and a Storage Pools.
Volume
500 GB thin 3. In the STORAGE POOLS pane, click TASKS and then in the TASKS drop-down list,
provisioning click New Storage Pool.
36 4. In the New Storage Pool Wizard, on the Before you begin page, click Next.
5. On the Specify a storage pool name and subsystem page, in the Name box, type
StoragePool1, and then click Next.
6. On the Select physical disks for the storage pool page, click Physical disks1 and
Physical Disk2, and then click Next.
7. On the Confirm selections page, click Create.
8. On the View results page, wait until the creation is completed, and then click
Close.
9. You have just created 150GB Storage Pool
1. Under Storage Pools, click StoragePool1.
2. In the VIRTUAL DISKS pane, click TASKS, and then in the TASKS drop-down
list, click New Virtual Disk.
3. In the New Virtual Disk Wizard, on the Before you begin page, click Next.
4. On the Select the server and storage pool page, click StoragePool1, and
then click Next.
5. On the Specify the virtual disk name page, in the Name box, type Simple
vDisk, and then click Next.
6. On the Select the storage layout page, in the Layout list, select Simple, and
then click Next.
Task Detail step
7. On the Specify the provisioning type page, click Thin, and then click Next.
You should mention that this configures thin provisioning for that volume.
8. On the Specify the size of the virtual disk page in the Virtual disk size box,
type 1TB, and then click Next.
9. On the Confirm selections page, click Create.
10. On the View results page, wait until the creation is completed. Make sure
that the Create a volume when this wizard closes check box is selected,
and then click Close.
11. In the New Volume Wizard, on the Before you begin page, click Next.
12. On the Select the server and disk page, under Disk, click Simple vdisk
virtual disk, and then click Next.
13. On the Specify the size of the volume page, type 500GB click Next to
confirm the default selection.
14. On the Assign to a drive letter or folder page, click Next to confirm the
default selection.
15. On the Select file system settings page, in the File system drop-down list,
select NTFS, in the Volume label box, type Simple Volume, and then click
Next.
16. On the Confirm selections page, click Create.
17. On the Completion page, wait until the creation is completed, and then
click Close.
18. Use Windows Explorer to verify that E Drive has 500GB.
Note: You have created 500GB thin provisioning disk
Add Additional 1. Under Storage Pools, click StoragePool1.
Physical Disk and 2. In the PHYSICAL DISKS pane, and then in the TASKS drop-down list, click
Assign a Hot Spare
Add Physical Disk.
Extend Virtual Disk 3. In the Add Physical Disk Wizard, tick Physical Disk 3 and 4 and assign
Extend Volume Physical Disk 4 as Hotspare.
4. Click OK
1. In the VIRTUAL DISKS pane, select Simple vDisk and select Extend Virtual
Disk.
2. Type 2 TB
1. Under Storage Pools, click Volumes
2. Right click E:\ Volume and select Extend Volume
3. The maximum size is now 2TB. Extend to 1 TB and click OK
4. Use Windows Explorer and verify that E Drive has 1 TB.
37
Lab 12: Data Deduplication
Virtual Machines: RED-DC01, RED-SVR02
Username: Redcloud\administrator
Password: P@ssw0rd
Lab Objective: At the end of this lab, students will be able configure data
deduplication
Data deduplication identifies and removes duplications within data without compromising its integrity
to achieve the ultimate goal of storing more data while concurrently using less physical disk space.
Data integrity and recoverability are maintained in a process that involves evaluating checksum results
and other algorithms. Data deduplication is highly scalable, resource efficient, and nonintrusive. It can
run on dozens of large volumes of primary data concurrently without affecting other workloads on the
server. Low impact on the server workloads is maintained by throttling the CPU and memory resources
that are consumed. Using data deduplication jobs, you can schedule when data deduplication should
run, specify the resources to deduplicate, and tune file selection.
After the feature is installed, you can enable data deduplication on a per volume basis. Each volume
must meet the following requirements:
Volumes must not be a system or boot volume. Deduplication is not supported on volumes
where the operating system is installed.
Volumes may be partitioned by using master boot record (MBR) or GUID partition table (GPT)
format, and must be formatted by using the NTFS file system. The new Resilient File System
(ReFS) file system is not supported for use on a data deduplication volume.
Volumes must be exposed to Windows as non-removable drives, that is, no USB or floppy
drives.
Volumes can be on shared storage, such as a Fibre Channel or Serial Attached SCSI (SAS) array,
or an iSCSI storage area network (SAN).
Cluster Shared Volumes (CSV) volumes are not supported.
You should consider using de-duplication for the following areas:-
File Shares
Software Development shares
Virtual Hard disk (VHD) libraries
Intro Lab12-Data Deduplication https://vimeo.com/50126600
Answer Lab12-Data Deduplication https://vimeo.com/50377625
Task Detail step
Mount Software ISO
1. Using Hyper-V Manager snap-in, select RED-SVR02 Virtual Machine and
38
Task Detail step
select Settings
2. Go to DVD Drive and mount image file “C:\VM\Software.iso”
3. Click OK
4. Connect to RED-SVR02 Virtual Machine.
5. Open File Explorer and create a folder in E:\TestFolder
6. Then, go to D Drive (DVD ROM) and copy entire files and folder to
E:\TestFolder
7. Create another folder in E:\TestFolder\Duplicate.
8. Then, go to D Drive (DVD ROM) and copy entire files and folder to
E:\TestFolder\Duplicate
Install 2. Log on to RED-SVR02 with a username of Redcloud\Administrator and
Deduplication Roles password of P@ssw0rd.
Enable Data 3. In Server Manager, click Add roles and features.
Deduplication 4. In the Add Roles and Features Wizard, on the Before you begin page, click
Next.
5. On the Select installation type page, click Next.
6. On the Select destination server page, make sure that Select server from the
server pool is selected, and then click Next.
7. On the Select server roles page, expand File And Storage Services, expand
File and iSCSI Services, click Data Deduplication check box, and then click
Next.
8. On the Select features page, click Next.
9. On the Confirm installation selections page, click Install.
10. When installation is complete, click Close.
1. On RED-SVR02, in Server Manager, in the navigation pane, click File and
Storage Services.
2. In the File and Storage Services pane, click Volumes.
3. In the Volumes pane, right-click E:, and then in the drop-down list, select
Configure Data Deduplication.
4. In the Allfiles (E:\) Deduplication Settings dialog box, select the Enable data
deduplication the check box, in the Deduplicate files older than (in days)
box, type 0, and then click Set Deduplication Schedule.
5. In the RED-SVR02 Deduplication Schedule dialog box, click Enable
throughput optimization, in the Start time drop-down list, select the start
39
Task Detail step
time after 10 (from current time), and then click OK.
6. In the (E:\) Deduplication Settings dialog box, click OK.
View Deduplication 1. On RED-SVR02, in Server Manager, in the navigation pane, click File and
Rate Result Storage Services.
2. In the File and Storage Services pane, click Volumes.
3. View E Drive check Deduplication rate and savings. Wait till after 10 minute
and click Refresh.
Deduplication Rate: 36%
Deduplication Saving: 1.73 GB
To learn more about virtualization, please feel free to join our virtualization user group (MVUG):-
https://www.facebook.com/groups/mvuggroup/
40
Congratulations, you have successfully completed the Windows Server 2012, virtual lab which was made
possible by Redynamics Asia Systems Management.
Redynamics Asia is a pure-play Private Cloud, Systems Management and Virtualization specialist serving
the South East Asian region, focusing on providing consultative, deployment and training services.
Redynamics Asia Sdn Bhd is the only pure-play Microsoft System Center and Hyper-V specialist in all
Asia. Its key strengths are its industry-leading technical team, as evidenced by the numerous awards
received on a company and individual level.
With team members ranging from MVPs and VTS Redynamics are often invited by Microsoft to deliver
deep dive technical events, product awareness and partner trainings on System Center and
Virtualization in Malaysia, Singapore, Indonesia, Thailand, Vietnam and Philippines. Redynamics Asia is
the premier Microsoft Partner for Desktop Management, Systems Management, Datacenter Monitoring
and Private Cloud solutions in the region.
Being a specialist in Private Cloud, Systems Management and Virtualization sees the team research,
consult and develop solutions on a daily basis. This involves studying the underlying architecture of
technologies and customizing products accordingly. Redynamics works closely with the Microsoft
Product Teams to exchange information and provide feedback on BETA and actual product release.
For further information regarding services on training, Systems Management, Private Cloud or
Virtualization please feel free to contact our specialist at:
Redynamics Asia Systems Management
Block B, Suite 10-02,
Phileo Damansara 1
No. 9, Jalan 16/1
46350 Petaling Jaya
Selangor
Tel: 603 – 7957 7228
Fax: 603 – 7957 1228
Email: [email protected]
www.redynamics.com
Thank you
41