9

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?

screenshot

I want it to fill my screen without the text and images expanding.

2
  • 2
    Have you installed the guest additions?
    – eyoung100
    Commented Dec 31, 2014 at 22:25
  • @eyoung100 The VirtualBox Guest Additions is only relevant for increasing the screen size when using Xorg. Guest Additions does not resize the virtual console.
    – Flux
    Commented Dec 22, 2021 at 5:27

3 Answers 3

5

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_

3
  • 1
    is there a way to make this setting permanent?
    – Alex Jones
    Commented Mar 17, 2016 at 14:10
  • @edwardtorvalds See unix.stackexchange.com/a/274979/128489 Commented Feb 15, 2018 at 12:21
  • For vidcontrol -i mode to list any modes, one must be using the sc console driver instead of vt. To use sc instead of vt, add kern.vty=sc to /boot/loader.conf and reboot.
    – Flux
    Commented Dec 19, 2021 at 4:00
3

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.)

0

use Scaled Mode in VirtualBox (View -> Scaled Mode), this will fill the entire screen (regardless of what mode you set using vidcontrol in your FreeBSD box).

2
  • 2
    The OP said "I want it to fill my screen without the text and images expanding. " , your answer sounds like it will exactly do that. Commented Dec 16, 2015 at 13:22
  • Using just vidcontrol is not enough, you should combine setting screen mode and changing to Scaled Mode - it will give a desirable effect. Commented Dec 19, 2015 at 15:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .