Solved

Changing Resolution of Linux Text Guest OS

Posted on 2008-10-23
5
803 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

This article will show you how to create an ISO CD-ROM/DVD-ROM image (*.iso), and MD5 checksum signature, for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5). It's a good idea to compare checksums, because many installations fail because of a corr…
Fine Tune your automatic Updates for Ubuntu / Debian
Teach the user how to configure vSphere clusters to support the VMware FT feature Open vSphere Web Client: Verify vSphere HA is enabled: Verify netowrking for vMotion and FT Logging is in place or create it: Turn On FT for a virtual machine: Verify …
Teach the user how to use create log bundles for vCenter Server or ESXi hosts Open vSphere Web Client: Generate vCenter Server and ESXi host log bundle:  Open vCenter Server Appliance Web Management interface and generate log bundle: Open vCenter Se…

735 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