解決VMware中的linux系統無法滿屏(centos5.2)

來源:互聯網
上載者:User
今天遇到虛擬機器中的解析度問題,網上尋找問題解決了,好文章,想保留下來,方便以後尋找
05月 10th, 2010 解決VMware中的linux系統無法滿屏

535 次瀏覽, 劍走偏鋒
, by 郭 濤.

分享到:

在VM虛擬機器中為什麼linux不能滿屏

問題描述:在VMWARE6.5.1中定製安裝了RHEL
5,發現顯示器的解析度只有800X600和640X480兩種選項,在1280X960的宿主機上不能滿屏。

原因一
:Setting中限制了Display
Device,(好像一般定製安裝時,就會出現解析度問題,即使設定了Display Device的解析度為800X600以上值)。

修改VM的Setting選項中的Display可以設定虛擬機器的解析度最大取值,或者自動配合宿主機的顯示器的螢幕解析度。
解決辦法
(步驟a)
:修改虛擬機器的開機檔案*.vmx

linux下的*.vmx參考位置:/var/lib/vmware-server/Virtual Machines/your VM name/your VM
name.vmx,在最末增加/修改兩行:
svga.maxWidth = “1280″
svga.maxHeight = “800″

或者設定成自動檢測,就是點選“Use host setting for monitors”,對應的設定為svga.autodetect =
“FALSE”
這些配置更改在虛擬機器的Setting配置頁面直接選擇Display -> Monitors下的按鈕即可實現。

這招是限制虛擬機器的最大解析度,但是虛擬機器本身可能還不知道可以設定的解析度能這麼大(自動檢測Monitor的錯???)。
這就是原因二
:

解決辦法(步驟b)


:修改/etc/X11/xorg.conf,增加monitor部分,這樣就行了。增加方法見下面的Step
2: Edit /etc/X11/xorg.conf

備忘:更改monitor之後,登出再登入,發現xorg.conf自動修正,變得更完美了!
理解了這兩個原因,就可以改變虛擬機器的解析度了。

總而言之:遇到這樣的解析度問題,先添加xorg.conf的monitor部分、修改Screen部分;再設定Display ->
Monitors為“Use host setting for monitors”登出登入即可。注意:

是步驟a、b
都完,解決以上兩個問題成才行哦。

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
“800×600″ and “640×480″.

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 should 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…
Note to replace
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 “1600×1200″ “800×600″ “640×480″
EndSubSection
EndSection

Step 3: Start X
startx

以上參考了國內和國外兩位仁兄的文章。經過本人親測成功,有興趣的不妨試試哈,就不必再對著那小小的一塊而無“施展”的空間啦。當然,貌似有說裝了vmtool
也可以解決解析度的問題,不過VMware中vmtool for linux 安裝的難度挺大,我是沒成功的啦,有成功安裝的也歡迎來介紹介紹自己的方法哈。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.