[Risolto] [Kernel] virtualbox non funziona piu' su Ubuntu 10.10

Problemi riscontrati durante l'installazione di Ubuntu, degli aggiornamenti e degli avanzamenti del sistema.
Avatar utente
treviz
Prode Principiante
Messaggi: 9
Iscrizione: venerdì 28 dicembre 2007, 2:40
Località: Prato

[Risolto] [Kernel] virtualbox non funziona piu' su Ubuntu 10.10

Messaggio da treviz »

:-\
Scusate la domanda forse banale, sono abbastanza alle prime armi con la programmazione anche se fedele utilizzatore sia a casa sia in ufficio (nonchè spacciatore!) di Ubuntu fin dalla 7.04 ......... >:(
Passando dalla 10.04 alla distro 10.10 non ho piu' potuto utilizzare virtualbox (per le solite winzozzate residue)che mi da questo messaggio


Codice: Seleziona tutto

Apertura di una sessione per la Macchina Virtuale seven non riuscita.
The virtual machine 'seven' has terminated unexpectedly during startup with exit code 1.
e subito dopo in altra finestra

Codice: Seleziona tutto

Kernel driver not installed (rc=-1908)

The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing 

'/etc/init.d/vboxdrv setup'

as root. Users of Ubuntu, Fedora or Mandriva should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary. 
premetto che ho tentato sia con la versione di default compresa nelle applicazioni di Ubuntu software center che
con la versione scaricata dal sito di virtual box con il risultato di avere gli stessi messaggi.
ho provato a disinstallare tutto e reinstallare nuovamente anche con il gestore pacchetti.
ho aggiornato le sorgenti software, ho scaricato le chiavi pubbliche e abilitato tutte le sorgenti multiverse, terze parti ecc.

dando il comando suggerito da virtualbox ottengo nel terminale:

Codice: Seleziona tutto

alessandro@alessandro-desktop:~$ /etc/init.d/vboxdrv setup
 * Stopping VirtualBox kernel modules                                    [ OK ] 
 * Uninstalling old VirtualBox DKMS kernel modules
  /etc/init.d/vboxdrv: 386: cannot create /var/log/vbox-install.log: Permission denied
                                                                         [ OK ]
 * Trying to register the VirtualBox kernel modules using DKMS
  /etc/init.d/vboxdrv: 386: cannot create /var/log/vbox-install.log: Permission denied

 * Failed, trying without DKMS
 * Recompiling VirtualBox kernel modules 
    /etc/init.d/vboxdrv: 386: cannot create /var/log/vbox-install.log: Permission denied

 * Look at /var/log/vbox-install.log to find out what went wrong
alessandro@alessandro-desktop:~$
controllando il file .log ho trovato:

Codice: Seleziona tutto

Uninstalling modules from DKMS
  removing old DKMS module vboxhost version  4.0.4

------------------------------
Deleting module version: 4.0.4
completely from the DKMS tree.
------------------------------
Done.
Attempting to install using DKMS

Creating symlink /var/lib/dkms/vboxhost/4.0.4/source ->
                 /usr/src/vboxhost-4.0.4

DKMS: add Completed.
You can use the --kernelsourcedir option to tell DKMS where it's located, or you could install the linux-headers-2.6.32-24-generic package.
Failed to install using DKMS, attempting to install without
Makefile:167: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Arresto. 
e a questo punto mi arresto anche io............ ::)  se qualcuno potesse gentilmente aiutarmi...., ho girellato un po' ma
nn sono riuscito a trovare una soluzione  (forse ho qualcosa che non va nel kernel magari nel sources.list da aggiornare....) Grazie in anticipo
Ultima modifica di treviz il sabato 5 marzo 2011, 0:21, modificato 1 volta in totale.
Avatar utente
yves
Rampante Reduce
Rampante Reduce
Messaggi: 5422
Iscrizione: domenica 25 dicembre 2005, 2:23
Località: Argentina - BsAs
Contatti:

Re: [Kernel] virtualbox non funziona piu' su Ubuntu 10.10

Messaggio da yves »

A naso direi che ti mancano gli headers, comunque hai tentato di compilare il driver senza "sudo", prova ad installare questa roba:

Codice: Seleziona tutto

sudo apt-get install linux-headers-$(uname -r) build-essential gcc
e quindi riprova a compilare il modulo:

Codice: Seleziona tutto

sudo /etc/init.d/vboxdrv setup
Al giorno d'oggi i cani di razza muovono la coda solo per interesse. Ma io sono un bastardo... Tuxliberty
Riscopri il PC, installa ed usa Linux ;-) - Linux != Windows Linux User # 16486 - Jabber: yvesBsAs@jabber.org
Avatar utente
treviz
Prode Principiante
Messaggi: 9
Iscrizione: venerdì 28 dicembre 2007, 2:40
Località: Prato

Re: [Kernel] virtualbox non funziona piu' su Ubuntu 10.10

Messaggio da treviz »

provando......

Codice: Seleziona tutto

alessandro@alessandro-desktop:~$ sudo apt-get install linux-headers-$(uname -r) build-essential gcc
[sudo] password for alessandro: 
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze       
Lettura informazioni sullo stato... Fatto
E: Impossibile trovare il pacchetto linux-headers-2.6.32-24-generic
E: Impossibile trovare alcun pacchetto tramite l'espressione regolare "linux-headers-2.6.32-24-generic"
alessandro@alessandro-desktop:~$ sudo /etc/init.d/vboxdrv setup
 * 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 2.6.32-24-generic cannot be found at
/lib/modules/2.6.32-24-generic/build or /lib/modules/2.6.32-24-generic/source.

 * Failed, trying without DKMS
 * Recompiling VirtualBox kernel modules                                        
 * Look at /var/log/vbox-install.log to find out what went wrong
alessandro@alessandro-desktop:~$ 
mi sa che hai ragione, dovrei capire come installare gli headers....
Ultima modifica di treviz il venerdì 4 marzo 2011, 23:58, modificato 1 volta in totale.
Avatar utente
yves
Rampante Reduce
Rampante Reduce
Messaggi: 5422
Iscrizione: domenica 25 dicembre 2005, 2:23
Località: Argentina - BsAs
Contatti:

Re: [Kernel] virtualbox non funziona piu' su Ubuntu 10.10

Messaggio da yves »

Tu sei sulla 10.10 ma continui ad usare il kernel della 10.04  ???

Prova a dare:

Codice: Seleziona tutto

sudo update-grub
una volta fatto pasta cosa risponde
Al giorno d'oggi i cani di razza muovono la coda solo per interesse. Ma io sono un bastardo... Tuxliberty
Riscopri il PC, installa ed usa Linux ;-) - Linux != Windows Linux User # 16486 - Jabber: yvesBsAs@jabber.org
Avatar utente
treviz
Prode Principiante
Messaggi: 9
Iscrizione: venerdì 28 dicembre 2007, 2:40
Località: Prato

Re: [Kernel] virtualbox non funziona piu' su Ubuntu 10.10

Messaggio da treviz »

ci avevo pensato.....

ecco

Codice: Seleziona tutto

alessandro@alessandro-desktop:~$ sudo update-grub
[sudo] password for alessandro: 
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.35-28-generic
Found kernel: /boot/vmlinuz-2.6.35-27-generic
Found kernel: /boot/vmlinuz-2.6.35-25-generic
Found kernel: /boot/vmlinuz-2.6.35-24-generic
Found kernel: /boot/vmlinuz-2.6.35-23-generic
Found kernel: /boot/vmlinuz-2.6.35-22-generic
Found kernel: /boot/vmlinuz-2.6.32-24-generic
Found kernel: /boot/vmlinuz-2.6.31-21-generic
Found kernel: /boot/vmlinuz-2.6.28-16-generic
Found kernel: /boot/vmlinuz-2.6.28-15-generic
Found kernel: /boot/vmlinuz-2.6.28-14-generic
Found kernel: /boot/vmlinuz-2.6.28-11-generic
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done
Ultima modifica di treviz il venerdì 4 marzo 2011, 23:59, modificato 1 volta in totale.
Avatar utente
treviz
Prode Principiante
Messaggi: 9
Iscrizione: venerdì 28 dicembre 2007, 2:40
Località: Prato

Re: [Kernel] virtualbox non funziona piu' su Ubuntu 10.10

Messaggio da treviz »

posto anche il menu.lst perchè se ho capito bene ho il kernel ma non lo carico........

Codice: Seleziona tutto

# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default		0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout		10

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title		Windows 95/98/NT/2000
# root		(hd0,0)
# makeactive
# chainloader	+1
#
# title		Linux
# root		(hd0,1)
# kernel	/vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=a8d8166d-d284-480e-beb7-df57857de437 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=a8d8166d-d284-480e-beb7-df57857de437

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
##      indomU=true
##      indomU=false
# indomU=detect

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title		Ubuntu 10.04.1 LTS, kernel 2.6.32-24-generic
uuid		a8d8166d-d284-480e-beb7-df57857de437
kernel		/boot/vmlinuz-2.6.32-24-generic root=UUID=a8d8166d-d284-480e-beb7-df57857de437 ro quiet splash 
initrd		/boot/initrd.img-2.6.32-24-generic
quiet

title		Ubuntu 10.04.1 LTS, kernel 2.6.32-24-generic (recovery mode)
uuid		a8d8166d-d284-480e-beb7-df57857de437
kernel		/boot/vmlinuz-2.6.32-24-generic root=UUID=a8d8166d-d284-480e-beb7-df57857de437 ro  single nmi_watchdog=0
initrd		/boot/initrd.img-2.6.32-24-generic

title		Ubuntu 10.04.1 LTS, memtest86+
uuid		a8d8166d-d284-480e-beb7-df57857de437
kernel		/boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title		Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title		Microsoft Windows XP Home Edition
rootnoverify	(hd0,0)
savedefault
makeactive
chainloader	+1

title		Microsoft Windows 7 Home Premium
rootnoverify	(hd1,0)
savedefault
makeactive
chainloader	+1
:(
Ultima modifica di treviz il venerdì 4 marzo 2011, 23:55, modificato 1 volta in totale.
Avatar utente
yves
Rampante Reduce
Rampante Reduce
Messaggi: 5422
Iscrizione: domenica 25 dicembre 2005, 2:23
Località: Argentina - BsAs
Contatti:

Re: [Kernel] virtualbox non funziona piu' su Ubuntu 10.10

Messaggio da yves »

Sei ancora con Grub-legacy

Segui attentamente questo mio post
in seguito riavvia ed installa i pacchetti di prima:

Codice: Seleziona tutto

sudo apt-get install linux-headers-$(uname -r) build-essential gcc
e compila il modulo:

Codice: Seleziona tutto

sudo /etc/init.d/vboxdrv setup
dovrebbe essere a posto.

[EDIT] Modifica i tuoi post precedenti ed inserisci i risultati dei comandi nei tag "code" (pulsante "#" nel modulo di risposta), come in esempio:
Immagine

Ciao.
Ultima modifica di yves il venerdì 4 marzo 2011, 0:37, modificato 1 volta in totale.
Al giorno d'oggi i cani di razza muovono la coda solo per interesse. Ma io sono un bastardo... Tuxliberty
Riscopri il PC, installa ed usa Linux ;-) - Linux != Windows Linux User # 16486 - Jabber: yvesBsAs@jabber.org
Avatar utente
treviz
Prode Principiante
Messaggi: 9
Iscrizione: venerdì 28 dicembre 2007, 2:40
Località: Prato

Re: [Risolto] [Kernel] virtualbox non funziona piu' su Ubuntu 10.10

Messaggio da treviz »

Grazie mille ho risolto piu' o meno seguendo le istruzioni che mi hai fornito.
Ho installato il Grub2 e tutto ok, almeno all'inizio,  poi ho fatto un po' di confusione
nell'associazione dei vari hd......... ho due hd partizionati dove tengo xp e ubuntu ed un'altro dove
ho seven quindi non sapevo come organizzare le cose poi ho scovato un cd per ripristinare il grub
che è stato abbastanza facile da usare anche per un neofita come me tal rescatux 0.23 che ho beccato sul web
masterizzandolo su cd consente in ogni momento di risistemare il Grub..... in maniera abbastanza semplice
In definitiva  la virtualbox è finalmente ripartita ed ho potuto installare i vari os.
Grazie infinite, Viva Ubuntu e la sua splendida comunità! (good)
Scrivi risposta

Ritorna a “Installazione e aggiornamento del sistema operativo”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 8 ospiti