20070208
這幾天在虛擬機里安裝了Fedora Core 6,并安裝的VMware Tool成功,參考了網(wǎng)上的一些文章,結合自己的實(shí)踐經(jīng)驗。以下把具體的實(shí)現過(guò)程記錄下來(lái),以備參考!
1,安裝GCC開(kāi)發(fā)工具
# Install software called by by VMware Tools
yum install gcc
2,安裝內核文件
# Install kernel header files
yum install kernel-devel
3.檢查內核文件的版本是否匹配,如果不匹配需要進(jìn)行升級
# Check it matches the running kernel
uname -r # running kernel
rpm -q kernel-devel # installed kernel headers
4,第3不中如果不匹配,則需要升級內核文件,升級完后,重新啟動(dòng)系統
# It the two versions do not match, run
yum -y upgrade kernel kernel-devel
# then reboot (but only if they did not match).
5,查找內核文件的位置,安裝VMware-tool工具時(shí)候需要(我裝的時(shí)候,會(huì )自動(dòng)查找到,不需要手工指定)
# Find out where the kernel headers are
ls -d /usr/src/kernels/$(uname -r)*/include
# You may need this later.
7,下載虛擬機工具安裝包,即:VMware-tool安裝包,并解壓(具體就是在虛擬機工具欄上,點(diǎn)擊"VM"->"Install VMware Tools",會(huì )出現安裝包,選擇*.gz的文件,解壓到一個(gè)目錄下就可以)
以下是命令行中具體實(shí)現方法,我是在圖形界面下實(shí)現的
# If you already have VMwareTools-5.5.2-29772.tar.gz
on disk, SKIP THIS STEP!
# Download VMware-workstation-5.5.2-29772.tar.gz from vmware.com
# Extract the VMware Tools iso from it
tar --strip-components=3 -zxvf VMware-workstation-5.5.2-29772.tar.gz \
vmware-distrib/lib/isoimages/linux.iso
# Create a temporary mount point
mkdir /mnt/vmtools-temp
# Mount the image
mount -o loop linux.iso /mnt/vmtools-temp
# Copy VMware Tools from the mount
cp /mnt/vmtools-temp/VMwareTools-5.5.2-29772.tar.gz /tmp/
# Unmount the image and tidy up
umount /mnt/vmtools-temp
rmdir /mnt/vmtools-temp
rm linux.iso
# Unpack VMware Tools to a temporary directory
cd /tmp/
tar zxvf VMwareTools-5.5.2-29772.tar.gz
8.進(jìn)入解壓目標目錄,執行以下代碼,一路回車(chē)按下來(lái)
cd /tmp/vmware-tools-distrib/
./vmware-install.pl
# Do you want to run vmware-config-tools.pl? yes
9,修改配置文件,這步也可在圖形界面下進(jìn)行,打開(kāi)/etc/X11/xorg.conf,按照下面的說(shuō)明,添加響應的字段,保存后重新啟動(dòng)系統
# Fix xorg config
# If when you (re)start X, you get the error "Undefined Monitor "vmware"..":
vi /etc/X11/xorg.conf
# Add the lines
Section "Monitor"
Identifier "vmware"
EndSection
# To add better mouse support, add the lines
Section "InputDevice"
Identifier "Mouse0"
Driver "vmmouse"
Option "Protocol" "Auto"
Option "Device" "/dev/input/mouse0"
EndSection
# then find the "ServerLayout" section, and in that section, add the line
InputDevice "Mouse0" "CorePointer"
# TODO fix vmhgfs compile (currently broken)
# TODO fix fast ethernet driver compile (currently broken)
# TODO copy and paste broken
這是安裝的全部過(guò)程,紅色部分是解決顯示與鼠標的部分。安裝如上操作,鼠標終于搞定!
至此,vmware tools 的安裝就全部完成了。
通過(guò)安裝VMWare Tools,我實(shí)現了鼠標的自動(dòng)切換,但是拷貝,粘貼還是有不行,請高手指教,共同探討,聯(lián)系QQ:18820884
本站僅提供存儲服務(wù),所有內容均由用戶(hù)發(fā)布,如發(fā)現有害或侵權內容,請
點(diǎn)擊舉報。