Changes

Jump to: navigation, search

OPS245 Lab 2 dev

2 bytes added, 13:22, 29 January 2023
Part 2: Configure VMware Workstation for Nested VMs
===Part 2: Configure VMware Workstation for Nested VMs ===
Although we are using VMware Workstation to run our c7host r9host VM, we will now install and configure another virtualization package called KVM in order to install the remaining VMs for this course.Since we are "nesting" VMs (i.e. running a VM inside another VM) we need to configure our c7hostr9host's Linux boot-up parameters in order to allow these VMs to run efficiently.
:'''Perform the following steps:'''
# In a terminal use elavated elevated privileges to edit the file called: '''/bootetc/efi/EFI/centosmodprobe.d/grubkvm.cfgconf'''<ul><li>'''If this file doesn't exist, double-check your UEFI settings in VMWare Workstation for c7hostr9host. 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!
# Insert Uncomment (remove the #) the boot option: '''kvm-intel.options kvm_intel nested=1''' (for AMD processors '''kvm-amd.options kvm_amd nested=1''') at the end of the Linux kernel boot options.
<ol>
{{Admon/important|About the reference settings shown below|
* Only '''ONE''' of these settings might be applicable.
<!-- * Enter '''JUST''' the text highlighted in '''BLUE''' as your kernel version, root, and LVM settings might vary slightly.}}-->
</ol>
<!-- <blockquote><code style="font-family:courier;font-size:1.2em;margin-left:20px;">
<br>linuxefi /vmlinuz-3.10.0-1062.1.2.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.nested=1</span>
<br> initrdefi /initramfs-3.10.0-1062.1.2.el7.x86_64.img
linuxefi /boot/vmlinuz-3.10.0-1062.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.nested=1</span><br>initrdefi /boot/initramfs-3.10.0-1062.el7.x86_64.img
</code></blockquote>
-->
<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 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>

Navigation menu