当前位置: 首页>>技术教程>>正文


在Ubuntu Linux 10.04(lucid lynx)上安装VMware-server 2.0.2

, ,

本文是在Ubuntu Linux Lucid Lynx 10.04上安装VMware-server 2.0.2的step-by-step指南。本指南假定读者已获得VMware-server 2.0.2安装包的副本以及有效的序列号。以下所有命令均以root用户身份执行。更改为root用户使用:

$ sudo bash

环境:

  • 2.6.32-21-generic#32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010 i686 GNU /Linux
  • gcc(Ubuntu 4.4.3-4ubuntu5)4.4.3
  • VMware-server-2.0.2-203138.i386.tar.gz

步骤1:安装必备组件

# apt-get install build-essential linux-headers-`uname -r`

步骤2:将修补程式套用至VMware-server-2.0.2

在尝试在Ubuntu 10.04上安装VMware-server 2.0.2之前,我们需要将修补程序应用于VMserver模块和vmware-config.pl文件。在此步骤中,我们将解压缩VMware-server 2.0.2安装包并应用此补丁。从解压缩VMware-server 2.0.2安装包VMware-server-2.0.2-203138.i386.tar.gz开始。

# tar xzf VMware-server-2.0.2-203138.i386.tar.gz

下载补丁(补丁提供者:拉蒙·德·卡瓦略·瓦尔):

# wget http://linuxconfig.org/images/files/vmware-ubuntu-10.04.patch.tar.gz

解压缩补丁:

# tar xzf vmware-ubuntu-10.04.patch.tar.gz

首先,我们对所有模块应用补丁:

# cd vmware-server-distrib/lib/modules/source/
# for f in *.tar ; do tar pxf $f ; done
# cd ~/vmware-server-distrib/
patch -p1 < ~/vmware-server2.patch
patching file lib/modules/source/vmci-only/include/pgtbl.h
patching file lib/modules/source/vmnet-only/vnetUserListener.c
patching file lib/modules/source/vmci-only/Makefile
patching file lib/modules/source/vmmon-only/common/vmx86.c
patching file lib/modules/source/vmmon-only/include/compat_cred.h
patching file lib/modules/source/vmmon-only/include/x86svm.h
patching file lib/modules/source/vmmon-only/linux/driver.c
patching file lib/modules/source/vmmon-only/linux/hostif.c
patching file lib/modules/source/vmmon-only/Makefile
patching file lib/modules/source/vmnet-only/Makefile
patching file lib/modules/source/vmnet-only/netif.c
patching file lib/modules/source/vsock-only/Makefile

gzip所有模块:

# cd ~/vmware-server-distrib/lib/modules/source/
# for f in vmci vmmon vmnet vsock ; do tar pcf $f.tar $f-only ; done
# rm -fr *-only

将补丁应用于vmware-config.pl:

# cd 
# patch vmware-server-distrib/bin/vmware-config.pl vmware-config.patch 
patching file vmware-server-distrib/bin/vmware-config.pl

步骤3:安装VMware-server

在此阶段,可以进行VMware-server的所有安装。在进行vmware-server的安装时,请问:

“您想指定其他管理员吗?”

回答是,然后输入您的用户名。否则,root用户将由VMware-server安装的管理员来管理。

# cd ~/vmware-server-distrib/
# ./vmware-install.pl

成功安装VMware-server之后,您应该会看到:

Enjoy,

--the VMware team

Starting VMware services:
   Virtual machine monitor                                             done
   Virtual machine communication interface                             done
   VM communication interface socket family:                           done
   Virtual ethernet                                                    done
   Bridged networking on /dev/vmnet0                                   done
   Host-only networking on /dev/vmnet1 (background)                    done
   DHCP server on /dev/vmnet1                                          done
   Host-only networking on /dev/vmnet8 (background)                    done
   DHCP server on /dev/vmnet8                                          done
   NAT service on /dev/vmnet8                                          done
   VMware Server Authentication Daemon (background)                    done
   Shared Memory Available                                             done
Starting VMware management services:
   VMware Server Host Agent (background)                               done
   VMware Virtual Infrastructure Web Access
Starting VMware autostart virtual machines:
   Virtual machines                                                    done

The configuration of VMware Server 2.0.2 build-203138 for Linux for this 
running kernel completed successfully.

故障排除:

错误:

make[2]: *** [/tmp/vmware-config0/vmmon-only/linux/driver.o] Error 1
make[1]: *** [_module_/tmp/vmware-config0/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-21-generic'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config0/vmmon-only'
Unable to build the vmmon module.

解:

您需要按照步骤2中的说明应用补丁。

参考资料

本文由Ubuntu问答整理, 博文地址: https://ubuntuqa.com/article/9720.html,未经允许,请勿转载。