Screen size in FreeBSD in VirtualBox
6,876
Solution 1
use vidcontrol MODE_xxx
For example to have a screen 1024x768x24, in the console :
# vidcontrol MODE_280
To know which mode you can be interested in, in the console :
# vidcontrol -i mode
The left column gives you the number you have to put after MODE_
Solution 2
To make the console mode permanent, add a line to /etc/rc.conf:
allscreens_flags="MODE_332"
(substitute your desired mode number for 332 of course.)
Related videos on Youtube
Author by
user3551423
Updated on September 18, 2022Comments
-
user3551423 over 1 year
I am installing FreeBSD 10.0 on VirtualBox, and I can't figure out how to change the size of my screan, in the virtualbox?
The freebsd in the virtualbox treats my screen like it's 1/4th the size of my actual screen?
I want it to fill my screen without the text and images expanding.
-
eyoung100 over 9 yearsHave you installed the guest additions?
-
Flux over 2 years@eyoung100 The VirtualBox Guest Additions is only relevant for increasing the screen size when using Xorg. Guest Additions does not resize the virtual console.
-
-
Raphael Ahrens over 8 yearsThe OP said "I want it to fill my screen without the text and images expanding. " , your answer sounds like it will exactly do that.
-
Marcin Komor over 8 yearsUsing just vidcontrol is not enough, you should combine setting screen mode and changing to Scaled Mode - it will give a desirable effect.
-
Edward Torvalds about 8 yearsis there a way to make this setting permanent?
-
Mateusz Piotrowski about 6 years@edwardtorvalds See unix.stackexchange.com/a/274979/128489
-
Flux over 2 yearsFor
vidcontrol -i mode
to list any modes, one must be using thesc
console driver instead ofvt
. To usesc
instead ofvt
, addkern.vty=sc
to/boot/loader.conf
and reboot.