Page 1 of 1

FreeBSDVMSVGA driver can't automatically resize window

Posted: 31. Aug 2020, 14:22
by piggyz
Like in the subject. As we all knows, Oracle adopted VMSVGA VMware driver for unix guests.

Im BSD, even installing a mix of virtualbox-ose-additions (for clipboard share and mouse interaction) and vmware-guest-additions, it is impossible to resize the host OS windows automatically using mouse drag and drop with every window manager in X or wayland.

Any hint to overcome this big limitations?

Re: FreeBSDVMSVGA driver can't automatically resize window

Posted: 31. Aug 2020, 20:29
by scottgus1
I can't suggest any hints, but I can suggest it will very likely have to be a home-rolled solution.

From the manual, https://www.virtualbox.org/manual/ch03. ... tossupport :
FreeBSD:

Limited support.

Note that you must enable hardware virtualization when running FreeBSD.

Guest Additions are not available.
Without Guest Additions, there are no Virtualbox drivers for the video card available, so only basic video is available as supported by FreeBSD's drivers.

Oracle adopted the virtual VMSVGA video card, not VMware's drivers. From the manual https://www.virtualbox.org/manual/ch03. ... gs-display :
VMSVGA: Use this graphics controller to emulate a VMware SVGA graphics device


Installing 3rd-party drivers to handle Virtualbox-provided hardware that the guest OS doesn't have drivers for has worked (I did this once for a network card in an XP guest, and it works for virt-io setups.) Installing VMware drivers for the video card may or may not work. However, even if it does, the Guest Additions trigger won't be there, because the extra stuff that Guest Additions provides isn't generated for FreeBSD, so won't be calling out to the host to let the magic start.

Guest Additions for FreeBSD haven't been made because no (or not enough) Oracle customers want them.

Re: FreeBSDVMSVGA driver can't automatically resize window

Posted: 31. Aug 2020, 23:23
by multiOS
FreeBSD has its own guide for getting VirtualBox Guest Additions working (so they say) - https://www.freebsd.org/doc/handbook/vi ... ess%20mode.

This would definitely qualify as a Guest Additions 'hack', which obviously can't be supported by Oracle Devs/this Forum and the FreeBSD Forums would need to be used if problems are experienced or further advice is required. I don't use BSD based system myself (other than MacOS), so can't give any indication of whether the Guide actually works, but there would be limited risk if fully restorable backups of the working FreeBSD VM(s) were maintained.

Re: FreeBSDVMSVGA driver can't automatically resize window

Posted: 19. Sep 2020, 09:45
by piggyz
The solution to have windows automagically resized is to use VBoxVGA option (and not VMSVGA).

Then install virtualbox-ose-additions package from FreeBSD repository and you should be done.

From this point, the old FreeBSD instructions for running the OS (rc.config configuration, boot options, guest autostart) as a guest should be helpfull.

That's all.

Re: FreeBSDVMSVGA driver can't automatically resize window

Posted: 19. Nov 2023, 07:00
by oso2276
Hi folks,

I think my following comment it is pertinet to the original problem.

Host:
Intel i7 10710U (Comet Lake-U / Skylake), 64GB RAM
Windows 11 23H2 - fully patched
VBox 7.0.12

Guest:
2 cores, 16GB, RAM EFI,
LsiLogic for storage controller & Virtio-net for network.
Video VMSVGA 64MB RAM
FreeBSD 14.0 with KDE desktop

The issue, when I attempted to set VBoxVGA instead of VMSVGA, VB does not allow me to change it.

When I change it, VB complains "Invalid Setting Detected!"
Nevertheless I press [Enter] to save it.
When I check again, VB puts back VMSVGA.

Is there a way to override this config so I can force VB to use VBoxVGA for FreeBSD?

Best Regards,
Otto

Re: FreeBSDVMSVGA driver can't automatically resize window

Posted: 19. Nov 2023, 13:27
by mpack
Solutions involving VirtualBox 7.0.12 will definitely not have been pertinent in 2020 when the OP asked his question. Also FreeBSD was not a supported guest in 2020 and that remains the case in 2023. So problems using GAs features are moot.