Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
en:manual:virtual_machine_manager [2022/02/25 17:21]
i3_relativism [¿Qué programas me permiten ejecutar una máquina virtual?]
en:manual:virtual_machine_manager [2023/10/24 01:08]
throgh [Virtual Machine Manager Installing]
Line 1: Line 1:
-(WIP) .... +====== Install a virtual machine manager ======
-translation needed! (also > https://c.hgit.ga/services/cl.git/diff/content/articles/instalar-un-gestor-de-maquinas-virtuales-en-hyperbola-gnulinux-libre.md)+
  
 +Your host may be Hyperbola GNU/Linux-libre x86_64 architecture, for example, but with enough memory and processing power you could run [[https://trisquel.info|Trisquel]] and [[https://dragora.org/en/index.html|Dragora]] of the same time, on the same machine.
  
-====== Instalar un gestor de máquinas virtuales ====== +===== What is a virtual machine? =====
-Tu sistema principal puede ser Hyperbola GNU/Linux-libre de arquitectura x86_64, por ejemplo, pero con suficiente memoria y poder de procesamiento usted pordría ejecutar [[https://trisquel.info|Trisquel]] y [[https://dragora.org/en/index.html|Dragora]] al mismo tiempo, dentro de la misma máquina.+
  
-===== ¿Qué es un máquina virtual? ===== +virtual machine is software that simulates a computer system and can execute programs as if it were a real computerThis software was originally defined as "an efficient and isolated duplicate of a physical machine".
-Una máquina virtual es un software que simula un sistema de computación y puede ejecutar programas como si fuese una computadora real. Este software en un principio fue definido como "un duplicado eficiente y aislado de una máquina física".+
  
-===== Qué programas me permiten ejecutar una máquina virtual? ===== +===== What programs allow me to run a virtual machine? =====
-En los sistemas operativos totalmente libres existe un programa llamado <color #620BB9/#EEDDFF>man ''qemu''</color> que nos permite virtualizar.+
  
-[[https://wiki.qemu.org/Main_Page|Qemu]] funciona a través de línea de comandos, pero también existen GUI, que como su nombre indica son interfaces gráficas para el usuario.+In totally free operating systems there is a program called <color #620BB9/#EEDDFF>qemu</color> that allows us to virtualize.
  
-En esta guía explicamos cómo instalar [[https://virt-manager.org/|Virtual Machine Manager]] el cual es muy completo al momento de virtualizar sistemas operativos.+[[https://wiki.qemu.org/Main_Page|qemu]] works through the command line, but there are also GUIs. 
 + 
 +In this guide we explain how to install [[https://qtemu.org/|QtEmu]] which offers a simple nevertheless quite effective graphical interface for managing virtual machines. 
 + 
 +====== QtEmu installation ====== 
 + 
 +===== Check if your PC supports virtualization =====
  
-===== Instalación de Virtual Machine Manager ===== 
-====Revisar si su PC soporta virtualización ==== 
 <code bash> <code bash>
 $ LC_ALL=C lscpu | grep Virtualization $ LC_ALL=C lscpu | grep Virtualization
 </code> </code>
  
-o ejecutar el comando:+or run the command:
  
 <code bash> <code bash>
Line 28: Line 29:
 </code> </code>
  
-Si su computadora admite virtualizacióndebería ver la salida como <color #620BB9/#EEDDFF>man ''Virtualización: VT-x''</color> o  <color #620BB9/#EEDDFF>man ''Virtualización: AMD-V''</color>, caso contrario su ordenador no es capaz de virtualizar.+If your computer supports virtualizationyou should see the output as <color #620BB9/#EEDDFF>Virtualization: VT-x</color> or <color #620BB9/#EEDDFF>Virtualization: AMD-V</color>, otherwise your computer is not capable of virtualizing. 
 + 
 +===== QtEmu Installing =====
  
-==== Instalando Virtual Machine Manager ==== 
 <code bash> <code bash>
 # pacman -Sy # pacman -Sy
Line 36: Line 38:
  
 <code bash> <code bash>
-# pacman -S virt-manager qemu vde2 dnsmasq bridge-utils libvirt+# pacman -S qtemu
 </code> </code>
  
 <code bash> <code bash>
-gpasswd -<tu-usuariokvm+usermod -aG kvm <your-user>
 </code> </code>
  
-<code bash> 
-# gpasswd -a <tu-usuario> libvirt 
-</code> 
  
-==== Revisar el grupo kvm ==== +===== Enable kernel modules for virtualization ===== 
-<code bash> +kvm_intel module (Intel processors) 
-grep -E 'group="kvm"|group="78"' /etc/libvirt/qemu.conf +<code bash># modprobe kvm_intel</code>
-</code>+
  
-Comprobar si existe <color #620BB9/#EEDDFF>man ''group=''kvm''''</color> o <color #620BB9/#EEDDFF>man ''group="78"''</color>+kvm_amd module (AMD processors) 
 +<code bash># modprobe kvm_amd</code>
  
-==== Habilitar módulos del kernel para virtualización ==== +===== Enable nested virtualization in KVM =====
-Módulo kvm_intel (procesadores Intel)+
  
-<code bash> +Nested virtualization allows you to run a virtual machine (VM) within another VM while still using host hardware acceleration.
-# modprobe kvm_intel +
-</code>+
  
-Módulo kvm_amd (procesadores AMD)+===== Checking if nested virtualization is supported =====
  
-<code bash> +For Intel processors, check the <color #620BB9/#EEDDFF>/sys/module/kvm_intel/parameters/nested</color> file. For AMD processors, check the <color #620BB9/#EEDDFF>/sys/module/kvm_amd/parameters/nested</color>. If you see <color #620BB9/#EEDDFF>1</color> or <color #620BB9/#EEDDFF>Y</color>, nested virtualization is supported; if you see <color #620BB9/#EEDDFF>0</color> or <color #620BB9/#EEDDFF>N</color>, nested virtualization is not supported. 
-modprobe kvm_amd + 
-</code>+For example:
  
-==== Verifique que la máquina virtual este configurada correctamente ==== 
 <code bash> <code bash>
-virt-host-validate+cat /sys/module/kvm_intel/parameters/nested
 </code> </code>
  
-==== Servicios ==== +and return <color #620BB9/#EEDDFF>Y</color>. 
-Virt-Manager depende del servicio <color #620BB9/#EEDDFF>man ''libvirtd''</color> para funcionar.+ 
 +===== Enable nested virtualization for Intel processors =====
  
-A continuación le explicamos cómo inciar ese servicio:+1. Turn off all running virtual machines and reload <color #620BB9/#EEDDFF>kvm_intel</color> module:
  
-===Iniciar libvirtd === 
 <code bash> <code bash>
-rc-service libvirtd start+modprobe -r kvm_intel
 </code> </code>
  
-=== Agregar libvirtd por defecto ===+2. Activate the nesting function 
 <code bash> <code bash>
-rc-update add libvirtd default+modprobe kvm_intel nested=1
 </code> </code>
  
-=== Quitar Servicio === +3. Nested virtualization is enabled until the host is restarted. To enable it permanentlyadd the following line to <color #620BB9/#EEDDFF>/etc/modprobe.d/kvm.conf</color> file:
-Si desea quitar el servicio e iniciar solo cuando usted deseeejecute:+
  
 <code bash> <code bash>
-rc-update del libvirtd default+nano -w /etc/modprobe.d/kvm.conf 
 +---------------------------------- 
 +options kvm_intel nested=1
 </code> </code>
  
-==== Habilitar la virtualización anidada en KVM ==== +===== Enable nested virtualization for AMD processors =====
-La virtualización anidada le permite ejecutar una máquina virtual (VM) dentro de otra VM mientras sigue utilizando la aceleración de hardware del host.+
  
-=== Comprobando si la virtualización anidada es compatible === +1Turn off all running virtual machines and reload <color #620BB9/#EEDDFF>kvm_amd</color> module:
-Para los procesadores Intel, verifique el archivo <color #620BB9/#EEDDFF>man ''/sys/module/kvm_intel/parameters/nested''</color>Para procesadores AMD, verifique el archivo <color #620BB9/#EEDDFF>man ''/sys/module/kvm_amd/parameters/nested''</color>. Si ve <color #620BB9/#EEDDFF>man ''1''</color> o <color #620BB9/#EEDDFF>man ''Y''</color>, se admite la virtualización anidada; si ve <color #620BB9/#EEDDFF>man ''0''</color> o <color #620BB9/#EEDDFF>man ''N''</color>, la virtualización anidada no es compatible. +
- +
-Por ejemplo:+
  
 <code bash> <code bash>
-$ cat /sys/module/kvm_intel/parameters/nested +# modprobe -r kvm_amd
-Y+
 </code> </code>
  
-=== Habilitar la virtualización anidada para procesadores Intel: ===+2. Activate the nesting function
  
-    Apague todas las máquinas virtuales en ejecución y recargue el módulo <color #620BB9/#EEDDFF>man ''kvm_intel''</color>: +<code bash> 
-    <code bash> +# modprobe kvm_amd nested=1 
-    # modprobe -r kvm_intel +</code>
-    </code>+
  
-    Activa la función de anidamiento+3. Nested virtualization is enabled until the host is restarted. To enable it permanently, add the following line to <color #620BB9/#EEDDFF>/etc/modprobe.d/kvm.conf</color> file:
  
-    <code bash> +<code bash> 
-    # modprobe kvm_intel nested=1 +# nano -w /etc/modprobe.d/kvm.conf 
-    </code> +---------------------------------- 
-     +options kvm_amd nested=1 
-    La virtualización anidada se habilita hasta que se reinicia el host. Para habilitarlo permanentemente, agregue la siguiente línea al archivo <color #620BB9/#EEDDFF>man ''/etc/modprobe.d/kvm.conf''</color>: +</code>
-     +
-    <code bash> +
-    # nano -w /etc/modprobe.d/kvm.conf +
-    ---------------------------------- +
-    options kvm_intel nested=1 +
-    </code> +
- +
-=== Habilitar la virtualización anidada para procesadores AMD: === +
- +
-    Apague todas las máquinas virtuales en ejecución y recargue el módulo <color #620BB9/#EEDDFF>man ''kvm_amd''</color>: +
- +
-    <code bash> +
-    # modprobe -r kvm_amd +
-    </code> +
- +
-    Activa la función de anidamiento +
- +
-    <code bash> +
-    # modprobe kvm_amd nested=1 +
-    </code> +
- +
-    La virtualización anidada se habilita hasta que se reinicia el host. Para habilitarlo permanentemente, agregue la siguiente línea al archivo <color #620BB9/#EEDDFF>man ''/etc/modprobe.d/kvm.conf''</color>: +
- +
-    <code bash> +
-    # nano -w /etc/modprobe.d/kvm.conf +
-    ---------------------------------- +
-    options kvm_amd nested=1 +
-    </code>+
  
-==== Capturas de pantalla de Virtual Machine Manager ==== +===== Modules with security issues =====
-Dragora en Virtual Machine Manager +
-Captura de pantalla de Dragora GNU/Linux en Virtual Machine Manager +
-Trisquel en Virtual Machine Manager +
-Captura de pantalla de Trisquel GNU/Linux en Virtual Machine Manager+
  
-==== Módulos con problemas de seguridad ==== +The <color #620BB9/#EEDDFF>vhost_net</color> module has [[https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/l1tf.html|CVE-2018-3646]] security issues which is L1TF and SMT CPU error with possible data leakIt's recommended to disable it as follows:
-El módulo <color #620BB9/#EEDDFF>man ''vhost_net''</color> tiene problemas de seguridad [[https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/l1tf.html|CVE-2018-3646]] que es un error de CPU L1TF SMT con posible fuga de datosLo recomendable es desactivarlo de la siguiente manera:+
  
 <code bash> <code bash>
Line 163: Line 121:
 </code> </code>
  
-Si estás en Hyperbola GNU/Linux-libre este módulo viene desactivado.+If you are in Hyperbola GNU/Linux-libre this module comes disabled.
  
-diff --git a/content/articles/instalar-un-gestor-de-maquinas-virtuales-en-hyperbola-gnulinux-libre.en.md b/content/articles/instalar-un-gestor-de-maquinas-virtuales-en-hyperbola-gnulinux-libre.en.md 
-index d5d261d..9ac01ea 100644 
---- a/content/articles/instalar-un-gestor-de-maquinas-virtuales-en-hyperbola-gnulinux-libre.en.md 
-+++ b/content/articles/instalar-un-gestor-de-maquinas-virtuales-en-hyperbola-gnulinux-libre.en.md 
-@@ -1,6 +1,7 @@ 
- Author: Jesús E. 
- Category: Tutorial 
- Date: 2020-05-03 03:12 
-+Modified: 2022-02-25 05:57 
- Diaspora: https://diasp.org/u/heckyel 
- Image: 2020/05/virt-manager.jpg 
- Lang: en 
-@@ -58,11 +59,11 @@ otherwise your computer is not capable of virtualizing. 
-     :::console 
-     # pacman -Sy 
-  
--    # pacman -S virt-manager qemu vde2 dnsmasq bridge-utils openbsd-netcat libvirt firewalld 
-+    # pacman -S virt-manager qemu vde2 dnsmasq bridge-utils libvirt 
-  
--    # gpasswd -a <tu-usuario> kvm 
-+    # gpasswd -a <your-user> kvm 
-  
--    # gpasswd -a <tu-usuario> libvirt 
-+    # gpasswd -a <your-user> libvirt 
-  
- ### Check kvm group 
-  
-@@ -90,10 +91,9 @@ Check if there is `group="kvm"` or `group="78"` 
-  
- ### Services 
-  
--Virt-Manager relies on the `libvirtd` and 
--`firewalld` services to function. 
-+Virt-Manager relies on `libvirtd` services to function. 
-  
--Here we explain how to start these services: 
-+Here we explain how to start these service: 
-  
- #### Start libvirtd 
-  
-@@ -103,28 +103,16 @@ Here we explain how to start these services: 
- #### Add libvirtd for default 
-  
-     :::console 
--    # rc-update add libvirtd default 
-+    # rc-update add libvirtd defaultt 
-  
--#### Start firewalld 
-+#### Remove Service 
-  
--    :::console 
--    # rc-service firewalld start 
-- 
--#### Add firewalld for default 
-- 
--    :::console 
--    # rc-update add firewalld default 
-- 
--#### Remove Services 
-- 
--If you want to remove the services and start 
-+If you want to remove the service and start 
- only when you want, run: 
-  
-     :::console 
-     # rc-update del libvirtd default 
-  
--    # rc-update del firewalld default 
-- 
- ### Enable nested virtualization in KVM 
-  
- Nested virtualization allows you to run a virtual machine (VM) 
-diff --git a/content/articles/instalar-un-gestor-de-maquinas-virtuales-en-hyperbola-gnulinux-libre.md b/content/articles/instalar-un-gestor-de-maquinas-virtuales-en-hyperbola-gnulinux-libre.md 
-index a73c58c..dbcedb8 100644 
---- a/content/articles/instalar-un-gestor-de-maquinas-virtuales-en-hyperbola-gnulinux-libre.md 
-+++ b/content/articles/instalar-un-gestor-de-maquinas-virtuales-en-hyperbola-gnulinux-libre.md 
-@@ -1,6 +1,7 @@ 
- Author: Jesús E. 
- Category: Tutorial 
- Date: 2020-05-03 03:12 
-+Modified: 2022-02-25 05:55 
- Diaspora: https://diasp.org/u/heckyel 
- Image: 2020/05/virt-manager.jpg 
- Lang: es 
-@@ -58,7 +59,7 @@ caso contrario su ordenador no es capaz de virtualizar. 
-     :::console 
-     # pacman -Sy 
-  
--    # pacman -S virt-manager qemu vde2 dnsmasq bridge-utils openbsd-netcat libvirt firewalld 
-+    # pacman -S virt-manager qemu vde2 dnsmasq bridge-utils libvirt 
-  
-     # gpasswd -a <tu-usuario> kvm 
-  
-@@ -90,10 +91,9 @@ Comprobar si existe `group="kvm"` o `group="78"` 
-  
- ### Servicios 
-  
--Virt-Manager depende de los servicios `libvirtd` y 
--`firewalld` para funcionar. 
-+Virt-Manager depende del servicio `libvirtd` para funcionar. 
-  
--A continuación le explicamos cómo inciar esos servicios: 
-+A continuación le explicamos cómo inciar ese servicio: 
-  
- #### Iniciar libvirtd 
-  
-@@ -105,26 +105,14 @@ A continuación le explicamos cómo inciar esos servicios: 
-     :::console 
-     # rc-update add libvirtd default 
-  
--#### Iniciar firewalld 
-+#### Quitar Servicio 
-  
--    :::console 
--    # rc-service firewalld start 
-- 
--#### Agregar firewalld por defecto 
-- 
--    :::console 
--    # rc-update add firewalld default 
-- 
--#### Quitar Servicios 
-- 
--Si desea quitar los servicios e iniciar solo cuando 
-+Si desea quitar el servicio e iniciar solo cuando 
- usted desee, ejecute: 
-  
-     :::console 
-     # rc-update del libvirtd default 
-  
--    # rc-update del firewalld default 
-- 
- ### Habilitar la virtualización anidada en KVM 
-  
- La virtualización anidada le permite ejecutar una máquina virtual (VM)