virtualbox guest additions problem, ububtu-17.04
Stuart McGraw
smcg4191 at mtneva.com
Thu Sep 14 01:06:40 UTC 2017
On 09/13/2017 12:58 AM, Duane Whitty wrote:
> On 17-09-13 12:50 AM, Stuart McGraw wrote:
>> Hello,
>>
>> I am a new Ubuntu user or at least I want to be but am
>> hitting a major install roadblock. I am installing
>> Ubuntu-17.04 as a VirtualBox guest and need to install
>> the VirtualBox guest additions.
>>
>> The instructions I've seen on the internet are all over
>> the place in terms of what needs to be done.
>> [...]
>
> I've had to turn off video acceleration as I was getting terrible
> flicker and a very slow to respond system.
>
> Here's what I do in the guest Ubuntu environment:
>
> (Following commands / actions are run on the guest, not the host)
>
> $> sudo apt-get install build-essential linux-headers-virtual dkms
>
> In VirtualBox manager go to the devices menu and select "Insert Guest
> Additions CD"
>
> $> sudo mkdir -p /media/cdrom
>
> $> sudo mount /dev/cdrom /media/cdrom
>
> $> sudo sh /media/cdrom/VBoxLinuxAdditions.run
>
> Now restart the guest: $> sudo reboot
> [...]
>
> Best Regards,
> Duane
>
Thanks for that... I didn't quite work as is but gave me a
good starting point.
In case it helps anyone else...
Turns out (I think) that the VirtualBox Guest Additions for
my version of VirtualBox (5.1.10) breaks with 4.9 and and
4.10 kernels [*1] (Ubuntu 17.04 has a 4.10 kernel). The
Devices -> Insert Guest Additions CD
menu option will only download and mount the iso for the host
VB version (in my case 5.1.10) and when VBoxLinuxAdditions.run
tries to install it, it fails with this error recorded in
/var/log/vboxadd-install.log:
[...]
/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:1067:18: error: too few arguments to function ‘get_user_pages_remote’
rc = get_user_pages_remote(
^~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:98:0,
from /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:31:
./include/linux/mm.h:1289:6: note: declared here
long get_user_pages_remote(struct task_struct *tsk, struct mm_struct *mm,
^~~~~~~~~~~~~~~~~~~~~
scripts/Makefile.build:294: recipe for target '/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.o' failed
[...]
Solution for me was to manually download
http://download.virtualbox.org/virtualbox/5.1.22/VBoxGuestAdditions_5.1.22.iso
(that version because the Ubuntu VB packages seem to be
that version) and mount in the VM as a regular CD. Was
then able to run VBoxLinuxAdditions.run from the CD and
it completed without problems. And after after enabling
shared folders and bidirectional copy-paste everything
is working great!
I understand that using mismatched versions of guest and
host software is frowned upon but it seems to work whereas
the matched versions definitely didn't!
I still don't understand what all the virtualbox-guest-*
packages in the Ubuntu repositories are for but other
than curiosity it is moot for me at this point.
----
[*1] https://www.virtualbox.org/ticket/16155
seems like the same problem, says was fixed in 5.1.10 but
commenters disagree.
More information about the ubuntu-users
mailing list