This time you will learn how to set up virtual ESXi 5.5 (vESXi) inside physical ESXi 5.5 (pESXi). First 4 points are repeated from post about nested hyper-v, so if you have already done it, you can skip to point 5:
- Set up ssh access to the host. To do this log in to your Esxi host through vSphere client (simpliest way) and go to Configuration tab and then click on “Security Profile”. Click on the “Properties” in “Services” section. In new window locate SSH, click on it and then click “Options” button. Click “Start” and then “start and stop with the host”. Click ok to apply changes and ok again to close window.
- Second thing on host configuration side is to allow promiscuous network communication from and to VMs inside Hyper-V. Go to configuration tab of your ESXi host and click on “Networking”. Then go to your vSwitch properties by clicking “Properties..”. In new windows select vSwitch end click “Edit” then go to “Security” tab and change “Promiscuous mode” to “Accept”. Click Ok, and then Close.
- Now you have to ssh to your server. After that browse to /etc/vmware/ catalog and either use vi to put additional parameter (
vhv.allow="TRUE") to config file or simply enter:
echo 'vhv.allow = "TRUE"'>> /etc/vmware/config
- You can check with “
tail /etc/vmware/config” command if you are succesfull:
- Create a new Virtual Machine. Select “Custom” on first screen.
- Name and location of VM is up to you.
- Guest operating system should be “Other 64bit”
- Add at least 2 vCPUs, 4096MB of RAM and one E1000e network card. Let the creator finish its job.
- After that edit setting of new VM and change guest operating system to “VMware ESXi 5.x”
- Now get back to your SSH window. Enter following command:
- Write down your vESXi VMID number (refer to the picture below it is underlined on the left). Enter following command:
vim-cmd /vmsvc/upgrade your_VMID vmx-09
In my case it would be:
vim-cmd /vmsvc/upgrade 15 vmx-09
On the picture there is message saying that upgrade was unsuccesfull. This is because my VM is already 9 hardware version.
- Now browse to your VM folder (usually: “cd /vmfs/volumes/datastore1/name_of_VM/”)
- Open your machine`s vmx file with vi and add these lines:
monitor.virtual_mmu = "hardware"
monitor.virtual_exec = "hardware"
vhv.enable = "TRUE"
- Save the file and quit vi. After that inter this command:
vim-cmd /vmsvc/reload your_VMID
In my case:
vim-cmd /vmsvc/reload 15
- Your VM is ready. You should be able to install ESXi on it and have nested 64bit VMs.