按照上面步骤重启后vmtools无法使虚拟机全屏,其他功能还能用,找了很久的解决办法,最后终于找到有效的
进入/etc/X11文件夹,找到xorg.conf.failsafe文件(而不是xorg.conf),打开终端换成root用户
(方法参照 https://blog.csdn.net/ycl295644/article/details/44727205 )
将xorg.conf.failsafe文件用vi修改成如下内容(VMware SVGA和vesa能不能改没有尝试)
Section "Device"
Identifier "VMware SVGA"
Driver "vesa"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monidor Vendor"
ModelName "Monitor Model"
HorizSync 28.0 - 70.0
VerRefresh 56.0 - 75.0
EndSection
Section "Screen"
Identifier "Screen0"
Monitor "Monitor0"
Device "Card0"
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1920x1080_60.00"
EndSubSection
EndSection
可以将分辨率设置到1920x1080,但是和解决之前一样,vmtools是没起作用的(但安装还是有必要的,复制文件什么的),只是分辨率的功劳,就算在虚拟机显示设置那里修改也没用(更新:改了会有系统错误,用VM的全屏也够用了)。理论上设置成别的分辨率应该也是可以的,但是格式要写对,查看格式可以在终端用命令:
cvt 1920 1080
个人经验,已试验成功,仅供参考
参考了https://www.jb51.net/article/40968.htm 和https://blog.csdn.net/CallMeSumo/article/details/78041791
修改的内容来自http://www.bubuko.com/infodetail-2556785.html