0

Following my struggle to adjust the resolution of a CLI Ubuntu minimal guest in VirtualBox, I have been trying to find a way to automatically adjust the resolution to the window size. This should be doable because for example when you open terminal in Ubuntu (or other UniX like GUI OSes), it automatically adjusts to the windows size automatically.

What I'm not looking for:

I already know how to adjust the resolution to any of the available options in the GRUB>vbeinfo by editing the /etc/default/grub as explained in my former SO post

What I need:

The CLI to automatically adjust to the window size. for example when I exit fullscreen it gets smaller to fit the window. This behaviour already exists in GUI interfaces (Unity and GNOME...)

GNU documentation:

GNU documentation page states:

grub-mkconfig will normally load all available GRUB video drivers

and

Note that you can only use modes which your graphics card supports via VESA BIOS Extensions (VBE), so for example native LCD panel resolutions may not be available.

  • 1
    Please clarify: What window size do you want to adjust? The size of the VirtualBox window on your host machine? Or the resolution of the display of the guest OS to fit the size of the VirtualBox window? Or the size of any window within the guest OS? – LukeLR Jan 11 '18 at 14:25
  • @LukeLR The second option the resolution of the display of the guest OS to fit the size of the VirtualBox window I want a headless only CLI linux guest to adjust to the size of virtualbox window. the first one is already there, but the geus OS does not adjust. The third option I do not understand. – Foad Jan 11 '18 at 16:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.