Windows Server 2012 LabExer

Published on July 2016 | Categories: Documents | Downloads: 74 | Comments: 0 | Views: 558
of 7
Download PDF   Embed   Report

Windows Server 2012 LabExer

Comments

Content

Yung Chou, http://aka.ms/yungchou, @yungchou

Hands-on Lab Setup Guide
In this lab, you will have an opportunity to complete the following exercises to get started creating a
virtualized lab environment for testing your own Private Cloud with Windows Server 2012 and Hyper-V:




Exercise 1: Installing Windows Server Hyper-V in a Dual-Boot Configuration
Exercise 2: Provisioning a New Virtual Machine
Exercise 3: Restore Your Boot Loader (Optional)

Resource links:




Windows Server 2012: http://aka.ms/8
Microsoft Virtual Academy: http://aka.ms/va
Free ebooks: http://aka.ms/free

Lab Configuration
System Requirements
To complete this lab, you will need a minimum of one computer running Windows Vista or later with the
following hardware configuration:






x64 compatible processor with Intel-VT or AMD-V technology
4 GB RAM
60 GB of free disk space on drive C:
An available USB port
At least one disk without encryption

NOTE: Before beginning this lab, please confirm that your computer is configured with hardware
virtualization technology and hardware memory protection BOTH ENABLED. To confirm these settings,
you may need to shutdown and reboot your computer into BIOS Setup.

Downloaded Required Content
1. Create destination folders for downloading files, for example c:\images and c:\images\base.
2. Go to http://aka.ms/8 and download the Windows Server 2012 ISO image and VHD from, and
place both the ISO and the VHD files in c:\Images.
3. Rename the VHD file to BootServer2012RTM.vhd and make a copy of the file and place it in
c:\images\base as Server2012RTM.vhd.

Page 1 of 7

Yung Chou, http://aka.ms/yungchou, @yungchou

Exercise 1: Installing Windows Server 2012 RC in a Dual-Boot
Configuration
In this exercise, you will add a Windows Server boot choice to your existing operating system
installation. This dual-boot configuration will leverage the native Boot-to-VHD capability of Windows
Vista and later operating systems, which permits a computer to boot from a VHD (virtual hard disk) file
as an alternate boot device. The steps in this exercise are not intended to disrupt existing operating
system files.
NOTE: To complete this exercise, you must confirm the following items for your computer to ensure
compatibility with a dual-boot configuration:






Is your computer currently running Windows 7 or later? If NO, do not continue with this lab
until you have upgraded to Windows 7, or Windows 8.
Do you have full Administrator rights to your currently installed operating system? If NO, do not
continue with this lab until you have gained full Administrator rights.
Do you have hard disk encryption or other pre-boot security enabled on your computer? If YES,
do not continue with this lab until you have removed hard disk encryption or other pre-boot
security.
Have you confirmed that hardware virtualization technology and memory protection are both
enabled in your computer’s BIOS setup? If NO, do not continue with this lab until you have
confirmed these settings.

Begin this task logged into your computer as a user with local Administrative rights.

Page 2 of 7

Yung Chou, http://aka.ms/yungchou, @yungchou

Task 1.1: Enable a Dual-Boot Configuration for Windows Server
1. Right-click on Computer and select Manage. If User Account Control prompt appears, click Yes.

2. Select Disk Management and wait for the list of drives to refresh. Once the lists of drives
appears in the middle pane, Right-click Disk Management and select Attach VHD.

3. Enter c:\images\bootServer2012RTM.vhd
4. The VHD will be mounted and assigned a drive letter. In my case, it is drive F: [note the drive
letter that is assigned to your mounted VHD as you will use this in step 7].

Page 3 of 7

Yung Chou, http://aka.ms/yungchou, @yungchou

5. Right-click on the Command Prompt icon on your Start Menu and select Run As Administrator.
If prompted to confirm this operation via User Account Control, select Yes. This will launch a
new command prompt window with administrative rights.
6. IMPORTANT: To save an exported backup of your boot loader configuration, type the following
command and press ENTER.
↪ bcdedit /export BCDBackup.bak
7. In the command prompt window, typing the following (replace [drive] with your drive letter)
and then pressing ENTER:
↪ bcdboot [drive]:\windows
(i.e. bcdboot f:\windows)
8. To test your new dual-boot configuration, restart your computer and select the “Windows
Server 2012” boot option.

Task 1.2: Configure your new Windows Server Operating System (OS)
1. Upon restarting your computer, you will be presented with two operating system boot choices:
(1) your originally installed operating system, and (2) your new operating system boot choice for
“Windows Server 2012”. Select Windows Server 2012 to boot from your newly added
operating system boot choice.
2. During the first-time boot sequence, Windows Server will attempt to locate the appropriate
device drivers for your computer hardware. Depending on your computer hardware
configuration, one or more reboots may be required during this initial configuration. Each time
your computer reboots, select Windows Server 2012 as your boot choice.
3. When the Settings page appears and asks you for the Product Key, click Skip.
4. When prompted to “Please read the license terms”, check the “I accept the license terms for
using Windows” checkbox, and click Accept.
5. On the Region and Language screen, click Next.
6. Enter and confirm an Administrator account password, and click Finish.
Password: ______________________________________________________

Task 1.3: Login and Enable the Hyper-V Role on your new Windows Server
1. Enter CTRL+ALT+DEL and enter your Administrator Password to login. Once logged in, you
should be in the Server Manager Dashboard.
2. Click Add Roles and Features
3. On the Before you begin page, click Next.
4. On the Select installation type page, verify that Role-based or feature-based installation is
selected, and click Next.
5. On the Select destination server page, verify that your one and only server is selected, and click
Next.
Page 4 of 7

Yung Chou, http://aka.ms/yungchou, @yungchou

6. On the Select server roles page, check the box next to Hyper-V, and on the resulting pop-up
box, click Add Features. Then click Next.
7. On the Select features page, click Next.
8. On the Hyper-V page, click Next.
9. On the Create virtual switches page, select any NICs that you may want to use for virtual
machines to gain external network access (not required for today’s labs). Click Next.
10. On the Virtual Machine Migration page, click Next.
11. On the Default Stores page, change the two default paths to “D:\Images”. Click Next.
12. On the Confirm installation selections page, check the Restart the destination server
automatically if required checkbox. Click Yes.
13. Click Install. Let the machine reboot (may restart more than once).
14. After logging on, you should see the Installation progress page pop up again, which should now
say “Installation succeeded”. Click Close.

Task 1.4: Configure a Hyper-V Virtual Network Switch
1. Launch the Hyper-V Manager tool. This tool can be found on your Start Screen (move your
mouse to the bottom left corner and click the mini start screen that pops up), or by searching
for “Hyper-V Manager”. (Recommendation: After the Hyper-V Manager is launched, right click
on it in the taskbar and select “Pin this program to taskbar” for future access from the desktop.)
2. After launching Hyper-V Manager, select your server in the left navigation pane. Your server
will be named “WIN-“ followed by a randomly generated identifier.
3. On the right in the Actions page, click Virtual Switch Manager….
4. In the Virtual Switch Manager dialog box, select the New virtual network switch option located
in the left pane under your Virtual Switches list.
5. To the right, under Create Virtual Switch, select Internal, and then click Create Virtual Switch.
6. In the right pane in the Name field, enter “IT Camp Lab”, and click OK.
NOTE: To be able to see the OK button at the bottom, you may need to adjust your screen
resolution to a minimum resolution of 1024 x 768.
7. Repeat steps 3 – 5 to create another virtual switch named “IT Camp Heartbeat”.
You have now configured a basic Windows Server Hyper-V virtualization environment as a new
operating system boot choice on your computer.

Exercise 2: Provisioning a New Virtual Machine (Optional)
In this exercise, you will provision and install a new Windows Server 2012 RC virtual machine (VM) on
the Windows Server Hyper-V virtualization environment that you configured. This exercise is optional.
Do it if you want to get familiar with installing a completely new virtual machine from scratch.
Begin this task logged into your Windows Server OS as Administrator.
Page 5 of 7

Yung Chou, http://aka.ms/yungchou, @yungchou

Task 2.1: Define a New Virtual Machine for Windows Server 2012
1. If it’s not already running, launch the Hyper-V Manager tool. This tool can be found on your
Start Screen (move your mouse to the bottom left corner and click the mini start screen that
pops up), or by searching for “Hyper-V Manager”.
2. After launching Hyper-V Manager, select your server in the left navigation pane. Your server will
be named “WIN-“ followed by a randomly generated identifier.
3. To the right in the Actions pane, click New, and select Virtual machine…
4. On the Before You Begin page, click Next.
5. On the Specify Name and Location page, next to the Name: field, type “Windows Server 2012”
6. Click the Store the virtual machine in a different location checkbox, and for the location, type
“D:\Images”. Click Next.
7. Click the Next button.
8. On the Assign Memory page, in the Startup memory: field, type “512”. Click Next
9. On the Configure Networking page, in the Connection: dropdown, select IT Camp Lab. Click
Next.
10. On the Connect Virtual Hard Disk page, leave the default to create a new dynamically expanding
hard disk called “Windows Server 2012.vhdx” in the “D:\Images\Windows Server 2012\Virtual
Hard Disks\” folder. Click Next.
11. On the Installation Options page, select the Install an operating system from a boot CD\DVDROM option, and under Media, click browse to search for and select the Windows Server 2012
RC .ISO file that you downloaded earlier and should have copied to your D:\Images folder
(Probably named “9200.16384.WIN8_RTM.120725-1247_X64FRE_SERVER_EVAL_EN-USHRM_SSS_X64FREE_EN-US_DV5.ISO”). Click Next.
12. On the Completing the New Virtual Machine Wizard page, click Finish.

Task 2.2: Start and Connect to the New Virtual Machine
1. Back in Hyper-V Manager, right-click the Windows Server 2012 machine (in the middle pane
under the Virtual Machines list), and select Start. In a few seconds, the state of the virtual
machine will now reflect a status of Running.
2. Right-click the Windows Server 2012 machine and select Connect.
3. Reposition or maximize the Virtual Machine Connection window that appears so that you can
see the entire machine. You should see the machine booting into the installation.

Task 2.3: Install Windows Server 2012
1. Perform the installation, making sure to choose the “Server with a GUI” option (and not “Server
Core Installation”) when selecting the operating system to install.
2. Choose Custom Install, select the lone disk available, and complete the installation.
NOTE: When logging in to your new Windows Server 2012 virtual machine, press the Ctrl-Alt-End key
sequence to send the Ctrl-Alt-Del key sequence to the virtual machine via the Virtual Machine
Connection software.
Page 6 of 7

Yung Chou, http://aka.ms/yungchou, @yungchou

Exercise 3: Restore Your Boot Loader (Optional)
If you are done with all labs and would like to remove the Windows Server 2012 boot option from your
computer and restore it to its original state:
1. Boot to your original operating system and log in with an account that has local administrative
rights.
2. Right-click on the Command Prompt icon on your Start Menu and select Run As Administrator.
If prompted to confirm this operation via User Account Control, select Yes. This will launch a
new command prompt window with administrative rights.
3. Navigate to the C:\Images folder by typing the following and then pressing ENTER:
↪ cd c:\Images
4. To import the previously exported backup of your boot loader configuration, type the following
command and press ENTER.
↪ bcdedit /import BCDBackup.bak
Now your computer is back to the way it was. Feel free to delete the C:\Images folder and all of its
contents, or save them for another day.

Page 7 of 7

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close