Friday, January 20, 2017

Console screen resolution for Linux on VirtualBox

Quick Steps

  • Check the resolutions your graphic card supports via the VirtualBox Environment (VBE).You should be able to find that out by issuing the command 'vbeinfo' in the GRUB console (hit the C key when the GRUB boot menu shows up).
  • Change the following parameters: 
  • GRUB_CMDLINE_LINUX="video=AxB-C"
    GRUB_GFXMODE=AxBxC
    GRUB_GFXPAYLOAD_LINUX=keep
    
    Example:
    GRUB_CMDLINE_LINUX="video=1152x864-32"
    GRUB_GFXMODE=1152x864x32
    GRUB_GFXPAYLOAD_LINUX=keep
    
  • Now run these two commands one-by-one:
    sudo update-grub2
    sudo reboot
    
You should now see your VM's console in the custom resolution that you just set.