Maximum terminal resolution in ubuntu server virtual box guest

Solution 1:

The answer I found was a combination of How do I increase console-mode resolution? and How to use ubuntu server full screen in virtualbox? The former provided information for changing grub's display resolution, and the latter assisted me in diagnosing why the former wasn't resulting in any resolution change.

Combining the two answers:

  1. Identify the resolution that your VirtualBox environment supports. Reboot the system and keep the Shift key till the grub windows appears then hit c. This will drop you into the grub console. Enter the commend vbeinfo to see a list of resolutions. Select the resolution that works for you (in my case, 1152x864x32).

  2. Edit /etc/default/grub to modify/create a line GRUB_GFXMODE=1152x864x32 (where you replace the resolution with the one appropriate for your environment).

  3. Edit /etc/grub.d/00_header to modify the line

    if [ "x${GRUB_GFXMODE}" = "x" ] ; then GRUB_GFXMODE=auto ; fi
    

    to

    if [ "x${GRUB_GFXMODE}" = "x" ] ; then GRUB_GFXMODE=1152x864x32 ; fi
    

    (again, replacing the resolution)

  4. Update grub and reboot: update-grub2 && shutdown -r now

Grub should boot at the new, higher resolution, and then that resolution should continue through after you are logged in.

Solution 2:

I have been trying this for a few hours now and a few days ago also for a few hours. Rob Halls solution worked for me only during the boot period, when GRUB is showing the menu entries. After the server (I am using an Ubuntu server, latest release) booted, the resolution was back to "normal".

Adding the following line to /etc/default/grub:

GRUB_GFXPAYLOAD_LINUX=1152x864x32

and then

update-grub2 && reboot

I had the higher resolution during the boot process (grub menu) and within the console.

Solution 3:

As @Zook pointed out in the comments, it was enough for me to (as superuser) enable and change the following line in /etc/default/grub:

GRUB_GFXMODE=1152x864x16

and then

update-grub && reboot

GRUB version is 2.02~beta2-9ubuntu1.

Virtualbox version 4.3.16, Windows 7 Host, native resolution 1600x1050.

Important for that to work was to remove any vga= or xvga= or video= lines from the kernel, e.g. in GRUB_CMDLINE_LINUX_DEFAULT.

This hint i found here. I did not have to perform the proposed changes in the possible duplicate.