User Tools

Site Tools


wiki:kvm:eve-ng-worning

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
wiki:kvm:eve-ng-worning [2025/05/31 22:12] – - Imported by DokuWiki Advanced Plugin Wiki Administratorwiki:kvm:eve-ng-worning [2025/09/05 11:53] (current) – [Passo 1: Habilitar Virtualização Aninhada no Host KVM] Wiki Administrator
Line 15: Line 15:
  - **Verificar suporte à virtualização aninhada:**  - **Verificar suporte à virtualização aninhada:**
  * **Intel:**  * **Intel:**
 +
 <code bash> <code bash>
 cat /sys/module/kvm_intel/parameters/nested cat /sys/module/kvm_intel/parameters/nested
 </code> </code>
 +
  * **AMD:**  * **AMD:**
 +
 <code bash> <code bash>
 cat /sys/module/kvm_amd/parameters/nested cat /sys/module/kvm_amd/parameters/nested
Line 29: Line 32:
  - **Habilitar virtualização aninhada:**  - **Habilitar virtualização aninhada:**
  * **Intel:**  * **Intel:**
 +
 <code bash> <code bash>
 echo "options kvm-intel nested=1" | sudo tee /etc/modprobe.d/kvm-intel.conf echo "options kvm-intel nested=1" | sudo tee /etc/modprobe.d/kvm-intel.conf
Line 34: Line 38:
 sudo modprobe kvm_intel sudo modprobe kvm_intel
 </code> </code>
 +
  * **AMD:**  * **AMD:**
 +
 <code bash> <code bash>
 echo "options kvm-amd nested=1" | sudo tee /etc/modprobe.d/kvm-amd.conf echo "options kvm-amd nested=1" | sudo tee /etc/modprobe.d/kvm-amd.conf
Line 43: Line 49:
  - **Validar:**  - **Validar:**
  * **Intel:**  * **Intel:**
 +
 <code bash>cat /sys/module/kvm_intel/parameters/nested</code> <code bash>cat /sys/module/kvm_intel/parameters/nested</code>
  
Line 59: Line 66:
  
   - **Adicionar ou modificar a seção `<cpu>`:**   - **Adicionar ou modificar a seção `<cpu>`:**
-<file xml>+<code xml>
     <cpu mode="host-passthrough">     <cpu mode="host-passthrough">
       <feature policy="require" name="vmx"/> <!-- Para Intel -->       <feature policy="require" name="vmx"/> <!-- Para Intel -->
       <feature policy="require" name="svm"/> <!-- Para AMD -->       <feature policy="require" name="svm"/> <!-- Para AMD -->
     </cpu>     </cpu>
-</file>+</code>
  
   - **Certifique-se de que os recursos básicos estão configurados:**   - **Certifique-se de que os recursos básicos estão configurados:**
-<file xml>+<code xml>
     <features>     <features>
       <acpi/>       <acpi/>
Line 73: Line 80:
       <vmport state="off"/>       <vmport state="off"/>
     </features>     </features>
-</file>+</code>
  
   - Salve e saia.   - Salve e saia.
wiki/kvm/eve-ng-worning.1748740351.txt.gz · Last modified: by Wiki Administrator