Solved

Changing Resolution of Linux Text Guest OS

Posted on 2008-10-23
5
795 Views
Last Modified: 2013-12-15
Hi Experts -

I'm running a text mode Linux machine in VMware Workstation 6.5.  Unfortunately, the window is tiny and I can't figure out how to change the resolution since X is not installed.  I installed VMware Tools and it went through the paces; however, I have experienced no change in performace since installing it.

Any suggestions?  Thanks in advance.
0
Comment
Question by:chezbrgrs
  • 2
  • 2
5 Comments
 
LVL 4

Expert Comment

by:larsga
ID: 22790846
You did not include which Linux distribution you are running as a vmware guest, so these are just general instructions:

VMware provides a driver for X, but not one for text mode.

In text mode, most Linux distributions use the 'vesafb/vesacon' driver to show text mode. This driver talks to the gfx card using the old vesa 2.0 standard that pretty much all gfx cards support.

To use a different resolution, you would need to add a parameter to the kernel boot line to choose which mode to use. vga=791 should give 1280x1024@16bit on most cards. vga=ask should list available modes for your particular card.

This however all depends on whether the kernel in the particular linux distribution you are using includes vesa support. How to add vga= to the boot parameters depends on which bootloader that is used.

0
 

Author Comment

by:chezbrgrs
ID: 22791251
It's CentOS 5.2.  Do you know if your reply applies?  Also, can you be more specific as to how add a parameter to the kernel boot line?  I'm a beginner to Linux.  Thanks
0
 
LVL 4

Accepted Solution

by:
larsga earned 250 total points
ID: 22792804
As far as I know, CentOS uses grub.

Use a text editor and open /boot/grub/menu.lst
It is a system file, so you will need to do this as root.

In it you should find several sections that look like:

title CentOS ....
        root ...
        kernel /vmlinuz .....
        initrd /initrd....

That is, a section is all the lines from 'title' up until (but not including) the next 'title' line. Copy/paste the first section to the bottom of the file, so that you have an exact copy.

Then edit the title line of the copy, change the name to something like 'CentOS vgatest'

At the end of the kernel line, add vga=791 (or vga=ask). Save and reboot.

At boot, you should get a list of different kernels to select. Select the one with the title you set. (If you don't get a list of choices, you probably need to hit 'Esc' to get grub to show the list). If it works fine, you can then move the 'CentOS vgatest' section to the top of the list in menu.lst to make it the default choice.

0
 
LVL 10

Expert Comment

by:PeturIngiEgilsson
ID: 22795032
Attached below is a vga parameter chart in HEX code.
You'll need to convert those hex number to dec in order to use them.


 Colours   640x400 640x480 800x600 1024x768 1152x864 1280x1024 1600x1200

  -------+--------------------------------------------------------------

  4 bits |    ?       ?     0x302      ?        ?        ?         ?

  8 bits |  0x300   0x301   0x303    0x305    0x161    0x307     0x31C

 15 bits |    ?     0x310   0x313    0x316    0x162    0x319     0x31D

 16 bits |    ?     0x311   0x314    0x317    0x163    0x31A     0x31E

 decimal |           d785    d788     d791

 24 bits |    ?     0x312   0x315    0x318      ?      0x31B     0x31F

 decimal |           d786    d789     d792

 32 bits |    ?       ?       ?        ?      0x164      ?

Open in new window

0
 

Author Closing Comment

by:chezbrgrs
ID: 31509360
Perfect!!!  Thank you!!!
One more question...is it possible to enable something so the mouse cursor comes out of the vm without having to press Ctrl-Alt?
Thanks again.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

David Varnum recently wrote up his impressions of PRTG, based on a presentation by my colleague Christian at Tech Field Day at VMworld in Barcelona. Thanks David, for your detailed and honest evaluation!
HOW TO: Install and Configure VMware vSphere Hypervisor 6.5 (ESXi 6.5), Step by Step Tutorial with screenshots. From Download, Checking Media, to Completed Installation.
This Micro Tutorial walks you through using a remote console to access a server and install ESXi 5.1. This example is showing remote access and installation using a Dell server. The hypervisor is the very first component of your virtual infrastructu…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now