No xserver, change TTY resolution/size?

Discussions about using Linux guests in VirtualBox.
Post Reply
elegos
Posts: 11
Joined: 3. Sep 2008, 15:49
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Kubuntu 10.04

No xserver, change TTY resolution/size?

Post by elegos »

Hello again!
I didn't want to post this question in the previous one as it's totally different.

Well, is it possible to set a resolution to the virtual monitor, so that I can see commands in a wider window? Actually is very small. Obviously not having xserver I can't configure it via the xorg configuration file...

Thanks :)
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: No xserver, change TTY resolution/size?

Post by Sasquatch »

You can change the resolution you get with the Linux Framebuffer. You modify the boot entry and add a kernel parameter to the end of the line. Depending on the resolution you want, this can be vga=792 for 1024x768. Check google for other values. Keywords "grub vga=", without quotes.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
elegos
Posts: 11
Joined: 3. Sep 2008, 15:49
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Kubuntu 10.04

Re: No xserver, change TTY resolution/size?

Post by elegos »

Thanks very much ^^
baf
Volunteer
Posts: 829
Joined: 27. Sep 2008, 06:18
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: linux,xp,win7
Location: Luleå or Skellefteå, Sweden

Re: No xserver, change TTY resolution/size?

Post by baf »

You can create your own resolutions like this

Code: Select all

VBoxManage setextradata  machinename CustomVideoMode1 1144x696x16
this mode would be used by adding vga=864 to your bootline
You can have several modes (max 16) but they must start from 1 and include all until your last (no holes!).

Oh and the guest must be shutdown for aný changes to take.
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
Post Reply