lunes, 31 de agosto de 2020

VirtualBox 6.1 en Fedora 32 / How to install VirtualBox 6.1 on Fedora 32

Hola amigos, en el apunte veremos cómo podemos utilizar VirtualBox 6.1 en Fedora 32.

Virtualbox es el software que más domino y tengo el entorno xfce, habrá tiempo para usar boxes del cual me han hablado muy bien, pero está en el entorno gnome, se puede agregar lo sé, pero ya habrá tiempo...

Nota: para que funcione no tendrás que actualizar al nuevo kernel, por defecto el kernel en la nueva instalación "fresca" es 5.6.6-300.fc32.x86_64, recuerdo que hice un update y no funcionó, el detalle era el nuevo kernel que al parecer no anda bien por ahora con virtualbox, con el pasar de los días supongo que ya se solucionará.

Por ahora no debemos hacer update, así nos ofrezca dnffragora.

En el apunte no utilizaremos el repositorio de virtualbox, utilizaremos el repositorio de rpmfusion, veamos cómo hacemos funcionar.

Paso 1: en la instalación fresca de Fedora 32 trae repositorios por defecto y esos repositorios no incluyen a virtualbox, entonces agregamos rpmfusion que sigue vigente y es el repositorio que se mantiene, por cierto es de terceros y se debe tener en cuenta ese detalle.

Ir al sitio https://rpmfusion.org/Configuration/, y descargar los paquetes:
RPM Fusion free for Fedora 32 and RPM Fusion nonfree for Fedora 32

Paso 2: instalar los dos paquetes rpms, cambiarse a root (su -)

[root@ns01 Descargas]# rpm -ivh rpmfusion-free-release-32.noarch.rpm
advertencia:rpmfusion-free-release-32.noarch.rpm: EncabezadoV3 RSA/SHA1 Signature, ID de clave 100bcd92: NOKEY
Verifying...                          ################################# [100%]
Preparando...                         ################################# [100%]
Actualizando / instalando...
   1:rpmfusion-free-release-32-1      ################################# [100%]
[root@ns01 Descargas]# rpm -ivh rpmfusion-nonfree-release-32.noarch.rpm
advertencia:rpmfusion-nonfree-release-32.noarch.rpm: EncabezadoV3 RSA/SHA1 Signature, ID de clave 6dc1be18: NOKEY
Verifying...                          ################################# [100%]
Preparando...                         ################################# [100%]
Actualizando / instalando...
   1:rpmfusion-nonfree-release-32-1   ################################# [100%]
[root@ns01 Descargas]#

Paso 3: buscar a virtualbox

[root@ns01 ~]# dnf search VirtualBox

Paso 4: ya lo viste, entonces lo agregas

[root@ns01 ~]# dnf install VirtualBox

Paso 5: si te fijas agregó el nuevo kernel-devel 5.8.x, no lo va a utilizar( fallará al ejecutar), entonces debes agregar manualmente el kernel por defecto.

[root@ns01 ~]# uname -r
5.6.6-300.fc32.x86_64

Ese kernel-devel necesitamos.

Paso 6: cuando creas un a máquina virtual y ejecutas te saldrá el mensaje

Paso 7: no preocupes, sigue los consejos que muestra.

[root@ns01 ~]# dnf install akmod-VirtualBox kernel-devel-$(uname -r)

Recuerda también dice que para no reiniciar necesitas cargar el kernel driver de forma manual.

[root@ns01 ~]# akmods; systemctl restart vboxdrv.service

Checking kmods exist for 5.6.6-300.fc32.x86_64             [  OK  ]
Building and installing VirtualBox-kmod                    [  OK  ]

Ya está, salió bien :), ahora puedes ejecutar nuevamente la máquina virtual y todo marchará bien ☺


Paso 8: agregas el usuario al grupo virtualbox

#usermod -a -G vboxusers user_name

Paso 9: también puedes agregar extension pack desde https://www.virtualbox.org/wiki/Downloads

English version

How to install VirtualBox on Fedora 32


Step 1: add RPMFUSION repositore
Go to the url: https://rpmfusion.org/Configuration/, and download two packages:
RPM Fusion free for Fedora 32 and RPM Fusion nonfree for Fedora 32

Step 2: install from cli, change to root user (su -)

[root@ns01 Descargas]# rpm -ivh rpmfusion-free-release-32.noarch.rpm
advertencia:rpmfusion-free-release-32.noarch.rpm: EncabezadoV3 RSA/SHA1 Signature, ID de clave 100bcd92: NOKEY
Verifying...                          ################################# [100%]
Preparando...                         ################################# [100%]
Actualizando / instalando...
   1:rpmfusion-free-release-32-1      ################################# [100%]
[root@ns01 Descargas]# rpm -ivh rpmfusion-nonfree-release-32.noarch.rpm
advertencia:rpmfusion-nonfree-release-32.noarch.rpm: EncabezadoV3 RSA/SHA1 Signature, ID de clave 6dc1be18: NOKEY
Verifying...                          ################################# [100%]
Preparando...                         ################################# [100%]
Actualizando / instalando...
   1:rpmfusion-nonfree-release-32-1   ################################# [100%]
[root@ns01 Descargas]#

Step 3: search VirtualBox

[root@ns01 ~]# dnf search VirtualBox

Then this is the package: VirtualBox.x86_64 : A general-purpose full virtualizer for PC hardware

Step 4: install with dnf manager

[root@ns01 ~]# dnf install VirtualBox

Check dependences, it will install a new kernel-devel 5.8, but you need kernel-devel x86_64, 5.6.6-300.fc32, then install from cli

Step 5: check it
[root@ns01 ~]# uname -r
5.6.6-300.fc32.x86_64

[root@ns01 ~]# dnf install akmod-VirtualBox kernel-devel-$(uname -r)

Step 6: You need to run the next comand

akmods; systemctl restart vboxdrv.service
[root@ns01 ~]# akmods; systemctl restart vboxdrv.service

Wait a moment...
Checking kmods exist for 5.6.6-300.fc32.x86_64             [  OK  ]
Building and installing VirtualBox-kmod                    [  OK  ]

That's all, now virtualbox works!

Step 7: you can add extension pack from virtualbox web site, then download and add it (https://www.virtualbox.org/wiki/Downloads)

Step 8: add you user to virtualbox users
#usermod -a -G vboxusers user_name

Note: currently you have new kernel, but you aren't using it.

No hay comentarios.:

Publicar un comentario

Extensiones php en FreeBSD 14 para PhpSysinfo, PhpMyAdmin y Simple Machines Forum

 En FreeBSD 14 ocurre algo especial, por defecto no se activa las extensiones PHP para los softwares como PhpSysinfo, PhpMyAdmin ySimple mac...