User Tools

Site Tools


virtualization:microsoft:hyper-v-checklist

Hyper-V Server 2012 Installation Checklist

FIXME This page is incomplete and needs editing and verification.

http://stephanco.blogspot.com/2013/07/preview-of-new-pshvm-all-powershell-all.html

This is a checklist to:

  • Install the free (core) Hyper-V Server 2012
  • Configure the virtualization host
  • and build your first VM
  1. Build your hardware
  2. Enable virtualization in the BIOS
  3. Download the free Hyper-V Server file named “HyperV_Server_2012_FREE.ISO”
  4. Burn your ISO to a DVD
  5. Boot to the DVD
  6. Choose the language and such then click “Next”
  7. Click “Install Now”
  8. Choose Core = Free (option one)
  9. Agree to the Licensing terms, check the box for “I Accept” and click “Next”:
  10. Choose “Custom: Install Windows only (advanced)”
  11. If you want to partition the drive click on “Drive Options (advanced)” otherwise click “Next”
  12. You should now be at the screen where the installation takes place. This takes some time.
  13. Once the server has booted up you will need to set the default Administrator password.
  14. You will be greeted by SConfig (sconfig.exe)
    1. Choose Option 4 to configure Remote Management
      1. Enter Selection: 1 to Enable Remote Management
      2. Enter Selection: 3 to Allow Remote Machines to Ping server, click Yes
      3. Enter Selection: 4 to Return to Main Menu
    2. Choose Option 7 to configure Remote Desktop Settings
      1. Type E for (E)nable and press Enter
      2. Enter Selection: 2 to allow any version of Remote Desktop to connect. You will be returned to the Main Menu.
    3. Choose Option 9 to open the Date and Time GUI
      1. Configure the date and time as you would Server 2008 R2. You will be returned to the Main Menu.
    4. Choose Option 8 to configure Network Settings
      1. It will only list the NICs that are connected to a network
      2. Select the Index# for the adapter you want to configure
      3. You will be shown Current Settings
      4. Select Option 1 to enter IP Address
        1. Enter S for (S)tatic IP address and press Enter
        2. Enter the new IP Address and press Enter
        3. Press Enter again to accept the default Subnet of /24
        4. Enter the new Static Gateway IP and press Enter. You will be returned to the Network Adapter Settings Menu.
        5. Select Option 2 to enter DNS IP Addresses
          1. Set the Preferred DNS server IP and press Enter. You will get a confirmation popup. Press OK to continue.
        6. Set the Alternate DNS server IP and press Enter. You will get a confirmation popup. Press OK to continue. You will be returned to the Network Adapter Settings Menu.
        7. Select Option 4 to Return to the Main Menu.

:!: There is no need to install .Net 4.0 as it is already part of the base install.

In the black CMD/DOS window that is opened by default, enter the following to configure some standard settings (these are useful and recommended):

:Disable TCPChimney
netsh int tcp set global chimney=disabled

:Disable Firewall
netsh advfirewall set allprofiles state off

:!: This will disable the firewall and allow all traffic. The firewall is on by default and will prevent you from doing anything remotely until you either turn it off or put in exceptions. This will be updated to just allow necessary traffic for better security.

:!: The next step is only needed if you plan on monitoring your virtualization host with SNMP monitoring software.

:Install SNMP-Services
powershell.exe -command "Add-WindowsFeature SNMP-Service"
  1. Choose Option 2 to configure the server Hostname
    1. Enter the virtualization host hostname and press Enter
    2. You will be prompted to Reboot the server. Click Yes.

Add the Virtualization Host to the Domain

:!: While not mandatory, this eliminates most security and access related issues.

Again, in SConfig:

  1. Select Option 1 to Join the virtualization host to a domain
    1. Press D for (D)omain
    2. Enter the full Domain Name and press Enter
    3. Enter the Domain Administrator User Name and press Enter
    4. Enter the Domain Administrator Password and press Enter
      1. You will be prompted if you want to change the hostname, click No
      2. You will be prompted to Restart the machine, click Yes

Now you can map a drive to your virtualization host \\yourvhostname\C$ to get the installation files to your virtualization host (downloaded and unzipped).

  1. Make a directory on the root of called C:\ISO and copy your installation OS (.iso) file into it
  2. Make a directory on C:\virtualservers (if you setup a datastore drive for the VM's just change the C: to D:)
  3. Copy the unzipped folder “PSHVM” to C:\pshvm
  4. Connect via RDP to the new virtualization host
  5. at the DOS prompt, enter C:\PSHVM\m.bat to load the Hyper-V Manger menu
    1. Choose OK next to the A43 File Manager
    2. Browse to C:\PSHVM and then run the file named vcredist_x86.exe to install the runtime needed for “VMConnect (RDP to VM's)
    3. Next you will need to choose the Powershell shortcut
    4. When it opens, you will need to type Set-ExecutionPolicy unrestricted and press Enter
    5. Answer Yes to allow the change
    6. If you do not do either of these RDP will not work and you will not be able to use the Hyper-V Manager

Start the File Manager at Login

Use the regedit edit shortcut and add a string value to:

HKLM\software\microsoft\windows\current version\run

called File Manager that points to c:\PSHVM\a43\a43.exe.

Show Quick Status Report at Login

In regedit, you can add a string value called Welcome that points to C:\PSHVM\welcome.bat.

Hyper-V Manager

Choose the shortcut called Hyper-V Manager.

:!: Once this opens you will notice a PowerShell window at the upper left. Leave this open. You can minimize it if you want but do not close it unless you want Hyper-V Manager to close.

To use it you just click the OK next to the item you want to perform. A PowerShell script will open in a new PowerShell prompt. Read and follow the instructions. Some items will open a GUI file explorer pop-up window, just use it like any other program that you have installed. If unsure, read the title of the pop-up window. Each of the scripts will pause then close and return to the menu above.

Now you have built the virtualization host, you need to configure it using PS Hyper-V Manager.

  1. Set the Virtual Machine and HardDisk paths for the virtualization host
  2. Create a vSwitch
  3. Create a new VM via questions and answers (assuming it is a windows OS)
  4. Start RDP to a VM
  5. Answer OS installation questions
  6. Set password
  7. Turn off firewall
  8. Set the IP address
  9. Enable RDP

Manage DVD/ISO for VM's

  1. Insert MS tools and then install them
  2. Reboot

Now you can RDP to the server once it comes up and continue configuration as needed.

Run an Inventory Report of the virtualization host and VM's to see if it is setup to your specs (RAM, vCPUs, etc.)

You now have a Hyper-V Server and a VM running on it.

virtualization/microsoft/hyper-v-checklist.txt · Last modified: 2013/08/07 11:20 by gcooper