715
edits
Changes
→Part 2: Configure VMware Workstation for Nested VMs
# In a terminal use elevated privileges to edit the file called: '''/etc/modprobe.d/kvm.conf'''<ul><li>'''If this file doesn't exist, double-check your UEFI settings in VMWare Workstation for r9host. If BIOS is selected, <u>you MUST redo Lab 1</u>.'''</li></ul>
# Search for the <b>first occurrence</b> of the Linux Kernel boot command. Do not make the following changes on more than one entry!
# Uncomment (remove the #) the boot option: '''options kvm_intel nested=1''' (for AMD processors '''options kvm_amd nested=1'''). See sample configuration below:
<ol>
{{Admon/important|About the reference settings shown below|
* Only '''ONE''' of these settings might be is applicable.depending on your processor* Enter '''JUST''' If you are unsure whether you are using an AMD or Intel processor, run the text highlighted in '''BLUE''' as your kernel version, root, and LVM settings might vary slightlycommand: <code style="font-family:courier;font-size:1.2em;margin-left:20px;">lscpu.</code>}}
</ol>
<blockquote><br><code pre style="font-family:courier;font-size:1.2em;margin-left:20px;"><br>linuxefi # Setting modprobe kvm_intel/vmlinuz-3.10.0-1062.kvm_amd nested = 1# only enables Nested Virtualization until the next reboot or# module reload.2Uncomment the option applicable# to your system below to enable the feature permanently.el7.x86_64 root=/dev/mapper/centos_c7host-root ro crashkernel=auto rd.lvm.lv=centos_c7host/root rd.lvm.lv=centos_c7host/swap rhgb quiet LANG=en_CA.UTF-8 <span style="color:blue;font-weight:bold">kvm-intel## User changes in this file are preserved across upgrades.## For Inteloptions kvm_intel nested=1</span><br> initrdefi /initramfs-3.10.0-1062.## For AMD#options kvm_amd nested=1.2.el7.x86_64.img</codepre></blockquote>
<span style="color:red;font-weight:bold">OR</span>
<blockquote><code style="font-family:courier;font-size:1.2em;margin-left:20px;">
<br>
<ol><li value="4">Save your editing changes, close the virtual machine application, and <u>'''reboot'''</u> your c7host VM.</li>
<li>If you configured your c7host r9host VM for nested VMs, then you should get the output <b><code><span style="color:#3366CC;font-size:1.2em;">Y</span></code></b> when you issue the following command:<br><b><code><span style="color:#3366CC;font-size:1.2em;">cat /sys/module/kvm_intel/parameters/nested</span></code></b></li><ul><li>For '''AMD''' processors, check the /sys/module/'''kvm_amd'''/parameters/nested file. You should get the output <b><code><span style="color:#3366CC;font-size:1.2em;">1</span></code></b></li></ul>
<ul><li>And if kvm_intel directory doesn't exist, double-check your '''Processors => Virtualization Engine (Intel VT-x/EPT...)''' settings in VMWare Workstation.</li></ul>
</ol>