0559.html 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Try Out Microsoft Hyper-V Server Hypervisor in VirtualBox</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  7. <script type="text/javascript">
  8. $(function(){
  9. $('textarea').each(function(i,e){
  10. theTextarea = $(this);
  11. theTextarea.height((theTextarea[0].scrollHeight-5) +'px');
  12. });
  13. $('li').each(function(i,e){
  14. var uuid = 'li_' + Math.floor(Math.random() * Math.floor(1000000)).toString() + '_' + i.toString();
  15. $(this).contents().wrap('<span id="'+ uuid +'"><label for="cb_'+ uuid +'"></label></span>');
  16. $(this).prepend('<input type="checkbox" class="completeBox" id="cb_' + uuid +'" rel="'+ uuid +'" />')
  17. });
  18. $('code,div.codeBlock,textarea.codeBlock').each(function(i,e){
  19. theElement = $(this);
  20. var lines = theElement.html().split("\n");
  21. theElement.empty();
  22. for(l=0;l<lines.length;l++){
  23. if($.trim(lines[l]) != '' && $.trim(lines[l]).substr(0,1) != '#' && $.trim(lines[l]).indexOf(' #') == -1 && lines[l].substr(0, 4).toUpperCase() != 'REM '){
  24. theElement.append('<input type="image" src="images/clipboard.png" value="" class="copy-text" rel="copy_'+ i +'_'+ l +'" data-clipboard-text="'+ lines[l].replace(/"/g, '&quot;') +'" /><span id="copy_'+ i +'_'+ l +'">'+ lines[l] +'</span>');
  25. } else {
  26. theElement.append(lines[l]);
  27. }
  28. }
  29. });
  30. $(document).on('click','input.copy-text',function(){
  31. theButton = $(this);
  32. $('input.copy-text').attr('src','images/clipboard.png');
  33. $('span.copy-animation,span.copy-animation-ps').removeClass('copy-animation copy-animation-ps');
  34. try {
  35. if($('#'+ theButton.attr('rel')).parent('div').hasClass('PS')){
  36. $('#'+ theButton.attr('rel')).addClass('copy-animation-ps');
  37. } else if($('#'+ theButton.attr('rel')).parent('div').hasClass('CMD')){
  38. $('#'+ theButton.attr('rel')).addClass('copy-animation-cmd');
  39. } else {
  40. $('#'+ theButton.attr('rel')).addClass('copy-animation');
  41. }
  42. navigator.clipboard.writeText(theButton.data('clipboard-text').replace(/<[^>]*>?/gm, ''));
  43. theButton.attr('src','images/clipboard_active.png');
  44. } catch(err) {
  45. }
  46. return false;
  47. });
  48. $(document).on('click','input.completeBox',function(){
  49. theBox = $(this);
  50. $('#'+ theBox.attr('rel')).addClass('strikethrough');
  51. theBox.prop('disabled',true);
  52. theBox.parent('li').prevAll().each(function(i,e){
  53. theLI = $(this);
  54. if(theLI.find('input[type=checkbox]').not(':checked')){
  55. $('#'+ theLI.find('input[type=checkbox]').attr('rel')).addClass('strikethrough');
  56. theLI.find('input[type=checkbox]').prop('checked',true).prop('disabled',true);
  57. }
  58. });
  59. });
  60. if(window.self !== window.top){
  61. window.parent.$('iframe.stepsFrame').height((this['scrollingElement']['scrollHeight']+20) +'px');
  62. }
  63. });
  64. </script>
  65. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  66. </head>
  67. <body>
  68. <div id="gridContainer">
  69. <div class="topMargin"></div>
  70. <div id="listName" class="topMargin">
  71. <h1>Try Out Microsoft Hyper-V Server Hypervisor in VirtualBox</h1>
  72. </div>
  73. <div></div>
  74. <div id="content">
  75. <p>NOTE: This is a helpful exercise to get familiar with the Hyper-V user interface and terminology but is not recommended for production use.</p>
  76. <ol>
  77. <li>Download the Microsoft Hyper-V Server .iso file <a href="https://archive.org/download/en_microsoft_hyper-v_server_2019_updated_sept_2019_x64_dvd_18bf011c/en_microsoft_hyper-v_server_2019_updated_sept_2019_x64_dvd_18bf011c.iso" target="_blank">Download</a></li>
  78. <li>Launch Virtualbox</li>
  79. <li>Create a New VM by selecting Machine &gt; New
  80. <p>Name: Hyper-V Server<br />
  81. Machine Folder: C:\VMs<br />
  82. Type: Microsoft Windows<br />
  83. Version: Windows 2019 (64-bit)<br />
  84. Memory Size: 8192 MB<br />
  85. Hard disk: Create a virtual hard disk now</p>
  86. </li>
  87. <li>Click Create</li>
  88. <li>On the Create Virtual Hard Disk dialog
  89. <p>Name the virtual disk image Hyper-V Server.vdi<br />
  90. File size: 500 GB<br />
  91. Hard disk file type: VDI<br />
  92. Storage on physical hard disk: Dynamically Allocated</p>
  93. </li>
  94. <li>Click Create</li>
  95. <li>Select the VM and Click Settings</li>
  96. <li>Select System &gt; Processor</li>
  97. <li>Give the VM at least 2 processors</li>
  98. <li>Check the Enable Nested VT-x/AMD-V</li>
  99. <li>Select Display</li>
  100. <li>Slide the Video Memory to 128 MB</li>
  101. <li>Select Network</li>
  102. <li>Set the attached to dropdown to Bridged Adapter</li>
  103. <li>Select Storage</li>
  104. <li>Click on the CD-ROM drive</li>
  105. <li>Select the disc dropdown to the right &gt; Choose a virtual optical disc file...</li>
  106. <li>Browse to and select the downloaded Hyper-V Server .iso file</li>
  107. <li>Click OK</li>
  108. <li>Click OK to accept the settings</li>
  109. <li>Make sure the Hyper-V Server VM is selected and click Start &gt; Normal</li>
  110. <li>Click Next</li>
  111. <li>Click Install Now</li>
  112. <li>Check the I accept box &gt; Click Next</li>
  113. <li>Click Custom (advanced) &gt; Click Next</li>
  114. <li>Wait for Windows to copy files &gt; Click Restart now</li>
  115. <li>When prompted, Press Enter to set the Administrator password</li>
  116. <li>Enter the password and confirm &gt; Press Enter</li>
  117. <li>Press Enter to clear the success message</li>
  118. <li>At the Server Configuration (sconfig.cmd) menu, Type 2 &gt; Press Enter</li>
  119. <li>Enter hyperv-vm as the new host name</li>
  120. <li>Select Yes to reboot for the host name change to take effect</li>
  121. <li>Select Input &gt; Keyboard &gt; Ctrl-Alt-Del</li>
  122. <li>Enter the Administrator password &gt; Press Enter</li>
  123. <li>At the Server Configuration menu, Type 6 &gt; Press Enter</li>
  124. <li>Type R for Recommended updates only &gt; Press Enter</li>
  125. <li>Type A for All updates &gt; press Enter</li>
  126. <li>Select Yes to reboot to complete applying updates</li>
  127. <li>Select Input &gt; Keyboard &gt; Ctrl-Alt-Del</li>
  128. <li>Enter the Administrator password &gt; Press Enter</li>
  129. <li>At the Server Configuration menu, Type 14 &gt; Press Enter</li>
  130. <li>Run the following commands at the command prompt
  131. <div class="codeBlock CMD"># start powershell<br />
  132. powershell<br />
  133. # enable remote powershell<br />
  134. Enable-PSRemoting<br />
  135. # enable credssp server<br />
  136. Enable-WSManCredSSP -Role server</div>
  137. </li>
  138. <li>Type Y to confirm enabling CredSSP &gt; Press Enter
  139. <p><em>NOTE: You need to have a user on the Hyper-V Server VM with the same username and password as the user running the Hyper-V Manager GUI. To create a user other than the built in administrator, run sconfig and select option 3 to create a new user and set the password</em></p>
  140. </li>
  141. <li>On the VM host (or another Windows PC to manage Hyper-V), right click the Start button &gt; Windows PowerShell (Admin)</li>
  142. <li>Run the following PowerShell commands
  143. <div class="codeBlock PS"># start the winrm service and set it to startup automatically<br />
  144. Set-Service -Name WinRM -Status Running -StartupType Automatic<br />
  145. # add hyperv-vm.local to trusted hosts<br />
  146. Set-Item WSMan:\localhost\Client\TrustedHosts -Value &quot;hyperv-vm.local&quot;</div>
  147. </li>
  148. <li>Type Y to confirm adding the trusted host</li>
  149. <li>Close the PowerShell window</li>
  150. <li>Right click the Start menu &gt; Type gpedit.msc &gt; Press Enter</li>
  151. <li>Expand Computer Configuration &gt; Administrative Templates &gt; System &gt; Credentials Delegation</li>
  152. <li>Double click Allow delegating saved credentials with NTLM-only server authentication</li>
  153. <li>Changed the status to Enabled &gt; Click the Show... button next to Add servers to the list</li>
  154. <li>Type wsman/hyperv-vm.local &gt; Click OK</li>
  155. <li>Click Apply and then OK</li>
  156. <li>Close out of the open Group Policy Editor window</li>
  157. <li>Click the Start button &gt; Search feature &gt; Click Turn Windows features on or off</li>
  158. <li>Expand Hyper-V &gt; Hyper-V Management Tools &gt; Select Hyper-V GU Management Tools &gt; Click OK</li>
  159. <li>Once Hyper-V Manager is installed click the Close button</li>
  160. <li>Click the Start button &gt; Search hyper &gt; Click Hyper-V Manager</li>
  161. <li>Click the Connect to Server... link in the top right</li>
  162. <li>Type hyperv-vm.local and press Enter</li>
  163. </ol>
  164. <p>CredSSP/Authentication info: <a href="https://docs.microsoft.com/en-us/windows-server/virtualization/hyper-v/manage/remotely-manage-hyper-v-hosts" target="_blank">https://docs.microsoft.com/en-us/windows-server/virtualization/hyper-v/manage/remotely-manage-hyper-v-hosts</a></p>
  165. </div>
  166. </div>
  167. </body>
  168. </html>