Loading... <p>So, following are the steps to create a <u>Microsoft Hyper-V</u> VM running in VMware Workstation 8, but later I’ll show you how to do it in ESXi 5 as well:</p> <p>1. Create a New VM with version 8 hardware</p> <p><a href="https://www.crazycen.com/usr/uploads/2012/09/clip_image001.jpg"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="clip_image001" border="0" alt="clip_image001" src="https://www.crazycen.com/usr/uploads/2012/09/clip_image001_thumb.jpg" width="449" height="217" /></a></p> <p>2. Give it 4 GB RAM and 2 x vCPUs with about 80-100 GB disk space, depending upon how many VMs you wanted nested underneath Hyper-V.</p> <p>3. The instructions lead you to believe that you should pick a VMware ESX option as the guest OS... STOP! DON’T! Select Windows 2008 R2 x64.</p> <p><a href="https://www.crazycen.com/usr/uploads/2012/09/clip_image002.jpg"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="clip_image002" border="0" alt="clip_image002" src="https://www.crazycen.com/usr/uploads/2012/09/clip_image002_thumb.jpg" width="367" height="329" /></a></p> <p>4. When you are finished, make sure you add another NIC to the VM used as the Hyper-V virtual network,</p> <p>5. Under the settings of the VM > CPU, make sure you have the option to pass-through the Intel VT-x/EPT feature.</p> <p><a href="https://www.crazycen.com/usr/uploads/2012/09/clip_image003.jpg"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="clip_image003" border="0" alt="clip_image003" src="https://www.crazycen.com/usr/uploads/2012/09/clip_image003_thumb.jpg" width="376" height="190" /></a></p> <p>6. Make sure you have set the VM to boot from Windows 2008 R2 x64 media ISO.</p> <p>7. Before booting, you should edit the config file .vmx and add the parameter: <b>hypervisor.cpuid.v0 = “FALSE”</b></p> <p><a href="https://www.crazycen.com/usr/uploads/2012/09/clip_image004.jpg"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="clip_image004" border="0" alt="clip_image004" src="https://www.crazycen.com/usr/uploads/2012/09/clip_image004_thumb.jpg" width="378" height="316" /></a></p> <p>8. Now Boot and Install Windows 2008 R2 x64.</p> <p>9. Once finished, open up <b>Server Manager</b> and click “<b>Add Role</b>”.</p> <p><a href="https://www.crazycen.com/usr/uploads/2012/09/clip_image005.jpg"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="clip_image005" border="0" alt="clip_image005" src="https://www.crazycen.com/usr/uploads/2012/09/clip_image005_thumb.jpg" width="380" height="158" /></a></p> <p>10. Select and install the <b>Hyper-V</b> option. At this point, you will know if your system is working correctly and passing the <b>Intel EPT</b> feature, because if it doesn’t, you won’t be able to go past this point.</p> <p><a href="https://www.crazycen.com/usr/uploads/2012/09/clip_image006.jpg"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="clip_image006" border="0" alt="clip_image006" src="https://www.crazycen.com/usr/uploads/2012/09/clip_image006_thumb.jpg" width="387" height="148" /></a></p> <p>11. You’ll also have to select the network adapter used for the virtual network.</p> <p><a href="https://www.crazycen.com/usr/uploads/2012/09/clip_image007.jpg"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="clip_image007" border="0" alt="clip_image007" src="https://www.crazycen.com/usr/uploads/2012/09/clip_image007_thumb.jpg" width="399" height="165" /></a></p> <p>12. Now install <b>Hyper-V</b>, which will need a reboot.</p> <p>13. After it is completed, open <b>Server Manager</b> drill down to Hyper-V and connect to the local server.</p> <p><a href="https://www.crazycen.com/usr/uploads/2012/09/clip_image008.jpg"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="clip_image008" border="0" alt="clip_image008" src="https://www.crazycen.com/usr/uploads/2012/09/clip_image008_thumb.jpg" width="416" height="213" /></a></p> <p>14. Now create and install a virtual machine.</p> <p><a href="https://www.crazycen.com/usr/uploads/2012/09/clip_image009.jpg"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="clip_image009" border="0" alt="clip_image009" src="https://www.crazycen.com/usr/uploads/2012/09/clip_image009_thumb.jpg" width="428" height="304" /></a></p> <p>Once done, you should be able to use it as normal, albeit slow.</p> <p><b>Nesting Hyper-VM running ESXi 5</b></p> <p>Now, doing the same thing on ESXi 5 is a little trickier although some of the steps are the same.</p> <p>1. Before anything you need to place an entry in the /etc/vmware/config file found in the tech support mode on your ESXi 5. I enabled SSH through the security profile in the vSphere Client. Then used putty SSH into the ESXi system.</p> <p>2. From there I executed the following command which is needed to allow nested hypervisors :</p> <p># echo 'vhv.allow = "TRUE" ' >> /etc/vmware/config</p> <p>Notice the use of single and double quotes in the command-line</p> <p>3. Now create a virtual machine using version 8 hardware, 4GB (or as much as you can spare), 2 x vCPUs, 2 or more vNICs and a 100GB virtual disk.</p> <p>4. Before booting up the VM and installing Hyper-V we need to add two lines the virtual machines config file .vmx</p> <p>You can try this through the vSphere Client in the settings of the virtual machine > Configuration Parameters, whereas I had better luck doing it from command-line</p> <p><a href="https://www.crazycen.com/usr/uploads/2012/09/clip_image010.jpg"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="clip_image010" border="0" alt="clip_image010" src="https://www.crazycen.com/usr/uploads/2012/09/clip_image010_thumb.jpg" width="524" height="240" /></a></p> <p><a href="https://www.crazycen.com/usr/uploads/2012/09/clip_image011.jpg"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="clip_image011" border="0" alt="clip_image011" src="https://www.crazycen.com/usr/uploads/2012/09/clip_image011_thumb.jpg" width="520" height="241" /></a></p> <p>To add them using command-line move back in SSH > change into the directory where you Hyper-V VM is installed</p> <p># echo 'vhv.allow = "TRUE" ' >> /etc/vmware/config</p> <p>In my example the config file is called Hyper-V.vmx. Type the following commands:</p> <p># echo 'monitor.virtual_exec = "hardware" ' >> Hyper-V.vmx</p> <p># echo 'hypervisor.cpuid.v0 = "FALSE" ' >> Hyper-V.vmx</p> <p>5. Now back in the VM settings > <b>Option s</b> > <b>CPU/MMU Virtualization</b> make sure you have the option to pass the Intel EPT feature.</p> <p><a href="https://www.crazycen.com/usr/uploads/2012/09/clip_image012.jpg"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="clip_image012" border="0" alt="clip_image012" src="https://www.crazycen.com/usr/uploads/2012/09/clip_image012_thumb.jpg" width="517" height="318" /></a></p> <p>6. Now in the Options area > CPUID Mask click on <b>Advanced</b></p> <p><a href="https://www.crazycen.com/usr/uploads/2012/09/clip_image013.jpg"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="clip_image013" border="0" alt="clip_image013" src="https://www.crazycen.com/usr/uploads/2012/09/clip_image013_thumb.jpg" width="525" height="312" /></a></p> <p>7. Add the following CPU mask Level ECX: ---- ---- ---- ---- ---- ---- --H- ----</p> <p><a href="https://www.crazycen.com/usr/uploads/2012/09/clip_image014.jpg"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="clip_image014" border="0" alt="clip_image014" src="https://www.crazycen.com/usr/uploads/2012/09/clip_image014_thumb.jpg" width="539" height="229" /></a></p> <p>8. Now Install Hyper-V or Windows 2008 R2 and enable the Hyper-V role.</p> <p>9. You are ready to roll.</p> Last modification:October 6, 2023 © Allow specification reprint Support Appreciate the author AliPayWeChat Like 如果觉得我的文章对你有用,请随意赞赏
One comment
其实我是来看图的