转载:解决VMware中的linux系统无法满屏(centos5.2)
来源:互联网 发布:沙发床 知乎 编辑:程序博客网 时间:2024/06/08 08:53
今天遇到虚拟机中的分辨率问题,网上查找问题解决了,好文章,想保留下来,方便以后查找
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 commentsHere 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”
EndSectionAdd the following “monitor” section…
Section “Monitor”
Identifier “Monitor0″
HorizSync 1.0 – 10000.0
VertRefresh 1.0 – 10000.0
EndSectionModify 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
EndSectionStep 3: Start X
startx
以上参考了国内和国外两位仁兄的帖子。经过本人亲测成功,有兴趣的不妨试试哈,就不必再对着那小小的一块而无“施展”的空间啦。当然,貌似有说装了vmtool 也可以解决分辨率的问题,不过VMware中vmtool for linux 安装的难度挺大,我是没成功的啦,有成功安装的也欢迎来介绍介绍自己的方法哈。
- 转载:解决VMware中的linux系统无法满屏(centos5.2)
- VMWare Workstation 中的linux系统无法联网
- 关于windows xp 安装vmware虚拟机 并安装linux系统(centos5.2)
- Linux-15-启动vmware无法加载安装linux系统的故障解决(L003-29)
- 解决vmware(vsphere)部署linux系统模板后无法联网问题
- 转载--解决VMWare下ubuntu无法全屏的问题
- 解决CentOS5.5无法使用ifconfig命令
- 【Linux】CentOS5.5系统定制
- 用SecureCRT连接VMware中的Linux系统
- 用SecureCRT连接VMware中的Linux系统
- 用SecureCRT连接VMware中的Linux系统
- 用SecureCRT连接VMware中的Linux系统
- vmware中的linux系统如何调分辨率
- 远程登陆VMware虚拟机中的Linux系统
- 用SecureCRT连接VMware中的Linux系统
- 转载一篇解决vmware不支持新内核linux的问题
- 【Linux】CentOS5.5系统定制2安装特定rpm
- 解决在VMware安装Linux无法全屏显示
- Axis2的使用
- 【SystemTap】 Linux下安装使用SystemTap源码安装SystemTap
- C语言的变参
- MyEclipse,Eclipse ,Source not found 收藏
- actionscript 's http post with underscore problem
- 转载:解决VMware中的linux系统无法满屏(centos5.2)
- 检测tomcat服务状态,自动重启Tomcat
- Eclipse 保存 UTF-8
- EXT 将gridpanel中选中的值设置到from中
- STL模板(摘要)一
- 【SystemTap】SystemTap的疑问
- log4j:WARN No appenders could be found for logger
- CSS网页布局的8条面试题目
- .NET性能优化