歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> 在Ubuntu 11.04上安裝VMware-player

在Ubuntu 11.04上安裝VMware-player

日期:2017/2/28 16:13:03   编辑:Linux教程

為什麼要在Ubuntu上安裝VMware Player?

我的目的是:在Ubuntu下可以使用Windows系統中的VMware生成的系統文件。

1. 先在Ubuntu下安裝linux版本的VMware Player

為什麼安裝的是VMware Player,而不是VMware Workstation?

因為前者是免費的,而且足夠我們使用。

下載列表:

http://downloads.vmware.com/d/info/desktop_downloads/vmware_player/3_0?client=ubuntu&channel=cs&ie=UTF-8&q=vmplayer%20download

我們可以選擇自己需要的版本進行下載安裝。

2. 在Ubuntu下啟動VMware Player

啟動後,向Windows下正常使用即可。

-------------------------

之前想在Ubuntu 11.04上安裝一個VMware Player,這樣就可以在Linux下使用我在Windows中生成的鏡像文件了(注:我的這個Ubuntu是通過wubi安裝的雙系統,一個是WinXP,一個是Ubuntu 11.04)。

但之前下載了的VMware Player的版本是2.5.5,而不是針對Ubuntu 11.04的VMware Player的3.1.4版本(注:使用舊的版本會提示找不到linux kernel的錯誤)。

之前下載的也是“****.bundle”安裝包,安裝方法很簡單,就是執行下面兩條指令就行了:


第一步:sudo chmod+x ****.bundle

第二步:sudo ./****.bundle

或者 sudo sh ****.bundle

但是由於我需要安裝新的VMware Player的版本,那麼之前的版本就需要被uninstall掉。通過“****.bundle”安裝包安裝的程序怎麼反安裝呢?

上網上查了相關說法,比如可以使用下面的指令來刪除通過“****.bundle”安裝包安裝的VMware Player:

sudo vmware-installer -u vmware-player

sudo rm -rf /usr/lib/vmware

然而悲劇的是,我安裝完”VMware-Player-2.5.5-328052.i386.bundle“後,並沒有這個vmware-installer。不知是我安裝的問題,還是只有“VMware-Player-3.***.i386.bundle”安裝後才能生成這個vmware-installer。

那現在怎麼辦?

其實很簡單,只要再執行一次安裝文件,就可以將其卸載了。即,再次執行 sudo ./VMware-Player-2.5.5-328052.i386.bundle。

但需注意的是,通過執行上面的指令,當卸載完之前的VMware Player 2.5.5後,安裝程序會再次提出是否安裝?由於我們執行卸載,所以直接選擇取消就可以了。

所以,要在Ubuntu 11.04上正常使用VMware Player,必須要安裝3.0以上的版本。比如:VMware-Player-3.1.4-385536.i386.bundle

下載地址:

http://downloads.vmware.com/d/info/desktop_downloads/vmware_player/3_0?client=ubuntu&channel=cs&ie=UTF-8&q=vmplayer%20download

這個地址打開後,需要你先注冊一個VMware的賬戶才行(這個是免費注冊的,如果已經有帳號了,直接使用用戶名和密碼登錄),使用用戶名和密碼登錄後,選擇相應的安裝版本,比如我安裝的是:VMware-Player-3.1.4-385536.i386.bundle

安裝方法如上,安裝完後,就可以將之前安裝過的系統鏡像加載進來了。(注:如果之前在Windows下沒有安裝VMware Player的linux下的一些驅動工具的話,那麼當你在Linux下啟動這個系統後,將會提示你下載並安裝這些程序。)

網上關於VMware Player在Ubuntu 11.04上安裝的帖子中,比較有用的是下面的內容,但現在出現了VMware-Player-3.1.4-385536.i386.bundle,所以下面的安裝方法已經不是必須的了。

Re: VMware-player on Ubuntu 11.04 kernel 2.6.38-8

Hi Wildan,

note that this patch was tested only with Wmplayer versions: 3.0.0 and 3.1.4 and Kernel 2.6.38-8.

try the follow steps:

1) install kernel headers:

sudo apt-get install linux-headers-`uname -r`

2) install development apps:

sudo apt-get install build-essential

3) Remove your current VMplayer

sudo vmware-installer -u vmware-player
sudo rm -rf /usr/lib/vmware

4) Create links to enable vmware detect your headers

sudo ln -s /usr/src/linux-headers-`uname -r`/include/generated/autoconf.h /usr/src/linux-headers-`uname -r`/include/linux/autoconf.h
sudo ln -s /usr/src/linux-headers-`uname -r`/include/generated/utsrelease.h /usr/src/linux-headers-`uname -r`/include/linux/utsrelease.h

5) Download the version 3.0.0 of WMplayer

http://downloads.vmware.com/d/info/desktop_downloads/vmware_player/3_0?client=ubuntu&channel=cs&ie=UTF-8&q=vmplayer%20download

6) Execute the .bundle file

./VMware-Player-3.0.0-203739.x86_64.bundle

7) Download and Apply the patch

wget http://communities.vmware.com/servlet/JiveServlet/download/1745523-61935/VMplayer_3.0.0-203739.x86_64_2.6.38-8.tar.gz

tar xfzv VMplayer_3.0.0-203739.x86_64_2.6.38-8.tgz

cd VMplayer_3.0.0-203739.x86_64_2.6.38-8chmod +x patch_apply.shsudo ./patch_apply.sh
sudo vmware-modconfig --console --install-all

[ ]'s

Marcos álvares

Copyright © Linux教程網 All Rights Reserved