Standalone Hyper-V Server Part 3 – Windows Server and Prerequisites

At this point, you should have a server with a raid set up for your OS, and the BIOS properly configured to boot as UEFI. Now, it is time to load up a flash drive, install the OS, and install all of the prerequisite windows server roles and features.

To make a bootable flash drive, you just format the drive with fat32 partition type and extract a windows server install ISO onto it using 7zip. I would also recommend downloading and installing all of the updated drivers for all of your hardware. At the very least, grab the newest raid driver since you should update them before install.

Boot into setup from flashdrive using EFI shell. If you have properly formatted your flash drive (fat32), and have your BIOS set to UEFI boot, it should automatically boot. If it does not, you can use the boot option for your EFI Shell. Once in UEFI shell, you can open the file system on your flash drive, which is probably 'fs0', and run the file '\EFI\BOOT\BOOTx64.EFI' to start the setup manually.

Once in the setup, select Server 2012 R2 Core Edition, and continue through the install steps until you get to the disk selection. Before formatting a disk, click 'Load Driver' and load your raid drivers. Then, select the OS disk and click 'New'. This will automagically make all of your default partitions. Unfortunately, it doesn't make them with the most efficient allocation unit size, so we will go into command line and remake the OS partition. 

  1. Hit Shift+F10 to open a command prompt
  2. Use diskpart to remove the current OS partition
  3. Use diskpart to make a new partition from the freed up space.
  4. Use the format command to set it up with the correct allocation unit size.

Once the partition(s) areconfigured properly, continue the install and boot into the OS.

Now that you are booting into the OS, we'll get the drivers sorted out. First, install all of the drivers you downloaded from the manufacturer(s) and put on your flash drive. Then, we'll make sure that installed all of the necessary drivers. Download DeviceManagement PowerShell Module at the Technet Powershell Gallery and copy it to c:\Windows\System32\WindowsPowerShell\v1.0\Modules. Then run a command to list all drivers that do not have a valid driver.

get-device | ? InstallState -like "*FAIL*"

If the get-device command is showing drivers in the FAIL state, you are going to have to hunt them down. The Hardware ID information can turn up a lot of information on the device with a quick google search.

Now,  use the sconfig utility from the cmd prompt to do basic configuration.

  • Enable remote desktop w/ NLA
  • Fix Date/Time
  • Activate Windows
  • Do windows updates
  • Join your Windows Domain
  • Move the PC to correct OU and updated GPOs

Install the Hyper-V Role

Install-WindowsFeature Hyper-V

Install-WindowsFeature Hyper-V-PowerShell

Install The Deduplication feature if you plan to deduplicate any of your attached storage.

Install-WindowsFeature FS-Data-Deduplication

Install the Multipath IO features if you will have multiple paths to your storage.

Install-WindowsFeature Multipath-IO

Install windows updates for the new roles with sconfig again and you are ready to start configuring the storage and networking.

Project Tags: