No xserver, change TTY resolution/size?

Discussions about using Linux guests in VirtualBox.

No xserver, change TTY resolution/size?

Postby elegos » 4. Jul 2009, 19:33

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 :)
elegos
 
Posts: 11
Joined: 3. Sep 2008, 15:49
Primary OS: Mac OS X Leopard
VBox Version: PUEL
Guest OSses: Kubuntu 10.04

Re: No xserver, change TTY resolution/size?

Postby Sasquatch » 4. Jul 2009, 19:37

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.
Sasquatch
Volunteer
 
Posts: 17800
Joined: 17. Mar 2008, 13:41
Location: /dev/random
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux

Re: No xserver, change TTY resolution/size?

Postby elegos » 4. Jul 2009, 20:00

Thanks very much ^^
elegos
 
Posts: 11
Joined: 3. Sep 2008, 15:49
Primary OS: Mac OS X Leopard
VBox Version: PUEL
Guest OSses: Kubuntu 10.04

Re: No xserver, change TTY resolution/size?

Postby baf » 4. Jul 2009, 20:21

You can create your own resolutions like this
Code: Select all   Expand viewCollapse view
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".
baf
Volunteer
 
Posts: 829
Joined: 27. Sep 2008, 06:18
Location: Luleå or Skellefteå, Sweden
Primary OS: Mac OS X Leopard
VBox Version: PUEL
Guest OSses: linux,xp,win7


Return to Linux Guests

Who is online

Users browsing this forum: No registered users and 9 guests