Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: vboxguest on 9.0-BETA



On Fri, 24 Apr 2020 at 05:10, itou keiki <ap98nb26u%gmail.com@localhost> wrote:
>
> Hi!
>
> I tried running Virtualbox Guest Addition with NetBSD-9.99.56/amd64. The host is Windows 10, Virtualbox-6.1.6. I appreciate the efforts of those involved.
>
> Because the version of xorg-server attached to NetBSD is 1.20.6, a patch like the link below was needed to make GuestAdditions of Virtualbox work. This is the difference against svn revision 83708.
>
> https://www.dropbox.com/s/hthsagl61oqhqhu/vbox-r83708-diff.txt.xz?dl=0
>
> * The mouse driver of Xorg.conf uses "ws".

'Xorg -configure' sets 'mouse', which I manually change to 'ws'. Good
if it is recognized properly, of course.

> * The clipboard sharing is bidirectional.

I don't think I've had the clipboard working at all, so I will check the patch.

> * The loadable kernel module is automatically loaded when the VBoxService is started.

That's how it always have worked for me, I have never manually loaded
vboxguest module (I always place it in the required location, though -
in yout case:

$ ls -l /stand/amd64/9.99.56/modules/vboxguest
total 352
-rwxr-xr-x 1 root wheel 332088 Apr 19 18:59 vboxguest.kmod
...


>
> With the above settings, things are working for the most part, but there is a small problem. I can select the screen resolution at Display->Virtual Screen 1 in the virtual machine, but it doesn't change. I can still change the screen size with xrandr though.

Since VirtualBox 6.1.6 VBoxClient no longer supports VBoxSVGA; even if
its help shows the '--display' qualifier, it noloner works:
...
$ /usr/local/bin/additions/VBoxClient --help
Usage: VBoxClient
--clipboard|--display|--checkhostversion|--seamless|--vmsvga|--vmsvga-x11[-d|--nodaemon]
Starts the VirtualBox DRM/X Window System guest services.

Options:
  --clipboard        starts the shared clipboard service
  --display          starts the display management service
  --checkhostversion starts the host version notifier service
  --seamless         starts the seamless windows service
  --vmsvga           starts VMSVGA dynamic resizing for DRM
  --vmsvga-x11       starts VMSVGA dynamic resizing for X11
  -f, --foreground   run in the foreground (no daemonizing)
  -d, --nodaemon     continues running as a system service
  -h, --help         shows this help text
  -v, --verbose      increases logging verbosity level
  -V, --version      shows version information

% /usr/local/bin/additions/VBoxClient --display
VBoxClient: error: unrecognized option '--display'
VBoxClient: info: Try 'VBoxClient --help' for more information
------

If the graphics selected is VBoxSVGA, you can still use '--display'
with the older versions of VBoxClient, e.g. 6.1.5:
----
$ /usr/local/bin/additions-99956/VBoxClient --display          #
version 6.1.6 fails
VBoxClient: error: unrecognized option '--display'
VBoxClient: info: Try 'VBoxClient --help' for more information
$ /usr/local/bin/additions-99954/VBoxClient --display          #
version 6.1.4 starts properly
$ ps ax | grep -i box
 500 ?     Ssl  0:15.53 /usr/local/bin/additions/VBoxService --pidfile
/var/run/VBoxService.pid
1935 ?     Ss   0:00.00 /usr/local/bin/additions-99954/VBoxClient --display
2193 ?     S    0:00.00 /usr/local/bin/additions-99954/VBoxClient --display
-----

>
> Phenomenon in the graphics controller VMSVGA
> * When vboxvideo is selected in the Driver of Xorg.conf, it does not start with an error.

If my /etc/X11/xorg.conf specifies vboxvideo, but I have selected
VMSVGA, then X does not start for me.

> * Virtual machine resets when running X with 256MB of video memory, OK for 128MB

I haven't tried anything above 128MB video memory yet.

>
> Phenomenon with graphics controller VBoxVGA/VBoxSVGA
>  X server does not start when I select vmware in the Driver of Xorg.conf

Of course, it wouldn't start with the wrong driver, you need driver 'vmware'.

>
> Do you have any thoughts or comments?

It would appear VBoxSVGA is phased out, as most of the guest operating
systems already have built-in 'vmware' graphics. If you select
VBoxSVGA display type, it display a permanent warning message that the
machine is configured with the wrong adapter, not with the recommended
VMSVGA.

The latest version of VBoxClient has --vmsvga and --vmsvga-x11 modes,
but I found that the former does not start at all, whereas the latter
starts but does not obtain the physical display sizes from VirtualBox;
with or without it xrandr works properly though - you can check the
available modes and resize the display to the value closest to
whatever you want.

I had initially problems with the mouse driver with the VMSVGA mode -
very likely my fault; eventually I sorted them out by selecting mouse
type 'multitouch tablet' and specifying

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "ws"
        Option      "Protocol" "wmmouse"
        Option      "Device" "/dev/wsmouse"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection

in xorg.conf; mind you, dmesg shows

% dmesg | grep mouse
[     1.008399] wsmouse0 at pms0 mux 0
[     5.096014] wsmouse1 at ums0 mux 0
[     6.708228] wsmouse2 at ums1 mux 0
[     6.708228] wsmouse3 at uts0 mux 0
[    29.765032] wsmouse4 at vboxguest0 mux 0

% ls -l /dev/wsmouse*
crw-------  1 root  wheel  65, 0 Jul 29  2019 /dev/wsmouse
crw-------  1 root  wheel  49, 0 Jul 29  2019 /dev/wsmouse0
crw-------  1 root  wheel  49, 1 Jul 29  2019 /dev/wsmouse1
crw-------  1 root  wheel  49, 2 Jul 29  2019 /dev/wsmouse2
crw-------  1 root  wheel  49, 3 Jul 29  2019 /dev/wsmouse3

To get it working, you have to select /dev/wsmouse in xorg.conf, it
didn't work with the rest for me.

There is one more glitch - NetBSD has virtio driver, the network
interface - vioif - also works, seems fine; however, there is also
viroscsi driver in GENERIC:
vioscsi* at virtio?                  # Virtio SCSI device

but this one does not recognize the vioscsi interface:
...
 Qumranet product 1048 (SCSI mass storage, revision 0x01) at pci0 dev
15 function 0 not configured
...

Perhaps this doesn't matter a lot, though.

>
> --
> SUNAGAWA Keiki
>
>
> -----Original Message-----
> From: current-users-owner%NetBSD.org@localhost <current-users-owner%NetBSD.org@localhost> On Behalf Of Chavdar Ivanov
> Sent: Thursday, August 1, 2019 10:10 PM
> To: NetBSD current-users <current-users%netbsd.org@localhost>
> Subject: vboxguest on 9.0-BETA
>
> Hi,
>
> FYI VirtualBox guest cleanly compiles and apparently works under 9.0-BETA; in this case I used fresh svn update:
> ...
> Starting local daemons:12:58:44.643043 main     VBoxService 6.0.97
> r80012 (verbosity: 0) netbsd.amd64 (Aug  1 2019 13:54:41) release log
> 12:58:44.643086 main     Log opened 2019-08-01T12:58:44.643017000Z
> 12:58:44.643227 main     OS Product: NetBSD
> 12:58:44.643239 main     OS Release: 9.0_BETA
> 12:58:44.643266 main     OS Version: NetBSD 9.0_BETA (GENERIC) #0: Tue
> Jul 30 16:52:10 UTC 2019
> mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC
> 12:58:44.643288 main     Executable: /usr/local/bin/additions/VBoxService
> 12:58:44.643294 main     Process ID: 25832
> 12:58:44.643299 main     Package type: BSD_64BITS_GENERIC
> 12:58:44.646075 main     6.0.97 r80012 started. Verbose level = 0
> .....
>
> LocalConfig.kmk:
> ...
> VBOX_WITHOUT_HARDENING := 1
>
> VBOX_ONLY_ADDITIONS := 1
> VBOX_WITH_ADDITION_DRIVERS := 1
> VBOX_WITH_X11_ADDITIONS := 1
> VBOX_ONLY_ADDITIONS_WITHOUT_RTISOMAKER := 1 ifeq ($(KBUILD_TARGET), netbsd)
> TEMPLATE_VBOXGUESTR3EXE_LIBS     = $(TEMPLATE_VBOXR3EXE_LIBS) crypt
> endif
> ......
> 9.0BETA# /usr/local/bin/additions/VBoxControl version Oracle VM VirtualBox Guest Additions Command Line Management Interface Version 6.0.97
> (C) 2008-2019 Oracle Corporation
> All rights reserved.
>
> 6.0.97r80012
> 9.0BETA# ps ax | grep VBox
>   190 ?     Is   0:00.00 /usr/local/bin/additions/VBoxClient --clipboard
>  7090 ?     Isl  0:00.16 /usr/local/bin/additions/VBoxService
> --pidfile /var/run/VBoxService.pid
> 24395 ?     Is   0:00.00 /usr/local/bin/additions/VBoxClient --display
> 25517 ?     Il   0:00.01 /usr/local/bin/additions/VBoxClient --clipboard
> 26513 ?     I    0:00.01 /usr/local/bin/additions/VBoxClient --display
>  1023 pts/3 O+   0:00.00 grep --color=auto --exclude=.bzr
> --exclude=CVS --exclude=.git --exclude=.hg --exclude=.svn VBox
>
>
>
> --
> ----
>


Chavdar

-- 
----


Home | Main Index | Thread Index | Old Index