CentOS 6.3 x64安装VMware Server 2

首先我想说vmware 在linux下安装真麻烦。

吐槽结束,然后看看我如何搞定它..1.去官网https://my.vmware.com/group/vmware/evalcenter?p=server20下载vmware server 2编译安装包,需注册才能下载.2.修改vmware安装内核,由于vmware server 2 默认适配的是2.6.18版本linux内核,高版本内核均无法编译安装成功,CentOS6.3内核为2.6.32,此处在网上寻找资料耗费N长时间….最后终于找到(# 后面的为需要输入的命令)# tar xzf VMware-server-2.0.2-203138.x86_64.tar.gzDownload patch ( Patch provided by: Ramon de Carvalho Valle ):

# wget … tch.tar.gzDecompress patch:# tar xzf vmware-Ubuntu-10.04.patch.tar.gzFirst, we apply a patch to all modules:# cd vmware-server-distrib/lib/modules/source/# for f in *.tar ; do tar pxf $f ; done# cd ~/vmware-server-distrib/# patch -p1 < ~/vmware-server2.patchpatching file lib/modules/source/vmci-only/include/pgtbl.hpatching file lib/modules/source/vmnet-only/vnetUserListener.cpatching file lib/modules/source/vmci-only/Makefilepatching file lib/modules/source/vmmon-only/common/vmx86.cpatching file lib/modules/source/vmmon-only/include/compat_cred.hpatching file lib/modules/source/vmmon-only/include/x86svm.hpatching file lib/modules/source/vmmon-only/linux/driver.cpatching file lib/modules/source/vmmon-only/linux/hostif.cpatching file lib/modules/source/vmmon-only/Makefilepatching file lib/modules/source/vmnet-only/Makefilepatching file lib/modules/source/vmnet-only/netif.cpatching file lib/modules/source/vsock-only/Makefilegzip all modules:# cd ~/vmware-server-distrib/lib/modules/source/# for f in vmci vmmon vmnet vsock ; do tar pcf $f.tar $f-only ; done# rm -fr *-onlyApply patch to vmware-config.pl:# cd # patch vmware-server-distrib/bin/vmware-config.pl vmware-config.patch patching file vmware-server-distrib/bin/vmware-config.pl3. Step 3: Install VMware-serverAt this stage everything is ready for VMware-server installation.When you will be during the vmware-server installation asked:”Would you like to specify a different administrator?”answer YES and enter your username. Otherwise root will by and administrator of you VMware-server installation.# cd ~/vmware-server-distrib/# ./vmware-install.pl安装完成后开始配置VMware 运行 “/usr/bin/vmware-config.plMaking sure services for VMware Server are stopped.Stopping VMware autostart virtual machines:Virtual machines[失败]Stopping VMware management services:VMware Virtual Infrastructure Web AccessVMware Server Host Agent[失败]Stopping VMware services:VMware Authentication Daemon[确定]Virtual machine monitor[确定]You must read and accept the End User License Agreement to continue.Press enter to display it.阅读许可协议Do you accept? (yes/no) y你是否接受The bld-2.6.18-8.el5-i686smp-RHEL5 – vmmon module loads perfectly into therunning kernel.The bld-2.6.18-8.el5-i686smp-RHEL5 – vmci module loads perfectly into therunning kernel.The bld-2.6.18-8.el5-i686smp-RHEL5 – vsock module loads perfectly into therunning kernel.Do you want networking for your virtual machines? (yes/no/help) [yes]直接回车好了 默认就是yesConfiguring a bridged network for vmnet0.Please specify a name for this network.[Bridged]选择网络接口名称 没有什么好做的 直接回车The following bridged networks have been defined:. vmnet0 is bridged to eth0All your ethernet interfaces are already bridged.Do you want to be able to use NAT networking in your virtual machines? (yes/no)[yes]配置vmnet0 直接回车 有[yes]这种的就表示默认Configuring a NAT network for vmnet8.Please specify a name for this network. [NAT]配置vmnet8 直接回车Do you want this program to probe for an unused private subnet? (yes/no/help) [yes]探测DHCP 子网,自动探测,随机选择 默认yes 可直接回车Probing for an unused private subnet (this can take some time)…The subnet 192.168.92.0/255.255.255.0 appears to be unused.The following NAT networks have been defined:. vmnet8 is a NAT network on private subnet 192.168.92.0.Do you wish to configure another NAT network? (yes/no) [no]默认是no 直接回车 看见有another的就选择noDo you want to be able to use host-only networking in your virtual machines? [yes]配置host-only 网络环境 yesConfiguring a host-only network for vmnet1.Please specify a name for this network.[HostOnly]直接回车Do you want this program to probe for an unused private subnet? (yes/no/help) [yes]直接回车Probing for an unused private subnet (this can take some time)…The subnet 192.168.185.0/255.255.255.0 appears to be unused.The following host-only networks have been defined:. vmnet1 is a host-only network on private subnet 192.168.185.0.Do you wish to configure another host-only network? (yes/no) [no]选no 回车The bld-2.6.18-8.el5-i686smp-RHEL5 – vmnet module loads perfectly into therunning kernel.安装内核模块Please specify a port for remote connections to use [902]选择远程服务端口Please specify a port for standard http connections to use [8222]当安装完成后用:8222可以访问server 服务器来配置虚拟机Please specify a port for secure http (https) connections to use [8333]当安装完成后用https://IP:8333可以访问server 服务器来配置虚拟机The current administrative user for VMware Server is ”. Would you like tospecify a different administrator? [no]登录管理VMware-server的管理员帐号 可以指定系统里已经有的帐号,,no表示用root帐号Using root as the VMware Server administrator.In which directory do you want to keep your virtual machine files?[/var/lib/vmware/Virtual Machines]生成SSL证书文件 直接回车即可The path “/var/lib/vmware/Virtual Machines” does not exist currently. Thisprogram is going to create it, including needed parent directories. Is thiswhat you want? [yes]直接回车Please enter your 20-character serial number.Type XXXXX-XXXXX-XXXXX-XXXXX or ‘Enter’ to cancel:这里序列号为: A81AN-FYFDC-U7H25-426KH输入20位许可证后 回车 如果许可证正确下面的配置就一路回车就可以了Creating a new VMware VIX API installer database using the tar4 format.Installing VMware VIX API.In which directory do you want to install the VMware VIX API binary files?[/usr/bin]In which directory do you want to install the VMware VIX API library files?[/usr/lib/vmware-vix/lib]The path “/usr/lib/vmware-vix/lib” does not exist currently. This program isgoing to create it, including needed parent directories. Is this what you want?[yes]In which directory do you want to install the VMware VIX API document pages?[/usr/share/doc/vmware-vix]The path “/usr/share/doc/vmware-vix” does not exist currently. This program isgoing to create it, including needed parent directories. Is this what you want?[yes]The installation of VMware VIX API 1.6.2 build-156745 for Linux completedsuccessfully. You can decide to remove this software from your system at anytime by invoking the following command: “/usr/bin/vmware-uninstall-vix.pl”.Enjoy,–the VMware teamStarting VMware services:Virtual machine monitor[确定]Virtual machine communication interface[确定]VM communication interface socket family:[确定]Virtual ethernet[确定]Bridged networking on /dev/vmnet0[确定]Host-only networking on /dev/vmnet1 (background)[确定]DHCP server on /dev/vmnet1[确定]Host-only networking on /dev/vmnet8 (background)[确定]DHCP server on /dev/vmnet8[确定]NAT service on /dev/vmnet8[确定]VMware Server Authentication Daemon (background)[确定]Shared Memory Available[确定]Starting VMware management services:VMware Server Host Agent (background)[确定]VMware Virtual Infrastructure Web AccessStarting VMware autostart virtual machines:Virtual machines[确定]The configuration of VMware Server 2.0.1 build-156745 for Linux for thisrunning kernel completed successfully.完成后在浏览器里面用:8222或者https://IP:8333其实就算用:8222也会转到https://IP:8333的到此Linux下的VMware-server安装就算完成了

有多远,走多远,把足迹连成生命线。

CentOS 6.3 x64安装VMware Server 2

相关文章:

你感兴趣的文章:

标签云: