Solve the problem that the Linux System in VMware cannot be full screen (centos5.2)

Source: Internet
Author: User
Today, I encountered a resolution problem in the virtual machine. I found the problem on the Internet and tried to keep it for future convenience.
May 10 th, 2010 Solve the problem that the Linux System in VMware cannot be full screen

535 million views, with a forward arrow
, By Guo Tao.

Share:

Why Linux cannot be full screen in a vmvm?

Problem description: RHEL is customized and installed in vmware6.5.1.
5. It is found that the resolution of the display is only 800x600 and 640x600. The screen cannot be full on the host of 1280x960.

Cause 1
: Display is restricted in setting.
Device, (it seems that resolution problems may occur during custom installation, even if the resolution of the display device is set to a value greater ).

Modify the display in the setting option of the VM to set the maximum resolution value of the VM, or automatically match the screen resolution of the host's display.
Solution
(Step)
: Modify the VM Startup File *. vmx

*. Vmx in Linux:/var/lib/vmware-server/virtual machines/Your VM name/Your VM
Name. vmx, add/modify two lines at the end:
Svga. maxwidth = 1280 ″
Svga. maxheight = 800 ″

Or set it to automatic detection, that is, click "use host setting for monitors" and set it to svga. autodetect =
"False"
On the setting configuration page of the VM, directly select display> monitors.

This operation limits the maximum resolution of the virtual machine, but the virtual machine itself may not know that the resolution that can be set can be so large (automatically detect the monitor error ???).
This isCause 2
:

Solution (Step B)


: Modify/etc/X11/Xorg. conf and add the monitor part. For more information, see the following step.
2: edit/etc/X11/Xorg. conf

Note: After the monitor is changed, log out and log on again. It is found that Xorg. conf is automatically corrected, making it more perfect!
After understanding these two reasons, you can change the resolution of the virtual machine.

All in all: in this case, add the monitor part of Xorg. conf, modify the screen part, and set the display->
Use host setting for monitors to log out.Note:

Yessteps A and B
After all, you can solve the above two problems.

Howto: Change VMWare Player Guest OS display resolution
June 20th, 2007
Admin leave a comment go to comments

Here is one useful bit for anyone running, or thinking of running, a local
Test/development environment under VMWare Player version 2.0 with a guest OS
Linux install.

I'll assume you have installed VMWare Player and a VMware appliance similar
To centos v5. after which, by default, the resolution will be limited to Modes
"800x600" and "640x480 ″.

Here is how you fix that problem...

Step 1: Install X and gnome, if not already present.
Yum groupinstall "X
Window System "" GNOME desktop environment"
[Note: To install Kde, substitute
The "gnome..." string with "KDE (K desktop environment)"]

Step 2
: Edit/etc/X11/Xorg. conf

You shoshould already have...

Section "device"
Identifier "videocard0 ″
Driver
"VMware"
Endsection

Add
The following "Monitor" section...

Section "Monitor"
Identifier "monitor0 ″
Horizsync 1.0-
10000.0
Vertrefresh 1.0-10000.0
Endsection

Modify the existing "screen" section...
NoteReplace
The
Following "1600 × 1200" string with the highest resolution your monitor can
Handle.

Section "screen"
Identifier "screen0 ″
Device "videocard0 ″
Monitor
"Monitor0 ″
Defaultdepth 24
Subsection "display"
Viewport 0 0
Depth
24
Modes "1600x1200" "800x600" "640x480 ″
Endsubsection
Endsection

Step 3: Start x
Startx

The above is a reference to the posts of two Chinese and foreign colleagues. After my own tests, if you are interested, you may wish to try it. You don't have to look at the small one and have no space to display. Of course, it seems that vmtool is installed.
Resolution can also be solved. However, it is difficult to install vmtool for Linux in VMware. I did not succeed. If you have installed vmtool for Linux successfully, you are welcome to introduce your methods.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.