Solved

Changing Resolution of Linux Text Guest OS

Posted on 2008-10-23
5
798 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When converting a physical machine to a virtual machine using VMware vCenter Converter Standalone or vCenter Converter Enterprise, if an adapter type is not selected during the initial customization the resulting virtual machine may contain an IDE d…
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.
Teach the user how to configure vSphere Replication and how to protect and recover VMs Open vSphere Web Client: Verify vsphere Replication is enabled: Enable vSphere Replication for a virtual machine: Verify replicated VM is created: Recover replica…
Teach the user how to join ESXi hosts to Active Directory domains Open vSphere Client: Join ESXi host to AD domain: Verify ESXi computer account in AD: Configure permissions for domain user in ESXi: Test domain user login to ESXi host:

920 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

17 Experts available now in Live!

Get 1:1 Help Now