Ir al contenido principal

Error Iniciando una Maquina Virtual en VirtualBox: kernel driver not installed rc=-1908 (Error starting virtual machine in VirtualBox)

Estoy usando Ubuntu 12.10 y dentro de mis labores es tener virtuales, por ello decidi instalar el VirtualBox. El Virtual que se encuentra en el Software Center es la versión 4.1. Una vez instalado, decidi iniciar una virtual de Windows 7, pero lo que único que logre iniciar fue este error:



En esta pantalla te dicen que el kernel del VirtualBox no ha cargado o que tienes un tema de permiso con la ruta /dev/vboxdrv, y que reinstales el kernel ejecutando el comando:


/etc/init.d/vboxdrv setup

Yo me encontre que el vboxdrv no existe en la ruta indicada, asi que no podía hacer nada. Leyendo en la Web me decían que una solución era instalar el VirtualBox 4.2 desde https://www.virtualbox.org/wiki/Downloads. Me decicí ha instalar esta versión.


Primero, borre la versión actual del VirtualBox con sudo apt-get remove virtualbox.
Luego ejecute un sudo apt-get autoremove
Procedí a instalar el paquete descargado con el comando: dpkg -i virtualbox-4.2_4.2.12-84980~Ubuntu~quantal_amd64.deb.

Todo bien, hasta que nuevamente fui a arrancar el VirtualBox y de nuevo, el mismo mensaje de error!!!

Realice varias reinstalaciones, las cuales no resolvieron el problema. En alguna de ellas, pedía que instalaras algunas dependencias (libpython2.7 o superior, psmisc, entre otros) , pero instalandolas fue en vano; seguía con el error. Por recomendación de un foro (http://superuser.com/questions/487956/not-able-to-install-any-software-via-apt-get-install) ejecute: apt-get -f install y nuevamente removi el VirtualBox con sudo apt-get remove virtualbox-4.2. 

La real solución la encontre en este foro 

Re: VirtualBox Kernel driver not installed (rc=-1908) Ubutnu 12.10

set up PPA for virtualbox like a civilized man and let your system figure things out
http://www.ubuntuupdates.org/ppa/virtualbox.org_contrib

Code:
sudo apt-get update
apt-cache search virtualbox
if you get virtualbox-4.2 in results
Code:
sudo apt-get install virtualbox-4.2
Last edited by Vaphell; March 28th, 2013 at 05:30 PM.


¿Que dice Aquí?
Que debes configurar tus sources.list para que descargues el VirtualBox 4.2 desde las listas fuentes (sources list) y este se encargará de todo!

Y como haces esto?
1. Abres tu terminal y ejecutas el siguiente comando: wget -q -O - http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc | sudo apt-key add -

2. En esta misma terminal, ejecutas el siguiente comando: sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian raring non-free contrib" >> /etc/apt/sources.list.d/virtualbox.org.list'. Este comando es el que te crea un sources list exclusivo para VirtualBox. Bien podías haber agregado esta ruta en el archivo sources.list, pero por cuestión de orden muchos recomiendan tener las fuentes que no son por defecto en otro archivo.
3. Ejecuta el sudo apt-get update, para actualizar tus listados. Esto hara que el APT encuentre el Virtualbox-4.2.
4. Ejecutas el apt-cache search virtualbox, esto se hace para ver si la actualización del punto anterior funciono y nos muestra disponible el virtualbox-4.2.
5. Antes de instalar el paquete de virtualbox-4.2, es recomendable que nstales los siguientes paquetes, los cuales teienen que ver con el bendito kernel del VirtualBox y además son útiles cuando desees instalar el GA (Guest Additions):
dkms
- build-essential
- linux-headers-generic (Ubuntu) o linux-headers-{amd64 OR 686-pae OR 486} (Si usas Debian)
6. Ejecutas: sudo apt-get install virtualbox-4.2

Obtuviste un error al instalar el virtualbox-4.2?, después de haber realizado este monton de pasos! Es posible que algun paquete no se instale o falte. En mi caso falto el linux-headers-3.5.0-28-generic, por lo cual realice nuevamente!!! un sudo apt-get remove virtualbox-4.2, realice la instalación del paquete ejecutando sudo apt-get install linux-headers-3.5.0-28-generic, para finalmente volver a instalar el VirtualBox con sudo apt-get install virtualbox-4.2.

Accede a tu VirtualBox y buala, ya debe arrancar tu virtual!!!



Abajo detalle de los mensajes obtenidos ejecutando los comandos de arriba.

Resultado del Paso #4 (La búsqueda del virtualbox 4.2 con apt-cache search virtualbox)
raccode@localhost:apt-cache search virtualbox
libvirt-bin - programs for the libvirt library
libvirt-dev - development files for the libvirt library
libvirt-doc - documentation for the libvirt library
libvirt0 - library for interfacing with different virtualization systems
libvirt0-dbg - library for interfacing with different virtualization systems
python-libvirt - libvirt Python bindings
virtualbox-guest-additions - transitional package for virtualbox-guest-additions-iso
virtualbox-guest-additions-iso - guest additions iso image for VirtualBox
imvirt - detects several virtualizations
imvirt-helper - helper programs to detect several virtualizations
libimvirt-perl - Perl module for detecting several virtualizations
testdrive-cli - run the daily Ubuntu ISO in a virtual machine (command line)
testdrive-common - run the daily Ubuntu ISO in a virtual machine (common files)
testdrive-gtk - run the daily Ubuntu ISO in a virtual machine (GTK Front-end)
vagrant - Tool for building and distributing virtualized development environments
virtualbox - x86 virtualization solution - base binaries
virtualbox-dbg - x86 virtualization solution - debugging symbols
virtualbox-dkms - x86 virtualization solution - kernel module sources for dkms
virtualbox-fuse - x86 virtualization solution - virtual filesystem
virtualbox-guest-dkms - x86 virtualization solution - guest addition module source for dkms
virtualbox-guest-source - x86 virtualization solution - guest addition module source
virtualbox-guest-utils - x86 virtualization solution - non-X11 guest utilities
virtualbox-guest-x11 - x86 virtualization solution - X11 guest utilities
virtualbox-ose - transitional package for virtualbox
virtualbox-ose-dbg - transitional package for virtualbox-dbg
virtualbox-ose-dkms - transitional package for virtualbox-dkms
virtualbox-ose-fuse - transitional package for virtualbox-fuse
virtualbox-ose-guest-dkms - transitional package for virtualbox-guest-dkms
virtualbox-ose-guest-source - transitional package for virtualbox-guest-source
virtualbox-ose-guest-utils - transitional package for virtualbox-guest-utils
virtualbox-ose-guest-x11 - transitional package for virtualbox-guest-x11
virtualbox-ose-qt - transitional package for virtualbox-qt
virtualbox-ose-source - transitional package for virtualbox-source
virtualbox-qt - x86 virtualization solution - Qt based user interface
virtualbox-source - x86 virtualization solution - kernel module source
xmount - tool to crossmount between multiple input and output harddisk images
unity-lens-vm - Lens to search/start available VirtualBox VMs
virtualbox-4.2 - Oracle VM VirtualBox
raccode@localhost:


Resultado de Instalar el VirtualBox 4.2 (Paso #6). Error por falta de un paquete
raccode@localhost: sudo apt-get install virtualbox-4.2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  dkms libsdl-ttf2.0-0 linux-headers-3.5.0-28
  linux-headers-3.5.0-28-lowlatency python-central
Suggested packages:
  dpkg-dev debhelper
Recommended packages:
  linux-headers
The following NEW packages will be installed:
  dkms libsdl-ttf2.0-0 linux-headers-3.5.0-28
  linux-headers-3.5.0-28-lowlatency python-central virtualbox-4.2
0 upgraded, 6 newly installed, 0 to remove and 7 not upgraded.
Need to get 76.9 MB/77.0 MB of archives.
After this operation, 210 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://pa.archive.ubuntu.com/ubuntu/ quantal/universe libsdl-ttf2.0-0 amd64 2.0.11-2 [17.1 kB]
Get:2 http://download.virtualbox.org/virtualbox/debian/ raring/contrib virtualbox-4.2 amd64 4.2.12-84980~Ubuntu~raring [63.8 MB]
Get:3 http://pa.archive.ubuntu.com/ubuntu/ quantal-updates/main linux-headers-3.5.0-28 all 3.5.0-28.48 [12.1 MB]
Get:4 http://pa.archive.ubuntu.com/ubuntu/ quantal-updates/universe linux-headers-3.5.0-28-lowlatency amd64 3.5.0-28.32 [969 kB]
Get:5 http://pa.archive.ubuntu.com/ubuntu/ quantal/universe python-central all 0.6.17ubuntu2 [41.4 kB]
Fetched 76.9 MB in 5min 1s (256 kB/s)                                          
Preconfiguring packages ...
Selecting previously unselected package libsdl-ttf2.0-0:amd64.
(Reading database ... 135757 files and directories currently installed.)
Unpacking libsdl-ttf2.0-0:amd64 (from .../libsdl-ttf2.0-0_2.0.11-2_amd64.deb) ...
Selecting previously unselected package virtualbox-4.2.
Unpacking virtualbox-4.2 (from .../virtualbox-4.2_4.2.12-84980~Ubuntu~raring_amd64.deb) ...
Selecting previously unselected package dkms.
Unpacking dkms (from .../dkms_2.2.0.3-1.1ubuntu1.1_all.deb) ...
Selecting previously unselected package linux-headers-3.5.0-28.
Unpacking linux-headers-3.5.0-28 (from .../linux-headers-3.5.0-28_3.5.0-28.48_all.deb) ...
Selecting previously unselected package linux-headers-3.5.0-28-lowlatency.
Unpacking linux-headers-3.5.0-28-lowlatency (from .../linux-headers-3.5.0-28-lowlatency_3.5.0-28.32_amd64.deb) ...
Selecting previously unselected package python-central.
Unpacking python-central (from .../python-central_0.6.17ubuntu2_all.deb) ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for shared-mime-info ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for man-db ...
Setting up libsdl-ttf2.0-0:amd64 (2.0.11-2) ...
Setting up virtualbox-4.2 (4.2.12-84980~Ubuntu~raring) ...
addgroup: The group `vboxusers' already exists as a system group. Exiting.
 * Stopping VirtualBox kernel modules                                    [ OK ] 
 * Uninstalling old VirtualBox DKMS kernel modules                       [ OK ] 
 * Trying to register the VirtualBox kernel modules using DKMS                  Error! Your kernel headers for kernel 3.5.0-28-generic cannot be found.
Please install the linux-headers-3.5.0-28-generic package,
or use the --kernelsourcedir option to tell DKMS where it's located

 * Failed, trying without DKMS
 * Recompiling VirtualBox kernel modules                                        
 * Look at /var/log/vbox-install.log to find out what went wrong
Setting up dkms (2.2.0.3-1.1ubuntu1.1) ...
Setting up linux-headers-3.5.0-28 (3.5.0-28.48) ...
Setting up linux-headers-3.5.0-28-lowlatency (3.5.0-28.32) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.5.0-28-lowlatency /boot/vmlinuz-3.5.0-28-lowlatency
Setting up python-central (0.6.17ubuntu2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place


Removiendo el VirtualBox e instalando el Paquete:
raccode@localhost:$ sudo apt-get remove virtualbox-4.2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  dkms libsdl-ttf2.0-0 linux-headers-3.5.0-28
  linux-headers-3.5.0-28-lowlatency python-central
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  virtualbox-4.2
0 upgraded, 0 newly installed, 1 to remove and 7 not upgraded.
After this operation, 139 MB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 159311 files and directories currently installed.)
Removing virtualbox-4.2 ...
 * Stopping VirtualBox kernel modules                                    [ OK ] 
Processing triggers for hicolor-icon-theme ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for shared-mime-info ...
Processing triggers for ureadahead ...

raccode@localhost: apt-cache search linux-headers-3.5.0-28-generic
linux-headers-3.5.0-28-generic - Linux kernel headers for version 3.5.0 on 64 bit x86 SMP

raccode@localhost:$ sudo apt-get install linux-headers-3.5.0-28-generic
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  dkms libsdl-ttf2.0-0 linux-headers-3.5.0-28-lowlatency python-central
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  linux-headers-3.5.0-28-generic
0 upgraded, 1 newly installed, 0 to remove and 7 not upgraded.
Need to get 956 kB of archives.
After this operation, 11.3 MB of additional disk space will be used.
Get:1 http://pa.archive.ubuntu.com/ubuntu/ quantal-updates/main linux-headers-3.5.0-28-generic amd64 3.5.0-28.48 [956 kB]
Fetched 956 kB in 4s (232 kB/s)                         
Selecting previously unselected package linux-headers-3.5.0-28-generic.
(Reading database ... 158575 files and directories currently installed.)
Unpacking linux-headers-3.5.0-28-generic (from .../linux-headers-3.5.0-28-generic_3.5.0-28.48_amd64.deb) ...
Setting up linux-headers-3.5.0-28-generic (3.5.0-28.48) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.5.0-28-generic /boot/vmlinuz-3.5.0-28-generic


Finalmente Instalando como Dios manda el VirtualBox
raccode@localhost:$ sudo apt-get install virtualbox-4.2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  virtualbox-4.2
0 upgraded, 1 newly installed, 0 to remove and 7 not upgraded.
Need to get 0 B/63.8 MB of archives.
After this operation, 139 MB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously unselected package virtualbox-4.2.
(Reading database ... 167154 files and directories currently installed.)
Unpacking virtualbox-4.2 (from .../virtualbox-4.2_4.2.12-84980~Ubuntu~raring_amd64.deb) ...
Processing triggers for ureadahead ...
Processing triggers for shared-mime-info ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for hicolor-icon-theme ...
Setting up virtualbox-4.2 (4.2.12-84980~Ubuntu~raring) ...
addgroup: The group `vboxusers' already exists as a system group. Exiting.
 * Stopping VirtualBox kernel modules                                    [ OK ] 
 * Uninstalling old VirtualBox DKMS kernel modules                       [ OK ] 
 * Trying to register the VirtualBox kernel modules using DKMS           [ OK ] 
 * Starting VirtualBox kernel modules                                    [ OK ] 
Processing triggers for python-central ...
raccode@localhost:

Comentarios

Entradas populares de este blog

Error al recuperar un generador de clases COM para el componente con CLSID {############} debido al siguiente error: 80040154

Hello Everyone!! Realmente no se si este mensaje de error es genérico o específio. Por ende, voy a decirles que si están: - Usan Visual Studio 2010 - Windows 7 x64 - Y tan trantando de correr un programa desarrollado en una versión anterior al VS 2010 y que hace referencia a DLL's, entonces chequeate este video, porque te va a dar la solución: www.youtube.com/watch?v=pDtyGns6mOw Fin!!!

Como Aplicar un Patch a un Programa en Linux (How to Apply a Patch en Linux)

Los comandos aplicados en este articulo fueron realizados en la distro Kali 1.0 (based in Debian) Una de las ventajas de los programas (software) open source es que podemos descargar los paquetes fuentes de estos que son los que contienen todos los codigos fuentes. Con ellos podriamos, modificar el mismo y crear nuevas funcionalidades (features) o corregir algun fallo. Para mantener un orden o integridad, es bueno que las modificaciones hechas al paquete fuente original, se realicen en un patch file. El patch file es un archivo que debe aplicarse al codigo fuente original utilizando el comando con el nombre patch . Que contiene un archivo patch? Contiene lineas de codigo fuente de uno o mas archivos contenidos en el paquete fuente original. La extension de un archivo patch es .patch Consideraciones Cosas que hasta el momento no encontre en la Web y que debes de saber de como aplicar un Patch son: 1.  El patch se aplica al paquete fuente de la aplicacion que deseas aplicar

Pasar Valores de Ventana Hija a Padre (Pass values from Child to Parent Windows with PHP and Javascript)

En este articulo, la ventana hija es un listado de clientes, donde el usuario a darle clic a un cliente, se retorna el ID del Cliente a un objeto Input tipo  hidden y el Nombre del Cliente a un objeto Input tipo  Text . En la ventana padre agrega un hipervinculo como el siguiente: <a href="#" id="customer_search" onClick="showModalSendAndReturnValues('customers_search.php', ''); return false;">Abrir Ventana Hija</a> y crea dos objetos HTML Input: <input type="text" id="customer_name"> <input type="hidden" id="customer_id"> El evento onClick sera el que dispare la función que abre la ventana hija.  El return false , es importante ya que evita que la ventana padre se auto-refresque y nos lleve a otra pagina. La funcion showModalSendAndReturnValues , es un Javascript que puede ir en el header de tu pagina padre o en un archivo de funciones javas