VirtualBox Guest Additions - available for testing (alpha)

Valery Ushakov <[email protected]>
Newsgroups gmane.os.netbsd.ports.x86-64,gmane.os.netbsd.ports.i386
Message-ID <[email protected]>
I've finally got around to pick up work on VBox GA started by Haomai
Wang as 2013 GSoC project and completed by Arto Huusko the next year.

I've put preliminary results at

       ftp://ftp.netbsd.org/pub/NetBSD/misc/uwe/vbox-ga/ 
  aka http://ftp.netbsd.org/pub/NetBSD/misc/uwe/vbox-ga/

There are four tarballs for { 6.1.5, 7.0.1 } x { i386, amd64 }.  The
files are in /usr/local with symlinks from /stand and /usr/X11R7

Run:

  # modload vboxguest
  # VBoxService --pidfile /var/run/VBoxService.pid

If you have xorg.conf already, change device to "vboxvideo".  If you
run X -configure with vboxvideo driver installed, confugure will pick
it up automatically.

  Section "Device"
          Identifier  "Card0"
          Driver      "vboxvideo"
          ...
  EndSection

Change mouse driver to "vboxmouse":

  Section "InputDevice"
          Identifier  "Mouse0"
          Driver      "vboxmouse"
          #Driver     "mouse"
          #Option     "Protocol" "wsmouse"
          #Option     "Device" "/dev/wsmouse"
          Option      "ZAxisMapping" "4 5 6 7"
  EndSection

Add:

  VBoxClient --display
  VBoxClient --clipboard

to your xinitrc.

For the clipboard to work you need to have access to /dev/vboxguest.
Make it group-writeable and make sure you are in the right group.
Don't forget to enable shared clipboard in VM's "Devices" menu.  Don't
forget that plain xterm doesn't use clipboard by default, check
"Select to Clipboard" option in the VT options menu or set the
corresponding resource to true.

With barebones x environment resizing the guest window will happen
after a bit of delay.  I'm told this should work instantly with a
modern'ish desktop environments that acts on the notification
immediately.  Otherwise VBox will resize the display itself after a
short timeout.

Caveat emptor.

-uwe
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.