VMware、VirtualBox安装工具包调整分辨率、设置鼠标无缝模式及共享剪切板等


VMware安装虚拟工具包

1. 启动虚拟机中的CentOS。
2. 点击虚拟机菜单“VM -> install VMware Tools”,CentOS系统桌面会出现VMware Tools。
(或在虚拟机硬件CD/DVD中选择路径D:\Program Files\VMware\VMware Workstation\linux.iso)
3. 将“VMWare Tools-xxx.tar.gz”复制到“home directory”。
执行以下命令:
tar zxvf VMWare Tools-xxx.tar.gz --解压
cd vmware-tools-distrib --进入目录
./vmware-install.pl --安装VMWare Tools
然后一路回车,最后选择分辨率即告完成。

 

VirtualBox安装增强功能

1. 启动虚拟机中的Red Hat。

2. 点击虚拟机菜单“设备 -> 安装增强功能”,Red Hat系统桌面会出现VBOXADDITIONS(若桌面并未出现VBOXADDITIONS的光盘,只需进入“Computer”鼠标左键双击“CD-ROM/DVD-ROM Drive”即可)。

3. 在“root”文件夹下新建“VBOXADDITIONS”文件夹并把第二步光驱里的文件复制到此文件夹内(亦可跳过此步骤,直接在终端里进入光盘文件)。

4. 进入“VBOXADDITIONS”文件夹,终端命令:cd VBOXADDITIONS(注意区分大小写)

5. 安装,终端命令:sh VBoxLinuxAddtions.run

6. 重启。

 

一般情况下,安装完virtualbox的增强包后,虚拟机操作系统就能自动地全屏显示,还能支持虚拟机系统和主机系统间的剪贴板共享等比较实用的功能。

若安装了VirtualBox自带的功能增强包重启后还是无法设置为1024x768分辨率,就只能手动修改xwindows配置文件信息了。方法如下:

备份/etc/X11/xorg.conf

清空原内容,加入如下内容:

# Xorg configuration created by system-config-display
Section "ServerLayout"
       Identifier     "single head configuration"
       Screen      0  "Default Screen" 0 0
       InputDevice    "VBoxMouse"
EndSection

Section "InputDevice"
       Identifier  "VBoxMouse"
       Driver      "vboxmouse"
       Option      "CorePointer"
EndSection

Section "Device"
       Identifier      "Configured Video Device"
       Driver          "vboxvideo"
EndSection

Section "Monitor"
       Identifier      "Generic Monitor"
EndSection

Section "Screen"
       Identifier "Default Screen"
       Device "Configured Video Device"
       Monitor "Generic Monitor"
       DefaultDepth 24
       SubSection "Display"
               Depth 24
               Modes "1024x768"
       EndSubSection
EndSection



 

相关内容