Skip to content

Instantly share code, notes, and snippets.

@darkgeek
Created June 7, 2016 07:32
Show Gist options
  • Save darkgeek/be7735d008e6a0f18e559e8e0d491aa9 to your computer and use it in GitHub Desktop.
Save darkgeek/be7735d008e6a0f18e559e8e0d491aa9 to your computer and use it in GitHub Desktop.

Revisions

  1. darkgeek created this gist Jun 7, 2016.
    12 changes: 12 additions & 0 deletions adjust-screen-size-on-vbox
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    VirtualBox supports both UGA (Universal Graphic Adapter) and GOP (Graphics Output Protocol) but FreeBSD loader uses GOP. Default GOP mode seems to be 2 (1024x768) and it panics kernel if the system memory is small.
    As a stopgap, you may lower the resolution with VBoxManage, i.e.,

    VBoxManage setextradata "VM name" VBoxInternal2/EfiGopMode N

    where "VM name" is the name of your VM and N is from 0 to 5. For example,

    VBoxManage setextradata FreeBSD VBoxInternal2/EfiGopMode 1

    will lower video mode to 800x600 for your "FreeBSD" VM. Please see the manual for more information.

    https://www.virtualbox.org/manual/ch03.html