dijous, 8 d’octubre del 2015

Resoldre problema Guest Additions en VBox i Ubuntu 14

Sovint, que anem a instal·lar les guest additions de Virtual Box sobre Ubuntu, durant la instal·lació surt un error tal com:

Verifying archive integrity... All good.
Uncompressing VirtualBox 4.3.12 Guest Additions for Linux............
VirtualBox Guest Additions installer
Removing installed version 4.3.12 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules
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.15 modules ...done.
Setting up the Window System to use the Guest Additions ...done.
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.

Installing graphics libraries and desktop services components ...done.
Press Return to close this window...



Tal com diu el primer error, hi han fitxers de capçalera (headers) que no es troben; això pot ser degut a que els que hi han són antics. Per corregir-ho, podem provar de fer:

sudo apt-get remove dkms build-essential linux-headers-*

Això desinstal·larà  les capçaleres velles.
Llavors instal·lem de nou les capçaleres:

sudo apt-get install dkms build-essential linux-headers-$(uname -r)

És possible que si ara reiniciem, ja quedin actives les guest additions (la visualització haurà canviat); altrament, tornem a provar de instal·lar-les, i reiniciem.



Gestió d'usuaris i grups en Linux

Usuaris i grups Linux  Els comptes de Linux són com els comptes de Windows o MacOS; però els detalls no, així que cal explicar alguns detall...