centos6.3 x64安装vmware server 2

简介:

 首先我想说vmware 在linux下安装真TM坑爹..

 吐槽结束,然后看看我如何搞定它..

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.gz
Download patch ( Patch provided by: Ramon de Carvalho Valle ):


# wget http://linuxconfig.org/images/files/vmw ... tch.tar.gz
Decompress patch:

# tar xzf vmware-ubuntu-10.04.patch.tar.gz
First, 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.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 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 *-only
Apply 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.pl
3. Step 3: Install VMware-server
At 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.pl

Making sure services for VMware Server are stopped.

Stopping VMware autostart virtual machines:

Virtual machines[失败]

Stopping VMware management services:

VMware Virtual Infrastructure Web Access

VMware 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 the

running kernel.

The bld-2.6.18-8.el5-i686smp-RHEL5 – vmci module loads perfectly into the

running kernel.

The bld-2.6.18-8.el5-i686smp-RHEL5 – vsock module loads perfectly into the

running kernel.

Do you want networking for your virtual machines? (yes/no/help) [yes]

直接回车好了 默认就是yes

Configuring a bridged network for vmnet0.

Please specify a name for this network.

[Bridged]

选择网络接口名称 没有什么好做的 直接回车

The following bridged networks have been defined:

. vmnet0 is bridged to eth0

All 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的就选择no

Do you want to be able to use host-only networking in your virtual machines? [yes]

配置host-only 网络环境 yes

Configuring 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 the

running kernel.

安装内核模块

Please specify a port for remote connections to use [902]

选择远程服务端口

Please specify a port for standard http connections to use [8222]

当安装完成后用http://IP: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 to

specify 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. This

program is going to create it, including needed parent directories. Is this

what 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 is

going 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 is

going 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 completed

successfully. You can decide to remove this software from your system at any

time by invoking the following command: “/usr/bin/vmware-uninstall-vix.pl”.

Enjoy,

–the VMware team

Starting 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 Access

Starting VMware autostart virtual machines:

Virtual machines[确定]

The configuration of VMware Server 2.0.1 build-156745 for Linux for this

running kernel completed successfully.

完成后在浏览器里面用http://IP:8222或者https://IP:8333

其实就算用http://IP:8222也会转到https://IP:8333

到此Linux下的VMware-server安装就算完成了

 


     本文转自 showerlee 51CTO博客,原文链接:http://blog.51cto.com/showerlee/1157138,如需转载请自行联系原作者



相关文章
|
9天前
|
缓存 Linux 调度
【YashanDB数据库】VMware虚拟机使用默认安装,在掉电之后数据库无法启动
VMware虚拟机使用默认安装,在掉电之后数据库无法启动
|
6天前
|
IDE 测试技术 数据库
【YashanDB知识库】使用vmware虚拟机安装的YashanDB,本机无法访问
在 VMware 虚拟机中安装并测试 YashanDB,数据库及虚拟机运行正常,但本地 IDE 工具无法连接虚拟机中的数据库。问题可能与 VMware 网络适配器配置或网络模式(如 NAT、桥接)有关,导致网络通信异常。需检查虚拟机网络设置、IP 地址配置以及防火墙规则,确保本地与虚拟机间网络连通性。目前无明确修复版本。
|
15天前
|
Linux 虚拟化 数据安全/隐私保护
系统崩溃不用慌!VMware这个逆天功能竟能让CentOS一键回档?后悔药真实存在!
备份的重要性在于它能在系统出现异常或错误时,帮助我们快速恢复到正常状态,避免重新安装系统和配置环境。VMware 提供了两种备份方式:快照和克隆。 **快照**是保存虚拟机某一时刻的完整状态(包括内存、CPU、磁盘数据),便于快速回滚,适合临时保存状态。操作简单,可在系统运行时创建。 **克隆**则是复制整个虚拟机系统,侧重长期备份,需在系统关闭时进行。分为完整克隆和链接克隆,前者独立于源系统,占用更多空间,但更安全可靠。
47 17
系统崩溃不用慌!VMware这个逆天功能竟能让CentOS一键回档?后悔药真实存在!
|
15天前
|
Linux 虚拟化 Windows
VMware隐藏黑科技!CentOS安装这个神器效率翻倍 文件互传竟比U盘还快?
### 安装VMtools的作用及步骤 安装VMtools可以实现Windows与CentOS之间的字符串和命令粘贴、文件夹共享等操作。在CentOS中,通过VMware菜单栏选择“VMware Tools”,将下载的压缩包拷贝到`/opt`目录并解压。接着进入终端,使用`./vmware-install.pl`命令完成安装。安装后重启系统,即可实现Windows与CentOS之间的字符和文件共享。具体步骤包括解压文件、启动命令行终端、安装VMtools以及配置文件共享。
53 16
VMware隐藏黑科技!CentOS安装这个神器效率翻倍 文件互传竟比U盘还快?
|
15天前
|
存储 IDE Linux
零基础保姆级教程!手把手教你免费玩转Linux CentOS安装+学习环境搭建(附避坑指南)
本文详细介绍了在VMware虚拟机中安装CentOS 6.8的全过程。首先,需确保已安装VMware并开启V-CPU虚拟化功能,可通过BIOS设置或使用LeoMoon CPU-V工具检测。接着,下载CentOS镜像文件,并在VMware中新建虚拟机,配置CPU、内存、硬盘等参数。最后,加载ISO镜像启动虚拟机,按照提示完成CentOS的安装,包括语言、键盘、存储方式、地区、密码设置及硬盘分区等步骤。安装完成后,以root用户登录即可进入系统桌面,开始学习Linux命令和操作。
76 12
零基础保姆级教程!手把手教你免费玩转Linux CentOS安装+学习环境搭建(附避坑指南)
|
24天前
|
移动开发 安全 API
VMware vCenter Server 8.0U3d - 集中管理 vSphere 环境
VMware vCenter Server 8.0U3d - 集中管理 vSphere 环境
69 21
VMware vCenter Server 8.0U3d - 集中管理 vSphere 环境
|
2天前
|
存储 Linux 网络安全
如何从CentOS7升级到8?CentOS8最新安装教程
从CentOS 7升级到8只需三步:清理系统、更换软件包及存储库、安装新内核与发布版本。首先确保系统最新并清理冗余包,接着替换基础系统包为CentOS 8版本,最后通过DNF工具完成内核更新与系统同步。整个过程需在终端执行,建议升级前备份VPS快照以防数据丢失。此方法可避免重装系统导致的数据清除问题,实现平滑升级。
24 6
|
26天前
|
存储 编解码 虚拟化
【2025最新】VMware Workstation Pro 虚拟机配置与安装VMware Tools 感受它的强大~
VMware Tools 是 VMware 虚拟机中自带的一种增强工具,能够显著提升虚拟机的性能和用户体验。它提供了优化的显卡驱动程序、文件共享与拖放功能、时间同步以及跨虚拟机和宿主机的复制粘贴功能。安装 VMware Tools 可以让虚拟机在 VMware 平台上运行得更加高效,并且对于老旧系统(如 Win98、Win2000、WinXP)也能提供必要的驱动支持。每个虚拟机都需要独立安装与其操作系统版本相匹配的 VMware Tools,以确保最佳兼容性和性能表现。
77 6
【2025最新】VMware Workstation Pro 虚拟机配置与安装VMware Tools 感受它的强大~
|
3天前
|
IDE 测试技术 网络安全
【YashanDB知识库】使用vmware虚拟机安装的YashanDB,本机无法访问
【YashanDB知识库】使用vmware虚拟机安装的YashanDB,本机无法访问
|
25天前
|
移动开发 安全 API
VMware vCenter Server 7.0U3t 下载 - 集中管理 vSphere 环境
VMware vCenter Server 7.0U3t 下载 - 集中管理 vSphere 环境
72 1
VMware vCenter Server 7.0U3t 下载 - 集中管理 vSphere 环境