1. 程式人生 > >Vmware Tools for Linux 安裝失敗問題解決

Vmware Tools for Linux 安裝失敗問題解決

幾天來一直試著安裝Vmware Tools for Linux  但是每次安裝到中途都會遇到同樣的問題

Unable to copy the source file ./installer/services.sh to the destination file
/etc/vmware-tools.

Execution aborted.

今天在網上不小心看到一個網友的回覆頓時來了靈感,問題解決!!

首先按照以下方法安裝

**************************************************************************************************************

安裝Vmwar Tools
選擇VM-->install VMware Tools
[[email protected]calhost ~]# mkdir /mnt/cdrom
[[email protected] ~]#mount /dev/cdrom /mnt/cdrom/
[[email protected] ~]# cd /mnt/cdrom/
[[email protected] cdrom]# ls 後有
VMwareTools-6.5.0-118166.i386.rpm
VMwareTools-6.5.0-118166.tar.gz


[[email protected]

cdrom]# cp VMwareTools-6.5.0-118166.tar.gz /tmp //拷貝到/tmp下
[[email protected] cdrom]# cd /tmp/
[[email protected] tmp]# tar zxvf VMwareTools-6.5.0-118166.tar.gz //解包檔案
[[email protected] tmp]# cd vmware-tools-distrib/
[[email protected] vmware-tools-distrib]# ./vmware-install.pl   //安裝開始

一路回車之後出現:


What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include]
The path "/usr/src/linux/include" is not an existing directory.
檢視目錄/usr/src/ 根本沒有linux這個目錄
只有/usr/src/redhat

google/baidu解決方案:
1. 用vmware-any-any-update109打補丁
    很不幸,下載完後,解壓 安裝出錯

[[email protected] vmware-any-any-update109]# ./runme.pl
Unable to open the installer database /etc/vmware/locations in read-mode.

Execution aborted.

2. 繼續google:有人說是kernel-source 沒有安裝
用RPM命令檢視一下
[[email protected] ~]# rpm -q kernel-source
package kernel-source is not installed
....
(接下來便是漫長而痛苦又無用的kernel source 安裝過程
不寫了--因為在這裡是無用功—)

3. 第三種方案是安裝kernel devel包
先檢視核心版本號
[[email protected] ~]# uname -r
2.6.25-14.fc9.i686
[[email protected] ~]# rpm -q kernel-i686-devel
package kernel-xen-devel is not installed

安裝:
[[email protected] ~]# rpm -ivh kernel-devel-2.6.25-14.fc9.i686.rpm

完成安裝後,在/usr/src/下已經多出了一個kernels目錄
[[email protected] ~]# cd /usr/src/
[[email protected] src]# ls
kernels redhat

無圖無真相,下面是截圖

/********************************************************************************************************************************/


/********************************************************************************************************************************/


[[email protected] src]# cd kernels
[[email protected] kernels]# ls
2.6.20-2925.9.fc7.i686.rpm

表明kernel-xen-devel已經裝好了
再次使用vmware-install.pl安裝,

./vmware-install.pl

就一直enter,裝完VMware Tools
(可自動找到配套的the directory of C header files了,哈)

在安裝的最後階段,會出現:
Do you want to change your guest X resolution? (yes/no) [no] y

Please choose one of the following display sizes (1 - 13):

[1] "640x480"
[2]< "800x600"
[3] "1024x768"
[4] "1152x864"
[5] "1280x800"
[6] "1152x900"
[7] "1280x1024"
[8] "1376x1032"
[9] "1400x1050"
[10] "1680x1050"
[11] "1600x1200"
[12] "1920x1200"
[13] "2364x1773"

Please enter a number between 1 and 13:

[3]

重啟系統,OK了

*******************************************************************************************************************************

以上轉自(版權所有):http://hi.baidu.com/ma_jieo/blog/item/1b19f58bb4a5db729e2fb4fe.html

以下是畢人安裝的終端程式碼

*******************************************************************************************************************************

*******************************************************************************************************************************


[[email protected] tmp]# cd vmware-tools-distrib
[[email protected] vmware-tools-distrib]# ./vmware-install.pl
A previous installation of VMware Tools has been detected.

The previous installation was made by the tar installer (version 4).

Keeping the tar4 installer database format.

You have a version of VMware Tools installed.  Continuing this install will
first uninstall the currently installed version.  Do you wish to continue?
(yes/no) [yes]

Uninstalling the tar installation of VMware Tools.

The removal of VMware Tools 8.8.0 build-471268 for Linux completed
successfully.

Installing VMware Tools.

In which directory do you want to install the binary files?
[/usr] /bin

What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc]

What is the directory that contains the init scripts? [/etc]

The file /etc/vmware-tools that this program was about to install already
exists. Overwrite? [yes]

Unable to copy the source file ./installer/services.sh to the destination file
/etc/vmware-tools.

Execution aborted.   //錯誤一次出現

[[email protected] vmware-tools-distrib]# sudo ./vmware-install.pl
A previous installation of VMware Tools has been detected.

The previous installation was made by the tar installer (version 4).

Keeping the tar4 installer database format.

You have a version of VMware Tools installed.  Continuing this install will
first uninstall the currently installed version.  Do you wish to continue?
(yes/no) [yes]

Uninstalling the tar installation of VMware Tools.

The removal of VMware Tools 8.8.0 build-471268 for Linux completed
successfully.

Installing VMware Tools.

In which directory do you want to install the binary files?
[/bin]

What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc]

What is the directory that contains the init scripts? [/etc]

The file /etc/vmware-tools that this program was about to install already
exists. Overwrite? [yes]

Unable to copy the source file ./installer/services.sh to the destination file
/etc/vmware-tools.

Execution aborted. //錯誤2次出現

[[email protected] vmware-tools-distrib]# sudo ./vmware-install.pl
A previous installation of VMware Tools has been detected.

The previous installation was made by the tar installer (version 4).

Keeping the tar4 installer database format.

You have a version of VMware Tools installed.  Continuing this install will
first uninstall the currently installed version.  Do you wish to continue?
(yes/no) [yes]

Uninstalling the tar installation of VMware Tools.

The removal of VMware Tools 8.8.0 build-471268 for Linux completed
successfully.

Installing VMware Tools.

In which directory do you want to install the binary files?
[/bin]

What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc] /etc/init.d

The path "/etc/init.d" is a directory which does not contain a rc0.d directory.


What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc] /etc/rc1.d

The path "/etc/rc1.d" is a directory which does not contain a rc0.d directory.

What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc] /rc0.d 

The path "/rc0.d" is not an existing directory.

What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc] rc0.d/

The path "rc0.d" is not an existing directory.

What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc] /etc/vmware-tools  

The path "/etc/vmware-tools" is a directory which does not contain a rc0.d
directory.

What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc]


In which directory do you want to install the daemon files?
[/sbin]

In which directory do you want to install the library files?
[/lib/vmware-tools]

The path "/lib/vmware-tools" does not exist currently. This program is going to
create it, including needed parent directories. Is this what you want?
[yes]

In which directory do you want to install the documentation files?
[/doc/vmware-tools]

The path "/doc/vmware-tools" does not exist currently. This program is going to
create it, including needed parent directories. Is this what you want?
[yes]

The installation of VMware Tools 8.8.0 build-471268 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/bin/vmware-uninstall-tools.pl".

Before running VMware Tools for the first time, you need to configure it by
invoking the following command: "/bin/vmware-config-tools.pl". Do you want this
program to invoke the command for you now? [yes]

Initializing...


Making sure services for VMware Tools are stopped.

Stopping vmware-tools (via systemctl):                     [確定]


[EXPERIMENTAL] The VMware FileSystem Sync Driver (vmsync) is a new feature that
creates backups of virtual machines. Please refer to the VMware Knowledge Base
for more details on this capability. Do you wish to enable this feature?
[no]


Before you can compile modules, you need to have the following installed...

make
gcc
kernel headers of the running kernel


Searching for GCC...
The path "" is not valid path to the gcc binary.
Would you like to change it? [yes]

What is the location of the gcc program on your machine?

The path "" is not valid path to the gcc binary.
Would you like to change it? [yes]

What is the location of the gcc program on your machine?

The path "" is not valid path to the gcc binary.
Would you like to change it? [yes]  no

Searching for a valid kernel header path...
The path "" is not a valid path to the 2.6.40.8-4.fc15.i686.PAE kernel headers.

Would you like to change it? [yes]

Enter the path to the kernel header files for the 2.6.40.8-4.fc15.i686.PAE
kernel?

The path "" is not a valid path to the 2.6.40.8-4.fc15.i686.PAE kernel headers.

Would you like to change it? [yes]  no


WARNING: This program cannot compile any modules for the following reason(s)...

- This program could not find a valid path to the gcc binary.  Please ensure
that the gcc binary is installed on this sytem.

- This program could not find a valid path to the kernel headers of the running
kernel.  Please ensure that the header files for the running kernel are
installed on this sytem.

[ Press Enter key to continue ]


The communication service is used in addition to the standard communication
between the guest and the host.  The rest of the software provided by VMware
Tools is designed to work independently of this feature.
If you wish to have the VMCI feature, you can install the driver by running
vmware-config-tools.pl again after making sure that gcc, binutils, make and the
kernel sources for your running kernel are installed on your machine. These
packages are available on your distribution's installation CD.
[ Press Enter key to continue ]


The VM communication interface socket family is used in conjunction with the VM
communication interface to provide a new communication path among guests and
host.  The rest of this software provided by VMware Tools is designed to work
independently of this feature.  If you wish to have the VSOCK feature  you can
install the driver by running vmware-config-tools.pl again after making sure
that gcc, binutils, make and the kernel sources for your running kernel are
installed on your machine. These packages are available on your distribution's
installation CD.
[ Press the Enter key to continue.]

The module vmxnet3 has already been installed on this system by another
installer or package and will not be modified by this installer.  Use the flag
--clobber-kernel-modules=vmxnet3 to override.

The module pvscsi has already been installed on this system by another
installer or package and will not be modified by this installer.  Use the flag
--clobber-kernel-modules=pvscsi to override.

The module vmmemctl has already been installed on this system by another
installer or package and will not be modified by this installer.  Use the flag
--clobber-kernel-modules=vmmemctl to override.

The VMware Host-Guest Filesystem allows for shared folders between the host OS
and the guest OS in a Fusion or Workstation virtual environment.  Do you wish
to enable this feature? [yes]


The fast network device driver (vmxnet module) is used only for our fast
networking interface. The rest of the software provided by VMware Tools is
designed to work independently of this feature.
If you wish to have the fast network driver enabled, you can install the driver
by running vmware-config-tools.pl again after making sure that gcc, binutils,
make and the kernel sources for your running kernel are installed on your
machine. These packages are available on your distribution's installation CD.
[ Press Enter key to continue ]

!!! [EXPERIMENTAL] !!!
VMware automatic kernel modules enables automatic building and installation of
VMware kernel modules at boot they are not already present.  By selecting yes,
you will be enabling this experimental feature.  You can always disable this
feature by re-running vmware-config-tools.pl.

Would you like to enable VMware automatic kernel modules?
[no]


Disabling timer-based audio scheduling in pulseaudio.



Detected X server version 1.10.4



Distribution provided drivers for Xorg X server are used.

Skipping X configuration because X drivers are not included.

Creating a new initrd boot image for the kernel.
Starting vmware-tools (via systemctl):                     [確定]
The configuration of VMware Tools 8.8.0 build-471268 for Linux for this running
kernel completed successfully.

You must restart your X session before any mouse or graphics changes take
effect.

You can now run VMware Tools by invoking "/bin/vmware-toolbox-cmd" from the
command line or by invoking "/bin/vmware-toolbox" from the command line during
an X server session.

To enable advanced X features (e.g., guest resolution fit, drag and drop, and
file and text copy/paste), you will need to do one (or more) of the following:
1. Manually start /bin/vmware-user
2. Log out and log back into your desktop session; and,
3. Restart your X session.

Enjoy,

--the VMware team

[[email protected] vmware-tools-distrib]#

興奮之餘上個圖:
 到此成功安裝!歡迎交流!

相關推薦

Vmware Tools for Linux 安裝失敗問題解決

幾天來一直試著安裝Vmware Tools for Linux  但是每次安裝到中途都會遇到同樣的問題 Unable to copy the source file ./installer/services.sh to the destination file/etc/vmware-tools.Execut

VMware tools for linux 安裝注意事項及常見問題解決

一直以來,安裝VMware tools問題會遇到這樣或那樣的問題,特別是共享資料夾找不到的問題。有時候在一臺電腦上搭建好了一個環境,過了很長時間買了新電腦又想搭建一個環境時,又會遇到問題。現在我把主要幾個可能遇到的問題的解決方法說明一下: 我主要裝過Fedora 13 和

安裝VMware Tools for Linux

第一步: 下載VMware Tools for Linux, 可通過vmware軟體自動下載,  下載完後在vmware軟體安裝目錄下, 檔名為linux.iso 第二步: 選擇ISO映象 第三步: 進入終端 掛載cdrom: mount /dev/cdrom&nb

VMware虛擬機器中如何安裝VMware Tools增強工具,以解決VMware虛擬機器和本地系統之間複製貼上問題

1.操作環境: window10(本機系統) VMware虛擬機器 2.遇到問題         在windows系統上安裝VMware虛擬機器,然後就可以在虛擬機器上面模擬一些我們想要的執行環境,但是在使用的過程中會發現,windows系統上的文字不能夠複製貼上到V

在centOs7虛擬機器上安裝vmware-tools時的報錯解決

今天在vmware上安裝了centOS7,安裝完後更新vmware-tools。 在安裝vmware-tools-10.0的過程中,提示 “The path "" is not a valid path to the 3.10.0.-327.el7.x86_64 kernel headers. Woluld

NBU Client For Linux 安裝

nbu7 netbackup7 client 安裝 更新1.1 NBU Client For Linux安裝1、 客戶端添加NBU SERVER HOSTS解析[[email protected]/* */]# cat /etc/hosts# Do not remove the followin

NBU Server For Linux 安裝

netbackup7 nbu7 安裝 更新 補丁1.1 添加HOSTS解析1.安裝NBU SERVER前添加本機HOSTS解析[[email protected]/* */ ~]# cat /etc/hosts127.0.0.1 localhost localhost.localdomai

vsphere批量更改vmware-tools為全部安裝方法

趨勢vsphere client中批量選擇虛擬機,右鍵升級tool是,選擇自動工具升級。輸入命令/S /v /qn ADDLOCAL=ALL,會自動選擇自動安裝,並在安裝結束後重啟。如果不自動重啟,還需要加命令REBOOT=Rvsphere批量更改vmware-tools為全部安裝方法

Microsoft SQL Server for Linux安裝和配置

fig fcm zone linux for onf targe 查看 nbsp 客戶端   雖說mssql for linux早已經出來了,但原本沒有打算這麽早就去嘗試的,無奈之下還是得先嘗試用了,這裏分幾篇介紹我在用mssql for linux時遇到的問題,不得不說作

Weblogic12c for Linux安裝教程

weblogic linux Weblogic for Linux軟件安裝流程3.1 主機環境要求本次環境使用一臺CentOS6.5服務器安裝weblogic12c,在同一臺主機上運行管理服務器和受管理服務器,共建立兩臺受管理服務器new_ManagedServer_1、new_ManagedServ

.net framework 4.0 安裝失敗解決辦法

輸入 src 更新 msvc frame redis use spa svc 方法一 1.打開cmd命令窗口 運行net stop WuAuServ 停止更新服務 2.開始----運行------輸入%windir% 3.找到SoftwareDistribut

Symantec Backup Exec 2012 Agent For Linux安裝

oracle實例 ack please 物理 tin str 遠程代理 服務器 pla Backup Exec 2012 介紹 Backup Exec 2012 是一種為虛擬和物理環境提供保護的集成產品,能夠簡化備份和災難恢復,並提供了無可匹敵的恢復功能。借助於強大

《絕地求生大逃殺》BE錯誤怎麽辦 BE服務未正常運行及安裝失敗解決方法

右鍵 netsh 復制 切換 殺毒軟件 使用 mss class http 《絕地求生大逃殺》BattlEye Launcher是遊戲的反作弊程序,也是啟動過程中做容易出現錯誤的,今天小編帶來“爆錘吧務”分享的《絕地求生大逃殺》BE服務未正常運行及安裝失敗解決方法,

wsl(Windows Subsystem for Linux)安裝簡易指南

14. lis tor OS 127.0.0.1 sys 鏈接 代號 mina 1. 在“啟用或關閉Windows功能”窗口中打開“適用於Linux的Windows子系統”; 2. 讓你的Windows更新程序將你的Wind

iOSOpenDev安裝失敗解決

one tab cif specific ont fda sim set ima xcode 版本為:先到官網下載:iOSOpenDev http://iosopendev.com/download/其它工具:安裝MacPorts軟件https://www.macports

Pycharm載入第三方外掛失敗方法(關鍵字:Nothing to show)和安裝失敗解決辦法

一、修復外掛顯示錯誤,共3個步驟: 1,新增額外源:  清華:https://pypi.tuna.tsinghua.edu.cn/simple 阿里雲:http://mirrors.aliyun.com/pypi/simple/ 中國科技大學 https://pypi.mi

Mac osx 10.10系統下MySQL的安裝安裝失敗解決方法)

首先,官網下載MySQL,我下的版本是mysql-5.6.21-osx10.9-x86_64.dmg http://dev.mysql.com/downloads/mysql/ (來份度盤嗎親?連結: http://pan.baidu.com/s/1i31iz1F 密碼: uyd

SQL Server On Linux(2)——SQL Server 2019 For Linux安裝過程細節研究

  接上文SQL Server On Linux(1)——CentOS 7 安裝SQL Server2019 在安裝過程中,作者發現了一些資訊,這些資訊引起了作者的興趣,那麼下面作者把自己研究的結果分享出來,如果讀者對此有深入研究過,歡迎指正。 為什麼要研究這些東西?說白了就

MySQL 5.1版本安裝失敗解決方案

  MySQL 5.1版本安裝失敗解決方案 1.首先解除安裝已經安裝過的MySQL,解除安裝最好在系統自帶的解除安裝中進行,具體方法如下:     1)點選“開始選單”---“控制面板”---“程式”,點選“程式”中的“解除安裝程式”;

Redis for linux安裝配置之—-原始碼安裝

一‘redis單例項安裝配置1.下載redis原始碼壓縮包,並將其上傳至伺服器/usr/local2.解壓redis原始碼壓縮包  # tar -xzvf redis-3.2.12.tar.gz3.進入redis解壓縮後的目錄進行編譯  # cd redis-3.2.12  #