Linux VMware安裝失敗的處理

來源:互聯網
上載者:User

你們知道什麼是Linux VMware個非常高深的運用技術將由我來非常講解,Linux VMwareNB在哪呢,下面我來進入Linux VMware的無限領域。
1.啟動Rad Hat (圖形介面方式登陸),並且以管理員的身份登陸。
2.在Linux VMware虛擬機器的菜單中點擊:虛擬機器->安裝Linux VMware 工具->install。
3.Red Hat自動掛載Linux VMware Tools的虛擬光碟機,並顯示在案頭。
4.進去Linux VMware Tools的虛擬光碟機裡,把Linux VMwareTools-5.5.1-19175.tar.gz複製到/tmp目錄。
5.進去/tmp目錄,把Linux VMwareTools-5.5.1-19175.tar.gz解壓到目前的目錄下的一個檔案夾中Linux VMwareTools-5檔案夾)。
6.同時按住Ctrl+Alt+F1三個鍵,進入字元介面,並以root身份登陸。
7.輸入以下命令:cd /tmp/Linux VMwareTools-5/Linux VMware-tools-distrib進入Linux VMware-tools-distrib目錄)。
8.輸入:./Linux VMware-install.pl執行Linux VMware-install.pl檔案)。
9.然後一路“斷行符號”,就OK。
10. 輸入reboot命令(重新啟動)。

附:安裝失敗的處理

1、開啟菜單“VM -> Install Linux VMware Tools”,然後有光碟片自動彈出,把裡面的原始碼拷貝出來.我的檔案是Linux VMwareTools-6.0.4-93057.tar.gz,我把它拷貝到/opt裡.

2 、安裝 Linux VMware TOOLScd /opt tar -zxvf Linux VMwareTools-6.0.3-80004.tar.gz cd Linux VMware-tools-distrib/ ./Linux VMware-install.pl再一路安斷行符號,然後在What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include]會怎麼也找不到C Header

3、下載相應的kernel-devel.rpm包進行安裝首先查看核心版本:uname -r一下,我的是2.6.25-14.fc9.i686,所以下載kernel-devel-2.6.25-14.fc9.i686.rpm,然後運行rpm -ivh  kernel-devel-2.6.25-14.fc9.i686.rpm 進行安裝. 核心安裝完畢後,需要用這個命令確定核心 C header 的安裝目錄:ls -d /usr/src/kernels/$(uname -r)*/include

安裝核心具體步驟如下:

  1. [root@localhost ~]# uname -r  
  2. 2.6.25-14.fc9.i686  
  3. [root@localhost ~]# rpm -q kernel-devel  
  4. package kernel-devel is not installed  
  5. [root@localhost ~]# cd /home  
  6. [root@localhost home]# wget http://www.cnblogs.com/mywebname/admin/ftp:  
  7. //rpmfind.net/linux/fedora/releases/9/Everything/i386/os/Packages/kernel-devel-2.6.25-14.fc9.i686.rpm  
  8. [root@localhost home]# rpm -i kernel-devel-2.6.25-14.fc9.i686.rpm  
  9. [root@localhost home]# rpm -q kernel-devel  
  10. kernel-devel-2.6.25-14.fc9.i686 

注:安裝Linux VMware tools 的時候,如果提示沒有許可權,那麼需要用chmod 777 檔案名稱 來添加許可權,比如提示Linux VMware-install.pl沒有許可權,那麼用下面的命令:chmod 777 Linux VMware-install.pl

另:核心標頭檔C header files:http://rpmfind.net/linux/rpm2html/search.php?query=kernel-devel

4、再重新運行  ./Linux VMware-install.pl ,一路斷行符號下來,會出現In file included from include/linux/string.h:11,   from /tmp/Linux VMware-config3/vmhgfs-only/cpName.h:18, from /tmp/Linux VMware-config3/vmhgfs-only/cpName.c:18:include/linux/types.h:40: 錯誤:與‘uintptr_t’類型衝突/tmp/Linux VMware-config3/vmhgfs-only/vm_basic_types.h:170: 錯誤:‘uintptr_t’的上一個聲明在此make[2]: *** [/tmp/Linux VMware-config3/vmhgfs-only/cpName.o] 錯誤 1make[1]: *** [_module_/tmp/Linux VMware-config3/vmhgfs-only] 錯誤 2make[1]: Leaving directory `/usr/src/kernels/2.6.25-14.fc9.i686'make: *** [vmhgfs.ko] 錯誤 2make: Leaving directory `/tmp/Linux VMware-config3/vmhgfs-only'Unable to build the vmhgfs module.

5、解決的方法是:(有時不需要,看不清就複製到記事本裡看)

下載最新的open-vm-tools,現在可以下載到最新版本是open-vm-tools-2008.06.03- 96374.tar.gz (很難找到,給個連結,用迅雷可以下載:http://jaist.dl.sourceforge.net/sourceforge/open-vm-tools/open-vm-tools-2008.06.03-96374.tar.gz).tar xzvf open-vm-tools-2008.06.03-96374.tar.gzcd open-vm-tools-2008.06.03-96374/./configure && make

  1. cd modules/linux/  
  2. for i in *; do mv ${i} ${i}-only; tar -cf ${i}.tar ${i}-only; done  
  3. cd http://www.cnblogs.com/..  
  4. mv -f open-vm-tools-2008.06.03-96374/modules/linux/*.tar Linux VMware-tools-distrib/lib/modules/source/  
  5. cd Linux VMware-tools-distrib/  
  6. sudo ./Linux VMware-install.pl 

一路斷行符號,直到出現螢幕解析度的選項,選你喜歡的解析度.搞定。

6、裝好後還有一個問題,當你向共用資料夾寫檔案時總提示沒有許可權,root使用者都提示沒有許可權.看了一下日誌,是selinux在做怪,配置SElinux太麻煩了,不如關了它.vi /etc/sysconfig/selinux找到SElinux=enforcing這一行把它改為SElinux=disabled.重啟後一切就ok了.

  1. Linux vmware安裝完成最終安裝失敗,在編譯
  2. 輕鬆掌握Linux VMware上網設定
  3. Linux Samba用戶端和伺服器端檢查是否安裝
  4. Linux Hadoop運行應用程式開源實現
  5. Linux Mono項目的Beta3版已經發布學習到更多的RPM在here

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.