Created
January 9, 2021 19:10
-
-
Save oBuTr471b/df34ba1bde4a2305387c7d7421273558 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# In The Name Of Allah . | |
# -- --- ---- -- ----- - | |
# Thu Nov 19 14:20:52 2020 | |
# Written By : zer0err0r . | |
# ======= == = ========= = | |
# 22, Nested VMs . | |
# Lets check : | |
$ cat /sys/module/kvm_intel/parameters/nested | |
= [N, 0] means that its disabled, [Y, 1] means that its enabled . | |
# Lets enable it : | |
$ sudo vim /etc/modprobe.d/kvm-nested.conf | |
options kvm-intel nested=1 | |
options kvm-intel enable_shadow_vmcs=1 | |
options kvm-intel enable_apicv=1 | |
options kvm-intel ept=1 | |
$ sudo modprobe -r kvm_intel # Disabling the module . | |
$ sudo modprobe -a kvm_intel # Enabling the module again . | |
# Notice : | |
= 'Processors with extended page tables or support for shadow VMCS are not recommended by Red Hat for nested virtualization' | |
= [VMCS] consist on virtual_machine_control_structure_shadowing . | |
= extended_page_tables consist on [EPT] . | |
= I dont know about [VMCS, EPT], But I think that you should care about them . | |
# Then : | |
= Edit the [.xml] of the VM that you will use as a nested hypervisor . | |
= Make the [mode] value like the following , | |
$ virsh edit centos30 | |
<cpu mode="host-passthrough"/> | |
# Finally : | |
= Install your VM and configure it as a KVM hypervisor as we studied in this course . | |
= We will do that in the next lesson ISA . | |
# BTWs : | |
= Worked with me on intel_core_i5_3340M_2.7GHz_with_4GB_of_RAM_and_240kingstone_SSD . | |
# ===== == ==== ======== = | |
# Peace Be Up0n Muhammed . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment