Install and configure VMware_vSphere 5

VMware vSphere的安装配置

一、安装vSphere各个组件…. 1

1、安装vSphere Center. 1

2、在Vmware workstation上安装ESXi 11

二、vSphere vCenter连接配置…. 24

1、通过vSphere Client连接Vcener. 24

2、使用vSphere Client连接正常…. 35

3、新建集群…. 37

4、添加ESXi主机…. 41

5、查看ESXi主机的配置…. 48

6、添加磁盘…. 50

7、添加网络…. 57

三、新建并维护虚拟主机…. 64

1、创建Linux46(32bit)虚拟机…. 64

3-1)创建Linux虚拟机,磁盘空间不足失败…. 64

3-2)重新添加磁盘,启动并安装正常…. 75

2、创建windows2003虚拟机…. 89

一、安装vSphere Center

  1、安装vSphere Center

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

配置odbc连接,安装过程要在对应的数据源创建vcenter的表等对象:

hosts文件中维护正确的ip域名关系

80端口冲突,修改端口

            2、在Vmware workstation上安装ESXi

在workstation上新建虚拟机,准备安装ESXi,启动安装的过程如下报错:


如下设置:

ide1:0.startConnected = “TRUE”

ide1:0.present = “TRUE”

ide1:0.fileName = “F:\vSphere\VMware-VMvisor-Installer-5.0.0-469512.x86_64.iso”

ide1:0.deviceType = “cdrom-image”

floppy0.startConnected = “FALSE”

内存设置太小,调到1G就可以

但是有如下提示,无法继续

设置到2g过去了

root/jszc2012

摁f11同意

按F2设置密码

配置网络,设置静态 IP地址

配置esix虚拟的网卡为桥接,就可以和主机通信了:

            二、vSphere vCenter连接配置

            1、通过vSphere Client连接Vcener

如上异常,使用windows操作系统验证方式登录连接,还是有问题

查看日志,提示数据库版本不对(我开始安装数据库版本为Oracle10.2.0.1 32bit),日志路径如下:

C:\Documents and Settings\All Users\Application Data\VMware\VMware VirtualCenter\Logs

Section for VMware VirtualCenter, pid=30844, version=5.0.0, build=build-455964, option=Release

—— In-memory logs start ——–

2012-08-27T13:30:05.796+08:00 [30448 info ‘Hooks’] Hooks Initialized

—— In-memory logs end ——–

2012-08-27T13:30:05.796+08:00 [30448 info ‘Default’] Initialized channel manager

2012-08-27T13:30:05.796+08:00 [30448 info ‘Default’] Current working directory: C:\WINDOWS\system32

2012-08-27T13:30:05.812+08:00 [30448 info ‘Default’] Log path: C:\Documents and Settings\All Users\Application Data\VMware\VMware VirtualCenter\Logs

2012-08-27T13:30:05.812+08:00 [30448 info ‘Default’] Initializing SSL

2012-08-27T13:30:05.906+08:00 [30448 info ‘Default’] Vmacore::InitSSL: doVersionCheck = true, handshakeTimeoutUs = 120000000

2012-08-27T13:30:05.921+08:00 [30448 info ‘Default’] Starting VMware VirtualCenter 5.0.0 build-455964

2012-08-27T13:30:05.921+08:00 [30448 info ‘Default’] Log directory: C:\Documents and Settings\All Users\Application Data\VMware\VMware VirtualCenter\Logs.

2012-08-27T13:30:05.921+08:00 [30448 info ‘Default’] Account name: SYSTEM

2012-08-27T13:30:05.921+08:00 [30448 info ‘Default’] Total virtual memory available for the process 8589934464 KB

2012-08-27T13:30:05.921+08:00 [30448 info ‘Default’] [VpxOsLayer] Enabled low-frag process heap.

–>

2012-08-27T13:30:05.921+08:00 [30448 warning ‘Default’] Failed to initialize low-frag crt heap (31)

–>

2012-08-27T13:30:05.921+08:00 [30448 info ‘Default’] [Vpxd::ServerApp::Init:835] Calling: InfoDeclSchema(gDB)

2012-08-27T13:30:05.921+08:00 [30448 info ‘Default’] [Vpxd::ServerApp::Init:837] Calling: VpxCallbackDesc::Init(MakeFunctor(this, &ServerApp::RequestShutdown))

2012-08-27T13:30:05.921+08:00 [30448 info ‘Default’] [Vpxd::ServerApp::Init:838] Calling: VpxCryptInit()

2012-08-27T13:30:05.921+08:00 [30448 info ‘Default’] [Vpxd::ServerApp::Init:839] Calling: VpxLRO::Init()

2012-08-27T13:30:05.921+08:00 [30448 info ‘Default’] [Vpxd::ServerApp::Init:840] Calling: VpxLroList::Init(ltud)

2012-08-27T13:30:05.921+08:00 [30448 info ‘Default’] [VpxLRO] 640 max LROs

2012-08-27T13:30:05.921+08:00 [30448 info ‘Default’] [VpxLRO] 12 reserved internal LROs

2012-08-27T13:30:05.921+08:00 [30448 info ‘Default’] [VpxLRO] 12 reserved blocker LROs

2012-08-27T13:30:05.921+08:00 [30448 info ‘Default’] [VpxLRO] 12 reserved short LROs

2012-08-27T13:30:05.921+08:00 [30448 info ‘Default’] [VpxLRO] 8 reserved long LROs

2012-08-27T13:30:05.921+08:00 [30448 info ‘Default’] [VpxLRO] 600-second completed task lifetime

2012-08-27T13:30:05.921+08:00 [30448 info ‘Default’] [VpxLRO] 60-second minimum completed task lifetime

2012-08-27T13:30:05.921+08:00 [30448 info ‘Default’] [VpxLRO] 200 maximum completed tasks

2012-08-27T13:30:05.921+08:00 [30448 info ‘Default’] [VpxLRO] 600-second unregistered task lifetime

2012-08-27T13:30:05.921+08:00 [30448 info ‘Default’] [Vpxd::ServerApp::Init:841] Calling: VpxdCharacterizeThreadpool(ltud)

2012-08-27T13:30:05.921+08:00 [30448 info ‘Default’] [Vpxd::ServerApp::Init:842] Calling: VpxdCertificate_Load(gDB, CERTIFICATE_VMDBPATH )

2012-08-27T13:30:05.921+08:00 [30448 info ‘Default’] [Vpxd::ServerApp::Init:843] Calling: VpxdVdb::Init(VpxdVdb::GetVcVdbInstId(), false, false, NULL)

2012-08-27T13:30:05.921+08:00 [30448 info ‘Default’] Registry Item DB 5 value is ’50’

2012-08-27T13:30:06.359+08:00 [30448 info ‘Default’] [VdbSchemaLoader::LookupSchemaFromDB] Loaded schema and index information from DB

2012-08-27T13:30:06.359+08:00 [30448 error ‘Default’] Database version id ‘0’ is incompatible with this release of VirtualCenter.

2012-08-27T13:30:17.937+08:00 [31656 warning ‘VpxProfiler’ opID=SWI-b5fd72b2] VpxUtil_InvokeWithOpId [TotalTime] took 12000 ms

2012-08-27T13:30:29.937+08:00 [31656 warning ‘VpxProfiler’ opID=SWI-a82c6a7] VpxUtil_InvokeWithOpId [TotalTime] took 12000 ms

查询得知,要求vCenter如果使用的是Oracle数据库,则要求版本是在10.2.0.3以上的;


如上新装Oracle11.2.0.1后配置DSN异常(原有的Oracle10.2.0.1还存在),怀疑是10G和11G的相关环境变量设置有问题导致:

采用如下方法看不到驱动程序

推出出现上面的问题跟odbcad32是64位模式有关 ,进入直接运行C:\WINDOWS\SysWOW64\odbcad32.exe,这个是纯32位,如下手动运行这个odbcad32.exe

然后可以在驱动程序中可以看到11G的驱动了:

然后新建“文件DSN”

启动vmware vcenter还是报错

重新安装64位 的oracle11g client,然后配置odbc dsn:

如果我选择10的驱动(数据库 10.2.0.1 64 bit)

启动oracle11g client(64bit)的netca配置tnsnames.ora,测试连接正常

vSphere vCenter已经可以正常启动

            2、使用vSphere Client连接正常

信任证书

            3、新建集群

            4、添加ESXi主机

密码是jszc2012

分配给主机 10.11.82.143 的 Evaluation Mode 许可证已过期建议升级许可证:

登录VMware官方网站获取一个试用版的授权:

VMware vSphere Hypervisor 5 License MN61P-0218M-58Z40-0A0KH-2XU5J

在vmware官网申请license

重新添加主机成功

            5、查看ESXi主机的配置

            6、添加磁盘

为esxi增加磁盘,然后重起esxi,后面用vSphere Client将其添加到集群资源内

添加磁盘

            7、添加网络

            三、新建并维护虚拟主机

            1、创建Linux46(32bit)虚拟机

            3-1)创建Linux虚拟机,磁盘空间不足失败

因为磁盘空间不足,创建虚拟机失败,重新添加足够的磁盘后在创建

添加不成功

扫描后发现磁盘

这次增加后,启动虚拟机还是报磁盘空间不足。

            3-2)重新添加磁盘,启动并安装正常

# mount /media/cdrecord

            2、创建windows2003虚拟机

启动虚拟机

未启动虚拟机时

启动虚拟机后修改cd/dvd设备

Leave a Reply

Your email address will not be published. Required fields are marked *