-
Notifications
You must be signed in to change notification settings - Fork 366
Console tips for VirtualBox FreeBSD guests #162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Instructions for changing console resolution in a VirtualBox FreeBSD guest. I've seen from the Internet that many people have been struggling with this....
Instructions for changing console resolution and keyboard type in a VirtualBox FreeBSD guest. I've seen from the Internet that many people have been struggling with this...
I can provide a VirtualBox VM if someone wants to test the tips described? |
Np, I'll review it and commit it. |
kern.vty=sc | ||
.... | ||
|
||
Then, after rebooting, you'll be able to list available console video modes and select one with `vidcontrol` (be sure to adjust the video memory setting for this VM in VirtualBox parameters to a sufficient value). For example: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then, after rebooting, you'll be able to list available console video modes and select one with `vidcontrol` (be sure to adjust the video memory setting for this VM in VirtualBox parameters to a sufficient value). For example: | |
Shut down the guest, then review its video memory setting. | |
Allow enough memory for the intended resolution. | |
After the guest boots, man:vidcontrol[1] will allow you to specify a listed mode. | |
For example: |
@@ -394,6 +394,46 @@ Mount the shared folder from within the guest system like this: | |||
# mount_vboxvfs -w myshare /mnt | |||
.... | |||
|
|||
If you want to change the resolution of the console but `vidcontrol -i mode` returns an empty list, then you'll need to switch from the "vt" console driver to the "sc" console driver as explained in man:vidcontrol[1]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want to change the resolution of the console but `vidcontrol -i mode` returns an empty list, then you'll need to switch from the "vt" console driver to the "sc" console driver as explained in man:vidcontrol[1]. | |
If you want to change the resolution of the console, but `vidcontrol -i mode` returns an empty list: you may use the legacy man:syscons[4] alternative to the man:vt[4] console driver. | |
According to the manual page: | |
NOTE: the syscons driver is not compatible with systems booted via man:uefi[8]. | |
Forcing use of syscons on such systems will result in no usable console. |
This includes NOTE:
as an AsciiDoc admonition.
@@ -394,6 +394,46 @@ Mount the shared folder from within the guest system like this: | |||
# mount_vboxvfs -w myshare /mnt | |||
.... | |||
|
|||
If you want to change the resolution of the console but `vidcontrol -i mode` returns an empty list, then you'll need to switch from the "vt" console driver to the "sc" console driver as explained in man:vidcontrol[1]. | |||
|
|||
Add the following line to [.filename]#/boot/loader.conf#: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add the following line to [.filename]#/boot/loader.conf#: | |
For syscons (sc), add the following line to [.filename]#/boot/loader.conf#: |
# vidcontrol MODE_325 | ||
.... | ||
|
||
If this new video mode is acceptable, it can be permanently set on boot for all virtual consoles by adding it to [.filename]#/etc/rc.conf#: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this new video mode is acceptable, it can be permanently set on boot for all virtual consoles by adding it to [.filename]#/etc/rc.conf#: | |
If the new mode is acceptable, it can be set for all virtual consoles: |
[.programlisting] | ||
.... | ||
allscreens_flags="MODE_325" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[.programlisting] | |
.... | |
allscreens_flags="MODE_325" | |
[source,shell] | |
.... | |
# sysrc allscreens_flags+="MODE_325" |
For the configuration to take effect, either reboot -r
or restart the OS.
allscreens_flags="MODE_325" | ||
.... | ||
|
||
If you are using a foreign keyboard, you also need to add appropriate keymap and font lines to [.filename]#/etc/rc.conf#. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you are using a foreign keyboard, you also need to add appropriate keymap and font lines to [.filename]#/etc/rc.conf#. | |
If you use a foreign keyboard, you should also add appropriate keymap and font lines to [.filename]#/etc/rc.conf#. | |
See man:rc.conf[5]. |
.... | ||
|
||
If you are using a foreign keyboard, you also need to add appropriate keymap and font lines to [.filename]#/etc/rc.conf#. | ||
Beware, the keymap files are different from "vt" to "sc" console types! Check [.filename]#/usr/share/syscons/keymaps# for appropriate values... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beware, the keymap files are different from "vt" to "sc" console types! Check [.filename]#/usr/share/syscons/keymaps# for appropriate values... | |
NOTE: keymap files for syscons differ from those for vt. | |
For appropriate values, see files in [.filename]#/usr/share/syscons/keymaps#. |
If you are using a foreign keyboard, you also need to add appropriate keymap and font lines to [.filename]#/etc/rc.conf#. | ||
Beware, the keymap files are different from "vt" to "sc" console types! Check [.filename]#/usr/share/syscons/keymaps# for appropriate values... | ||
|
||
For example, in order to set a French keyboard do: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For example, in order to set a French keyboard do: | |
For example, to set a French keyboard, a font size, and font: |
keymap="fr.iso.acc" | ||
font8x16="iso-thin-8x16" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume that this format suits syscons (not vt).
Documents how to change the console resolution and, for international users, how to change keyboard settings.
A lot of people seem to be searching for this...