-
Notifications
You must be signed in to change notification settings - Fork 368
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||
|
||||||||||||||
[.programlisting] | ||||||||||||||
.... | ||||||||||||||
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 commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||
|
||||||||||||||
[source,shell] | ||||||||||||||
.... | ||||||||||||||
# vidcontrol -i mode | ||||||||||||||
mode# flags type size font window linear buffer | ||||||||||||||
------------------------------------------------------------------------------ | ||||||||||||||
... | ||||||||||||||
325 (0x145) 0x0000000f G 1280x1024x32 D 8x16 0xa0000 64k 64k 0xe0000000 5120k | ||||||||||||||
... | ||||||||||||||
# 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 commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||
|
||||||||||||||
[.programlisting] | ||||||||||||||
.... | ||||||||||||||
allscreens_flags="MODE_325" | ||||||||||||||
Comment on lines
+421
to
+423
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
For the configuration to take effect, either |
||||||||||||||
.... | ||||||||||||||
|
||||||||||||||
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 commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||
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 commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||
|
||||||||||||||
For example, in order to set a French keyboard do: | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||
|
||||||||||||||
[.programlisting] | ||||||||||||||
.... | ||||||||||||||
keymap="fr.iso.acc" | ||||||||||||||
font8x16="iso-thin-8x16" | ||||||||||||||
Comment on lines
+433
to
+434
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I assume that this format suits syscons (not vt). |
||||||||||||||
.... | ||||||||||||||
|
||||||||||||||
[[virtualization-host-virtualbox]] | ||||||||||||||
== FreeBSD as a Host with VirtualBox(TM) | ||||||||||||||
|
||||||||||||||
|
Uh oh!
There was an error while loading. Please reload this page.
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.
This includes
NOTE:
as an AsciiDoc admonition.