Skip to content

Instantly share code, notes, and snippets.

@jsilverdev
Last active January 17, 2022 04:56
Show Gist options
  • Save jsilverdev/5228019cabd0c85c5ebecac31c034541 to your computer and use it in GitHub Desktop.
Save jsilverdev/5228019cabd0c85c5ebecac31c034541 to your computer and use it in GitHub Desktop.
Instalar KVM en Manjaro

Instalar KVM para Android Studio en Manjaro

  1. Verificar si tu dispositivo soporta virtualización, con el siguiente comando:
LC_ALL=C lscpu | grep Virtualization
  • Debería arrojar algo como esto:
$ LC_ALL=C lscpu | grep Virtualization
Virtualization:                  VT-x
  1. Verificar el soporte del Kernel, con el siguiente comando:
zgrep CONFIG_KVM /proc/config.gz
  • Debería arrojar esto:
$ zgrep CONFIG_KVM /proc/config.gz
CONFIG_KVM_GUEST=y
CONFIG_KVM_MMIO=y
CONFIG_KVM_ASYNC_PF=y
CONFIG_KVM_VFIO=y
CONFIG_KVM_GENERIC_DIRTYLOG_READ_PROTECT=y
CONFIG_KVM_COMPAT=y
CONFIG_KVM_XFER_TO_GUEST_WORK=y
CONFIG_KVM=m
CONFIG_KVM_INTEL=m
CONFIG_KVM_AMD=m
CONFIG_KVM_AMD_SEV=y
CONFIG_KVM_XEN=y
CONFIG_KVM_MMU_AUDIT=y
  • Una vez que todo haya salido correctamente continuar
  1. Instalar KVM y dependencias
sudo pacman -S virt-manager qemu openbsd-netcat bridge-utils vde2 iptables dnsmasq
  1. Activar el servicio libvirtd
sudo systemctl enable libvirtd.service
  1. Iniciar libvirtd
sudo systemctl start libvirtd.service
  1. Abre el archivo de configuración de libvirtd
sudo nano /etc/libvirt/libvirtd.conf
  1. Descomenta las siguientes líneas:
[...]
unix_sock_group = "libvirt"
[...]
unix_sock_ro_perms = "0777"
[...]
unix_sock_rw_perms = "0770"
[...]
  • Guardar y cerrar
  1. Agrega tu usuario al grupo libvirt
sudo usermod -a -G libvirt $(whoami) && newgrp libvirt
  1. Reinicia el servicio de libvirtd
sudo systemctl restart libvirtd.service

Listo, KVM ya está configurado

Links:

https://computingforgeeks.com/complete-installation-of-kvmqemu-and-virt-manager-on-arch-linux-and-manjaro/

https://idroot.us/install-kvm-manjaro-21/

https://manjaro.site/how-to-install-kvm-on-manjaro-linux/

https://developer.android.com/studio/run/emulator-acceleration?utm_source=android-studio#vm-linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment