FreeBSDVMSVGA driver can't automatically resize window

Discussions about using non Windows and Linux guests such as FreeBSD, DOS, OS/2, OpenBSD, etc.
Locked
piggyz
Posts: 70
Joined: 13. Feb 2013, 12:28

FreeBSDVMSVGA driver can't automatically resize window

Post 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?
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: FreeBSDVMSVGA driver can't automatically resize window

Post 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.
multiOS
Volunteer
Posts: 797
Joined: 14. Sep 2019, 16:51
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: WIN11,10, 7, Linux (various)
Location: United Kingdom

Re: FreeBSDVMSVGA driver can't automatically resize window

Post 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.
piggyz
Posts: 70
Joined: 13. Feb 2013, 12:28

Re: FreeBSDVMSVGA driver can't automatically resize window

Post 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.
Last edited by scottgus1 on 6. Sep 2021, 15:59, edited 1 time in total.
Reason: removed unnecessary swipe at forum help: no personal attacks please.
oso2276
Posts: 21
Joined: 11. Sep 2023, 15:58

Re: FreeBSDVMSVGA driver can't automatically resize window

Post 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
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: FreeBSDVMSVGA driver can't automatically resize window

Post 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.
Locked