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.
Adjust screen size on Virtualbox
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment