Preparing a Windows 2008 Server to be used as an openQRM Hyper-V Host

From openQRM
Revision as of 10:59, 30 October 2020 by Stvsyf (talk | contribs) (→‎Known Bugs)

Hyper-V PowerShell cmdlet

http://pshyperv.codeplex.com/releases

In the Server configuration wizard, enable .NET

1 Windows 2008 Hyper-V Server.png

In the Server Roles window, start Hyper-V

2 Windows 2008 Hyper-V Server.png

Download Hyper-V cmdlet and extract the files.

3 Windows 2008 Hyper-V Server.png

Install the cmdlet. Be sure to run the terminal as Administrator

4 Windows 2008 Hyper-V Server.png

When a Registry Editor warning pops up, click 'Yes'

6 Windows 2008 Hyper-V Server.png

If you get the message pictured here after installation, Close PowerShell and proceed:

7 Windows 2008 Hyper-V Server.png

Navigate to the Hyper-V folder in your modules directory. Open the properties menu for every item in this folder, click 'unblock' in all of them.

8 Windows 2008 Hyper-V Server.png

Import the module and test it's function. This is done by opening PowerShell and inputting:

Import-Module 'C:\Program Files\Modules\Hyperv\Hyperv.psd1

9 Windows 2008 Hyper-V Server.png

Create a profile to auto start the cmdlet:

New-Item -path $profile -type file -force

10 Windows 2008 Hyper-V Server.png

Navigate to your newly created profile and open it in Notepad

Insert this line into the document and save it:

Import-Module 'C:\Program Files\Modules\Hyperv\Hyperv.psd1'

11 Windows 2008 Hyper-V Server.png

Navigate to the Global Profile and open it in Notepad. Insert and save this line:

Import-Module 'C:\Program Files\Modules\Hyperv\Hyperv.psd1'

12 Windows 2008 Hyper-V Server.png

Known Bugs

  1. Hyper-V 2008 does not support all CPUs. Refer to Windows Support

There is a known workaround with the AMD CPU AVX bug:

If you receive this error message:

13 Windows 2008 Hyper-V Server.png

Navigate to the Processor settings for that respective VM and change the values to the following:

14 Windows 2008 Hyper-V Server.png