Harry Putnam wrote:
Setup:

   Installing X on Vbox vm runnning gentoo (amd64 not strict).  Host
   is win10 (64bit)

Installing the xorg-server is calling for the installation of
app-emulation/virtualbox-guest-additions-5.0.32

However, my version of vbox is for a windows host (5.1.14).  And
actually has the guest additions for that version already installed.

Also before I noticed what was getting installed emerge had tried and
failed to install the cited above package.

I noticed the version that matches my vbox version (5.1.14) is
available but masked unless setting ~amd64.  I'm trying for a stable
setup so, put this in /etc/portage/package.accept_keywords:

  =app-emulation/virtualbox-guest-additions-5.1.14 ~amd64

I tried to emerge it directly with:
   emerge app-emulation/virtualbox-guest-additions

And sure enough emerge selected the right version but again the
install failed.  I did not understand the failure from the build log.

But since I have the proper version and am able to install it with the
regular method vbox expects (mount the additions and install with

 sh VBoxLinuxAdditions.run

And since that method uses the currently installed kernel for its
installation. Seems I can just reinstall the addtions using that
method and tell gentoo about it with package.provided.


Again no solution from me, but looking at the virtualbox-guest-additions-5.1.14.ebuild there is a postinst log which you probably did not see due to the emerge failure, that suggests a number of operations required to make the guest additions work properly:

        elog "Please add users to the \"vboxguest\" group so they can"
        elog "benefit from seamless mode, auto-resize and clipboard."
        elog ""
        elog "The vboxsf group has been added to make automount services work."
        elog "These services are part of the shared folders support."
        elog ""
        elog "Please add:"
        elog "/etc/init.d/${PN}"
        elog "to the default runlevel in order to start"
        elog "needed services."
        elog "To use the VirtualBox X driver, use the following"
        elog "file as your /etc/X11/xorg.conf:"
        elog "    /usr/share/doc/${PF}/xorg.conf.vbox"
        elog ""
        elog "Also make sure you use the Mesa library for OpenGL:"
        elog "    eselect opengl set xorg-x11"
        elog ""
        elog "An autostart .desktop file has been installed to start"
        elog "VBoxClient in desktop sessions."
        elog ""
        elog "You can mount shared folders with:"
        elog "    mount -t vboxsf <shared_folder_name> <mount_point>"
        elog ""
        elog "Warning:"
        elog "this ebuild is only needed if you are running gentoo"
        elog "inside a VirtualBox Virtual Machine, you don't need"
        elog "it to run VirtualBox itself."

If you did not do the above you might incur in trouble later. Apart from this if I were you I'd try to understand why the guest-additions emerge failed. Maybe you could try to post the ebuild log?

raffaele


Reply via email to