[Risolto] Installazione guest addition su ubuntu Mate

Installazione di Ubuntu su macchina virtuale (Virtualbox, Vmware, Qemu, Parallels, KVM, Xen, Virtual pc, ecc.), configurazione del software e gestione del sistema virtualizzato.
Avatar utente
RandomX
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 285
Iscrizione: venerdì 8 settembre 2006, 9:36
Desktop: mate
Distribuzione: Ubuntu 16.10 x86_64
Sesso: Maschile
Località: Rome
Contatti:

[Risolto] Installazione guest addition su ubuntu Mate

Messaggio da RandomX »

Ciao a tutti!
Ho installato ubuntu mate 32-bit sul mio pc con virtualbox. Quando vado a installare le guest addition monto e installo da terminale ma sembra che l'installazione per metà fallisca, cioè installa tutto ma a un certo punto "Building the main Guest Additions module ...fail!",
Ecco posto tutto quello che succede:

Codice: Seleziona tutto

Verifying archive integrity... All good.
Uncompressing VirtualBox 5.0.16 Guest Additions for Linux............
VirtualBox Guest Additions installer
Removing installed version 5.0.16 of VirtualBox Guest Additions...
Removing existing VirtualBox non-DKMS kernel modules ...done.
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules
The gcc utility was not found. If the following module compilation fails then
this could be the reason and you should try installing it.

The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.

Building the main Guest Additions module ...fail!
(Look at /var/log/vboxadd-install.log to find out what went wrong)
Doing non-kernel setup of the Guest Additions ...done.
Installing the Window System drivers
Installing X.Org Server 1.17 modules ...done.
Setting up the Window System to use the Guest Additions ...done.
You may need to restart the the Window System (or just restart the guest system)
to enable the Guest Additions.

Installing graphics libraries and desktop services components ...done.
Come scritto nel messaggio Mi dice di andare a controllare il log in var

Codice: Seleziona tutto

grep: /lib/modules/4.2.0-30-generic/build/include/linux/version.h: File o directory non esistente
make KBUILD_VERBOSE=1 CONFIG_MODULE_SIG= -C /lib/modules/4.2.0-30-generic/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 modules
./scripts/gcc-version.sh: riga 25: gcc: comando non trovato
./scripts/gcc-version.sh: riga 26: gcc: comando non trovato
arch/x86/Makefile:123: stack-protector enabled but compiler support broken
Makefile:669: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
make[1]: gcc: comando non trovato
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (		\
echo >&2;							\
echo >&2 "  ERROR: Kernel configuration is invalid.";		\
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";	\
echo >&2 ;							\
/bin/false)
mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
make -f ./scripts/Makefile.build obj=/tmp/vbox.0
  gcc -Wp,-MD,/tmp/vbox.0/.VBoxGuest-linux.o.d  -nostdinc -isystem   -I./arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated  -Iinclude -I./arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include  -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -msoft-float -mregparm=3 -freg-struct-return -fno-pic -march=i686 -ffreestanding -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -O2 -fstack-protector-strong -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wno-declaration-after-statement -include /tmp/vbox.0/include/VBox/VBoxGuestMangling.h -I/lib/modules/4.2.0-30-generic/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -I/tmp/vbox.0/vboxguest/ -I/tmp/vbox.0/vboxguest/include -I/tmp/vbox.0/vboxguest/r0drv/linux -D__KERNEL__ -DMODULE -DVBOX -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_GUEST -DIN_GUEST_R0 -DIN_MODULE -DRT_WITH_VBOX -DVBGL_VBOXGUEST -DVBOX_WITH_HGCM -DRT_ARCH_X86  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(VBoxGuest_linux)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxguest)" -c -o /tmp/vbox.0/.tmp_VBoxGuest-linux.o /tmp/vbox.0/VBoxGuest-linux.c
/bin/sh: 1: gcc: not found
scripts/Makefile.build:258: set di istruzioni per l'obiettivo "/tmp/vbox.0/VBoxGuest-linux.o" non riuscito
make[2]: *** [/tmp/vbox.0/VBoxGuest-linux.o] Errore 127
Makefile:1398: set di istruzioni per l'obiettivo "_module_/tmp/vbox.0" non riuscito
make[1]: *** [_module_/tmp/vbox.0] Errore 2
/tmp/vbox.0/Makefile.include.footer:79: set di istruzioni per l'obiettivo "vboxguest" non riuscito
make: *** [vboxguest] Errore 2
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.

Che cosa posso fare??? :( :( :(
Grazie per l'aiuto :)
Ultima modifica di RandomX il mercoledì 16 marzo 2016, 18:49, modificato 1 volta in totale.
Avatar utente
steff
Moderatore Globale
Moderatore Globale
Messaggi: 40301
Iscrizione: domenica 18 febbraio 2007, 19:48
Desktop: LXQt+labwc
Distribuzione: Arch; Debian; Ubuntu Server
Sesso: Maschile
Località: Toscana
Contatti:

Re: [Problema] Installazione guestaddition su ubuntu Mate

Messaggio da steff »

Codice: Seleziona tutto

make[1]: gcc: comando non trovato
Prova a installare le build-essential
Hai fatto un backup oggi? Ieri?? Quando???
La Documentazione da consultare e la FAQ sul uso del forum
Sistemi: LXQt - semplice, modulare e configurabile + *ubuntu in Vbox
caturen
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 17946
Iscrizione: giovedì 8 aprile 2010, 18:41
Desktop: diversi
Distribuzione: debian

Re: Installazione guest addition su ubuntu Mate

Messaggio da caturen »

Codice: Seleziona tutto

The headers for the current running kernel were not found. 
Avatar utente
axilot
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 2704
Iscrizione: lunedì 7 luglio 2008, 17:29
Distribuzione: Ubuntu 16.04 64bit

Re: Installazione guest addition su ubuntu Mate

Messaggio da axilot »

Quoto Steff
devi installare le build-essential e dkms

Codice: Seleziona tutto

sudo apt-get install build-essential dkms 
Ps. dkms potrebbe essere già installato
"Experience, the name men give to their mistakes" (O.Wilde)
Pc principale: Ubuntu 16.04 64Bit - Pc secondario: Ubuntu 18.04 64 Bit - Raspberry Pi: Rpi 1B+, Rpi 2, Rpi 3+, Rpi Zero W
Avatar utente
RandomX
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 285
Iscrizione: venerdì 8 settembre 2006, 9:36
Desktop: mate
Distribuzione: Ubuntu 16.10 x86_64
Sesso: Maschile
Località: Rome
Contatti:

Re: Installazione guest addition su ubuntu Mate

Messaggio da RandomX »

axilot [url=http://forum.ubuntu-it.org/viewtopic.php?p=4863106#p4863106][img]http://forum.ubuntu-it.org/images/icons/icona-cita.gif[/img][/url] ha scritto:Quoto Steff
devi installare le build-essential e dkms

Codice: Seleziona tutto

sudo apt-get install build-essential dkms 
Ps. dkms potrebbe essere già installato
Perfetto! Grazie! :D Mi mancava proprio tutto.. chissà perchè.. :o
Ora ho un altro problema.. ho reinstallato le guest addition, ho creato a macchina spenta una cartella condivisa che si monta automaticamente e posso sia leggere che scrivere.. però quando la apro dalla macchina mi dice "Impossibile mostrare il contenuto della cartella. Permessi non sufficienti per vedere il contenuto di «sf_shared»."
Ho visto sulla guida e altri topic che bisogna mandare in caso il comando sudo mount -t vboxfs.. ma quando lo lancio mi da:

Codice: Seleziona tutto

mount: unknown filesystem type 'vboxfs'
Cosa posso fare? :cry:
Avatar utente
RandomX
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 285
Iscrizione: venerdì 8 settembre 2006, 9:36
Desktop: mate
Distribuzione: Ubuntu 16.10 x86_64
Sesso: Maschile
Località: Rome
Contatti:

Re: Installazione guest addition su ubuntu Mate

Messaggio da RandomX »

Ho risolto facendo una partizione e installandoci ubuntu.
gg wp :birra:
Avatar utente
axilot
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 2704
Iscrizione: lunedì 7 luglio 2008, 17:29
Distribuzione: Ubuntu 16.04 64bit

Re: [Risolto] Installazione guest addition su ubuntu Mate

Messaggio da axilot »

Scusa il ritardo nella risposta
Era molto semplice dovevi aggiungere il tuo utente al gruppo vboxsf

bastava andare sotto "utenti e gruppi" -> "gestici gruppi" -> selezionare "vboxsf" ->"proprietà"
e spuntare il tuo username per includerlo nel gruppo vboxsf.

oppure da terminale

Codice: Seleziona tutto

sudo usermod -G vboxsf -a username
sempre con "username" il tuo nome utente.

Infine disconnettersi e riconnettersi ( o riavviare) e voilà la cartella diventa accessibile.

Comunque un installazione in dual boot è molto più performante che non in virtualbox.
"Experience, the name men give to their mistakes" (O.Wilde)
Pc principale: Ubuntu 16.04 64Bit - Pc secondario: Ubuntu 18.04 64 Bit - Raspberry Pi: Rpi 1B+, Rpi 2, Rpi 3+, Rpi Zero W
Scrivi risposta

Ritorna a “Ubuntu su macchina virtuale”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 4 ospiti