web-dev-qa-db-fra.com

Installation des ajouts sur l'invité Xubuntu

Iam n'a pas réussi à installer des ajouts sur un invité Xubuntu 17.10, hébergé sur un Xubuntu 16.04.

J'ai démarré l'hôte, cliqué sur les périphériques, inséré un cd additionnel d'invité, l'iso a été téléchargé sur mon hôte, puis inséré en tant que CD pour l'invité. Ensuite, je lance Sudo ./VBoxLinuxAdditions.run et j'obtiens le résultat d'erreur suivant:

myuser@myuser-VirtualBox:/media/myuser/VBOXADDITIONS_5.0.40_115130$ Sudo ./VBoxLinuxAdditions.run 
[Sudo] password for myuser: 
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.0.40 Guest Additions for Linux............
VirtualBox Guest Additions installer
You appear to have a version of the VBoxGuestAdditions software
on your system which was installed from a different source or using a
different type of installer.  If you installed it from a package from your
Linux distribution or if it is a default part of the system then we strongly
recommend that you cancel this installation and remove it properly before
installing this version.  If this is simply an older or a damaged
installation you may safely proceed.

Do you wish to continue anyway? [yes or no]
yes
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
update-initramfs: Generating /boot/initrd.img-4.13.0-16-generic
update-initramfs: Generating /boot/initrd.img-4.13.0-17-generic
grep: /opt/VBoxGuestAdditions-*/init/*: No such file or directory
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.

C’est pourquoi j’essaie d’installer les en-têtes du noyau actuel:

Ruby@ruby-VirtualBox:/media/myuser/VBOXADDITIONS_5.0.40_115130$ Sudo apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
linux-headers-4.13.0-17-generic is already the newest version (4.13.0-17.20).
linux-headers-4.13.0-17-generic set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.

Mais ils sont déjà à jour, alors quel est le problème ici? Je ne comprends pas non plus, de quoi provient ce You appear to have a version of the VBoxGuestAdditions software on your system. Jusqu'à présent, je n'installais que virtualbox-guest-dkms. Est-ce éventuellement un problème?

1
Jeno

le problème était donc que le noyau de l'invité était plus récent que celui de l'hôte. Je ne sais pas vraiment comment résoudre ce problème, mais je viens d'installer Xubuntu 16.04 dans une boîte virtuelle et tout a bien fonctionné.

1
Jeno