Building Vsphere 4.1 update 1 lab within VMWare Workstation 7.1.x

I have found (http://roggyblog.blogspot.com/2009_11_01_archive.html) a complete instruction to create an VMWare VSphere 4.x environment (with working VMotion!) with VMWare workstation 7.x

I have build this environment (vsphere 4.1) myself and i works fine !!

The lab environment:
* VM Nwtwork: 10.10.0.0 /24
* SAN Network: 192.168.0.0 /24
* Management network: 10.0.0.0 /24

Graphical:
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggmVFgVpHp8f2pZQg3z9GJyN5kjghWstGlZjk2r-Gqo969VMqjWTPX0KLweaegzUcz9QjCsgLNLPV7JdgiO4FMGHs1ZuGzJ70KyT79LOYafRthklIl1XnWXJgAiqPOowl1uPxUiYJqeRPi/s1600-h/VMwareESXLab.jpg

Virtual machine 1 (ESX1)
10.0.0.1 / 192.168.0.1
Needed 2GB RAM

Virtual machine 2 (ESX2)
10.0.0.2 / 192.168.0.2
Needed 2 GB RAM

Virtual Machine 3 (SAN) with Openfiler 2.x
10.0.0.5 / 192.168.0.5
Needed 0.5 GB RAM

Virtual Machine 4 (VCENTER) with Windows Server 2008R2 (x64)
10.0.0.10
Needed 2 GB RAM

Software needed:
- ISO file with Windows Server 2008R2 Enterprise/Datacenter x64
- ISO file with VSphere 4.1 update 1
- ISO file with VCENTER 4.1

Ports VCENTER SERVER
HTTPS 443
HTTP 80
Heartbeat port (UDP 902
Webservice HTTP 8080
Webservice HTTPS 8443
LDAP 389
SSL 636

Some commands for the ESX server console you might need:
#vimsh -n -e /hostsvc/maintenance_mode_enter
#vimsh -n -e /hostsvc/maintenance_mode_exit
#shutdown -h now (this will shutdown the host machine)
#shutdown -r now (this will reboot the host machine)

Reference guide commands:
http://www.vmware.com/pdf/vsphere4/r40/vsp_40_vcli.pdf

Reference guide license VPSHERE / how to change your license
Especially interesting for those with an vmware academic license
http://www.vmware.com/files/pdf/licensing_howto_guide.pdf

Here is what i did step by step using the instructions made by Richard Vimeo:

1. Create VSPHERE team

Start VMWare Workstation 7.x
choose create new team
name vpshere

virtual machine 1: esx1 (mount vpshere 4.1 install DVD)
virtual machine 2: esx2 (mount vpshere 4.1 install DVD)
virtual machine 3: vcenter (mount Windows Server 2008R2 install DVD)
virtual machine 4: SAN (openfiler) (other linux 2.6.2 kernel)

create 3 LAN Segments:
LAN 1: MGMT
LAN 2: SAN
LAN 3: VM

Put all VM's in the MGTM lan segment
Goto step 2

2. INSTALL ESX1 (virtual machine with 3 NIC)

Goto VM
Goto Settings
Mount ISO file to Virtual Machine

Boot virtual machine by running it

Choose Graphic install

Choose No custom drivers

IP address 10.0.0.1
Subnetmask 255.255.255.0
Gateway 10.0.0.254
DNS 10.0.0.10
Hostname: ESX1.xxxxx.local

shutdown this virtual machine from the console

VMWare Workstation:
Choose Add Hardware
NIC
Choose first Host-only
Change later to Team SAN

VMWare Workstation:
Add Hardware
NIC
Choose first custom VM0
Change later to Team VM

Run this virtual machine and goto step 3

3. Install ESX2 (virtual machine with 3 NIC)

Goto VM
Goto Settings
Mount ISO file to Virtual Machine

Boot virtual machine by running it

Choose Graphic install

No custom drivers

IP address 10.0.0.2
Subnetmask 255.255.255.0
Gateway 10.0.0.254
DNS 10.0.0.10
Hostname: ESX2.xxxxx.local

shutdown this virtual machine from the console

VMWare Workstation:
Choose Add Hardware
NIC
Choose first Host-only
Change later to Team SAN

VMWare Workstation:
Add Hardware
NIC
Choose first custom VM0
Change later to Team VM

Run this virtual machine and goto step 4

4. Install VCENTER Server

Start virtual machine

IP address: 10.0.0.10
Computername: VCENTER
DNS suffix xxxxx.local

Add Role: DNS
Custom Config
DNS server
Zone name: xxxxxx.local
Both secure / non-secure updates
no forware queries
Error: root hints not found, click OK

DNS server
A record ESX1 10.0.0.1
A record ESX2 10.0.0.2
A record SAN 10.0.0.5
A record VCENTER 10.0.0.10

Remove IE ESC

Install VSPhere client from the ESX1 server (https://esx1.vsphere.local)

Install firefox on the Vcenter server via shared folders

Connect ISO file with VCENTER server
Install VCENTER Server
(Configuration will be done in step 7)

Goto step 5 to configure SAN
This must be up and running before we can configure vcenter

5. Install SAN

Configure this virtual machine with 2 NIC's
1 nic: 10.x.x.x network
1 nic 192.168.x.x network / team SAN

Connect Openfiler 3.x ISO file to virtual machine

Boot/run VM

Choose auto partition
Choose Keep alle partitions
IP address ETH0: 10.0.0.5 / 255.255.255.0 / 10.0.0.254 / 10.0.0.10
IP address ETH1: 192.168.0.5 / 255.255.255.0
Hostname SAN.xxxx.local
Reboot after install
shutdown

Add hardware
Harddisk (SCSI)
size 500 GB

shutdown virtual machine
# shutdown -h now

6. CONFIGURE SAN

Goto SAN virtual machine
logon to console with root
# PASSWD openfiler [password]
# EXIT

Choose virtuale machine VCENTER
Start firefox within the vcenter wirtual machine (running windows server 2003)
Goto/browse to: https://san:446
username: openfiler
password:

Tab Volumes
Block devices
choose /dev/sdb1
scroll down
CREATE buttom
Volume groups (menu on the right)
Volume group name: SANVOL1
select /dev/sdb1 (499.99 GB)
Add Volume group

Tab Services
ISCSI target: enable

Tab Volumes
iscsi targets
Volume section
ADD volume
volume name: SANVOL1
description: VMSTORE
Space 257841
Filesystem: iscsi
CREATE

iscsi targets
TARGET IQN
...01.COM:OPENFILER:XXXXXXXX
remove the XXXX part and replace it with VMSTORE1
click ADD

Tab LUN mapping
click MAP

Subtab NETWORK ACL
select local network
hostname: san.xxxxx.local
prim. DNS: 10.0.0.10
sec. DNS:
Gateway: 10.0.0.254

Network ACCESS configuration
Name: local
network: 10.0.0.0
netmaks: 255.255.255.0
type: SHARE

Tab Volumes
iscsi targets (menu on the right)
subtab network acl
access: ALLOW
click UPDATE

tab system
network access config
name: esx
network: 192.168.0.0
netmask: 255.255.255.0
type: share

tab volumes
iscsi targets
192.168.0.0
choose ALLOW
Click UPDATE

7. Configure Datacenter with VCENTER

goto vcenter virtual machine
name: center
username: administrator

CREATE A DataCenter
Type name on the left

ADD A HOST
host: esx1 or 10.0.0.1
username: root
YES to security allert
Add License (if you are member of vmware academic add the 1 year license here)

ADD A HOST
host: esx2 or 10.0.0.2
username: root
YES to security allert
Add License (if you are member of vmware academic add the 1 year license here)

Select ESX1
tab Configuration
networking (hardware)

ADD NETWORK WIZARD
[x] vmkernel
[x] vmnic1
[x] use this port group for vmotion
[ ] use this port group for fault

IP address: 192.168.0.1
subnetmask: 255.255.255.0
gateway:

Click FINISH

Networking (Hardware)
ADD NETWORK WIZARD
[x] virtual machine
[x] vmnic2
network label: VMNETWORK
Click FINISH

Storage adapters (Hardware)
Configuration
Storage adapters
select isci:software adapter
Klik properties
tab general
click CONFIGURE
[x] enabled
click OK
tab static discovery
ADD
Isci server: 192.168.0.5
port 32600
target name: iqn.2006-01.com.openfiler:vmstore1
click close
rescan: choose YES

Storage(hardware)
Add storage
DISK/LUN
Click next

select disk
Click next

Datastore name: VMSTORE1
Blocksize: 1 MB (default)
Click FINISH

8. Configure ESX2 within VCENTER

Select ESX2
tab Configuration
networking (hardware)

ADD NETWORK WIZARD
[x] vmkernel
[x] vmnic1
[x] use this port group for vmotion
[ ] use this port group for fault

IP address: 192.168.0.2
subnetmask: 255.255.255.0
gateway:

Click FINISH

Networking (Hardware)
ADD NETWORK WIZARD
[x] virtual machine
[x] vmnic2
network label: VMNETWORK
Click FINISH

Storage adapters (Hardware)
Configuration
Storage adapters
select isci:software adapter
Klik properties
tab general
click CONFIGURE
[x] enabled
click OK
tab static discovery
ADD
Isci server: 192.168.0.5
port 32600
target name: iqn.2006-01.com.openfiler:vmstore1
click close
rescan: choose YES

Storage(hardware)
Add storage
DISK/LUN
Click next

select disk
Click next

Datastore name: VMSTORE1
Blocksize: 1 MB (default)
Click FINISH

Source of the information used for this blog entry:

http://roggyblog.blogspot.com/2009/11/vmware-vsphere-lab-how-to-part-1.html

http://roggyblog.blogspot.com/2009/11/vmware-vsphere-lab-how-to-part-2.html
Part 2 covers:
1)Installing a Second ESX server
2)Installing VCenter Server
3)Installing Openfiler
4)Setup DataCenter
5)Adding ESX Hosts

http://roggyblog.blogspot.com/2009/11/vmware-vsphere-lab-how-to-part-3.html
Part 3 covers:
1)OpenFiler Setup for ESX server
2)iSCSI HBA setup (ESX)
3)Vconverter
4)Vmotion setup
5)Live Vmotion!

Big thanks to Richard Vimeo for his video !

Geen opmerkingen: