Vepsun Technologies

VMware 5.5 - Lab Manual

Installation of AD

Basic VM creation

Open vSphere client and login with the Following credentials.

IP Address: 192.168.1.20

Username: student@vepsun.com

Password: Welcome01

After Login, click on the “HP Cluster” and create a new virtual machine.

Now Click File -> New -> Virtual Machine

New Virtual Machine Wizard Pops up. Select Typical and select Next.

Give the VM an name. We recommend you to use the format -.

Select the "VMware lab" datastore.

Select the Guest Operating System as Windows and Version as Server 2012.

Select any Portgroup.

Give the HDD as 40GB and Thin Provision.

Check the summary and Click Finish.

A VM will be created.

Installing Windows Server 2012

Power on the VM and Right click -> Open Console.

VM console will Open. It doesn't have an OS. Now mount the ISO to the VM.

Open the VMware lab Datastore.

Open the ISO folder.

Select the ISO "Server 2012 R2".

You need to reboot the VM to boot from ISO. To do that select VM -> Guest -> Send Ctrl+Alt+Del

The VM will boot from the ISO.

Press Ctrl+Alt+Enter for Full Screen. Click Next.

Click Install.

Select any one Edition with GUI.

Accept the Licence and click Next.

Click Custom

Click Next

Wait for installation to complete.

Basic configuration of Windows Server 2012

After Installation it will Ask for the Administrator Password.

Login by Pressing Ctrl+Alt+Insert

Give the password and Login

To install VMware tools, Select VM -> Guest -> Install/Upgrade VMware Tools.

It shoud automatically Open, incase it doesn't open, Goto My Computer and open the CD.

The VMware tools installation setup opens. Select Typical and click Next.

Click Install.

Wait for the installation to complete.

Press Yes to finish the Installation.

After the reboot, Change the IP of the Server.


To do so, open run and run "ncpa.cpl"

Double Click the Network Adapter. The properties box pops up.

Select IPv4 and give the IP address.

Now, you need to change the Computer name. To do so, Right click the My computer and select Properties.

Click Change settings.

Click Change.

Change the computer name.

Click Ok and it will Promote to Restart the computer. Click Ok and perform the restart.

Configuring AD

Click "Add Roles and Features" in the Server Manager.

Click Next.

Click Next.

Click Next.

Select "Active Directory Domain Services"

Click "Add Features".

Click Next.

Click Next.

Click Next.

Select "Restart the Destination Server Automatically" and click OK.

Click Install.

Wait for the installation to complete.

After the installation, Click Close.

Now, click the notification icon and select "Promote this Server to a Domain Controller".

Select "Add a new Forest" and provide a domain name.

Set the Forest and Domain Functional Level to Windows Server 2008 and give the administrator Password.

Click Next.

Click Next.

Click Next.

Click Next.

Click Install.

After the installation is done, it will automatically promote to restart the system. Click Close.

Initially it will take some time to reboot.


Installing Esxi

Creation of VM

Create a VM in LAB

Click Typical and click Next.

Give a name to VM and click Next.

Select Vmware lab Datastore and click Next.

Select Guest Operating System as Esxi 5.x

Select the same vlan as of the previous VM and click Next.

Give the HDD as 20GB and Thin Provision.

Select "Edit VM settings before completion and click Continue.

Give the RAM as 4GB.

Number of cores as 2.

Mount the ISO in VMware Lab -> ISO -> Esxi 5.5.iso

Install Esxi 5.5

Select VM -> Guest -> Send Ctrl+Alt+Del to boot into the ISO.

Wait untill it Starts.

Its a Keyboard-only Interface. Press Enter.

Press F11

Press Enter.

Press Enter.

Give a Password and Press Enter.

It will display a warning. Just press Enter.

Press F11 to start the installation.

The installation will start.

After the installation is done, it will promote to reboot the server. Just press Enter.

After the restart, you will get the DCUI.

Configure Esxi 5.5

Press F2 and provide the password.

Goto "Configure Management Network".

Goto "IP Configuration".

Give a Static IP Address.

Press Esc and it will promote to restart the Managent Network. Press Y.

Your Esxi is Ready

Repeat the Steps and create two more Esxi Servers.


Installing and Configuring vCenter

Creation of VM

Click File -> New -> Virtual Machine.

Click typical and Click Next.

Give a name and click Next.

Select VMware lab and click Next.

Select the Guest Operating system as "Server 2008".

Select the same VLAN.

Give HDD space as 40GB. Select Thin Provision and Click Next.

Installation of Server 2008

Power on the VM

Right-click the VM and select Open Console.

Select ISO from Datastore.

Select VMware Lab.

Select the ISO folder.

Select the Server 2008 R2.iso

Reboot the VM.

It will load the ISO

Click Next

Click Install Now.

Select any Full installation and click Next.

Accept the Licence and Click Next.

Click Custom.

Click Next.

Installation will start.

After the installation is done, it will ask to change the password.

Give a password and Press Enter.

Click OK.

Initial Configuration of Server 2008

To install VMTools, Click VM -> Guest -> Send Ctrl+Alt+Del.

Select Run setup64.exe

In the wizard, Click Next.

Select Typical.

Select the Install buttom.

Let the installation start.

After it is done, click Finish button.

When it is promoting to reboot, Click OK.

After the reboot, Change the computer name. To do so, Right click My computer and select Properties. Click "Change Settings".

Change computer name and click OK. Click OK.

Reboot the system.

Change the IP.

Verify the settings by ping to that domain name.

Migrating into AD

Open Mycomputer properties and click Change Settings.

Click Change.

Give the domain name and click OK.

Give the administrator username and password.

It displays the Welcome message.

Restart the PC.

vCenter Installation

Click Switch User in Login Screen.

Click Other User.

Give the domain admin credentials.

Now, Connect to ISO on a datastore.

Open VMware Lab datastore.

Open ISO folder.

Mount the vCenter ISO.

Run the autorun.exe

Select Simple install and click Install.

Click Next.

Accept the licence and click Next.

After the validation is done, click Next.

Give a complex password and click Next. Please make a note of the password because the SSO password cannot be recovered.

Click Next.

Click Next.

Click Next.

Click Install.

The installation will start. Please be patient as it takes several minutes.

Accept the SSL certificate.

Give the Licence key or click Next.

Click Next.

Click Next.

Click Next.

Click Next.

Click Install.

After the installation is done, click Finish.

vSphere Client Installation

In the vCenter Wizard, click Install vSphere Client.

Click Ok.

Click Next.

Accept the Licence and click Next.

Click Next.

Click Install.

Creating Datacenter and adding Hosts

Open the vSphere Client and give the administrator account details.

Username: administrator@vsphere.local

Password: Which you gave during the installation of vCenter Server.

After login, click the "Create a datacenter".

Give a name to the Datacenter.

Click "Add a Host".

Give the Login credentials of the Esxi Server.

Accept the SSL certificate.

Click Next.

Click Next.

Click Next.

Click Next.

Click Finish.

Repeat the steps and add the other Esxi hosts.


Networking Lab

NIC Teaming

To add NICs to the Esxi Server, Power off the Esxi and Right Click -> Edit Settings.

Click the Add Button.

Click Ethernet Adapter and click Next.

Select the Adapter type and Portgroup. Click Next.

After Adding, click Finish.

Power On the VM.

Login to the vCenter and select the Host.

Click the configuration Tab and click Network Adapters. The new Adapter will be present.

Click Networking and Select Properties neat the vSwitch0.

The vSwitch properties windows pops up.

Select the Network Adapters Tab and click Add.

Select the new NIC and click Next.

Select as Active or Standby Adapter.

Click Finish.

Click Close.

NIC Teaming is done.

Creating Portgroups

Open the vSwitch0 Properties and click Add.

Click Next.

Give a name to the Portgroup.

Click Finish.

A new portgroup gets created.

Adding vSwitch

Click the Add Networking link.

Select Portgroup and click Next.

Select "Create a vSwitch" and click Next.

Give a name to the Portgroup.

Click Finish.

A new vSwitch will be created but it doesnt have any network adapters. To add a NIC, click Properties near the vSwitch1.

Select the Network Adapters Tab.

Click Add

Select the Network Adapter and click Next.

It will display an warning. Click Yes.

Click Next

Click Finish

Click Close

A new adapter will be added to the vSwitch.

Creating VM in the Portgroup

Click File -> New -> Virtual Machine

Since it is Nested Virtualiztion, select the guest OS as Other(32-bit).

Select the new Portgroup.

Select Thin Provision.

Click Finish.

Now a VM will be created in that portgroup.

Creating Distributed Switch

Add 3NICs to the VM.

Login to vCenter and select Networking. Rightclick the Datacenter and select "New vSphere Distributed Switch"

Select the version and click Next.

Set the number of Uplink ports to 4.

Add the NIC cards from the server.

Click Finish

A distributed switch will be created.

Creating Portgroup in Distributed Switch

Rightclick the Distributed switch and select "New Port Group"

Give a name to the Portgroup.

Click Finish.

The portgroup will be created.

Create a VM in the new Portgroup

You can see the VM in the Distributed switch.


Storage Lab

Creating a VM for Openfiler

Create a new VM.

Give a name to the VM.

Select the Datastore

Select Other 64-bit.

Select the same VLAN.

Give 10GB and Thin Provision.

Click Finish

Connect to ISO on a datstore

Select VMware lab Datatstore.

Select ISO folder.

Mount the Openfiler ISO.

Reboot the VM.

Installing Openfiler

After the VM boots, Press Enter

Click Enter

Select language and click Next.

Press Yes

Click Next

Click Yes

Click Next

For the network configuration, Click Edit

Enter the IP address

Give the DNS and gateway details

Change the timezone

Give the root password

Click Next

Wait for the installation to complete

Click Reboot

The IP and URL will be displayed

Installing Chrome

Mount ISO from Datastore

Inside the ISO folder, mount the Tools.iso

Install Chrome and Flash Player

Configuring Openfiler and Creating LUNs

Power-off Openfiler and click Edit Settings.

Click Add and select HDD. Click Next.

Click Next.

Give the size and select Thin Provision.

Click Next.

Click Finish. Repeat the steps and add some HDDs.

Open chrome and give the IP address of the Openfiler. The IP would be http://:446

Click Advanced and Click Proceed.

Default username is "openfiler" and default password is "password"

Open the System Tab.

Give the Network ID and click Update.

Click Block Devices and click the click the Edit Disk.

Scroll down and click Create. Repeat the steps and format all the HDDs.

Select Volume Groups and give a name and select all the HDDs.

A volume group will be created

Click Create volume

Scroll down, give a name, select size and click create.

Open services tab and enable the "iScsi Target" service.

Start the service.

Click iScsi Targets and click Add

Select LUN mapping and click Map

The volume will be attached to the iScsi Target

Click Network ACL and update as Allow.

Mapping the LUN to Esxi Server

Login to the vCenter and select the Esxi host and click Configuration -> Storage Adapters and click Add.

Select iSCSI Adapter and click OK

Click OK

Select the newly added adapter and click Properties.

Select Dynamic Discovery and click Add

Give the Openfiler IP and click Add

After it is added, click Close.

Press Yes to rescan the storage adapter.

The iSCSI target will be displayed.

Now goto Configuration -> Storage and click Add Storage.

Click Next

Select the LUN and click Next.

Click Next

Click Next

Give a name to the datastore and click Next.

Set the capacity and click Next.

Click Finish

The datastore will be added.

Create VMs in the shared datastore.


Single Sign On

Creating AD Users

Login to the server and select "Active Directory Users and Computers".

Goto Users and Right-click -> New -> User. Give the Username and click Next.

Give the password.

Click Finish.

Adding Identity Source

Open Web Client.

Login with administrator

Click Administration

Click Configuration

Select the Identity Sources tab and click the + button.

Select Active Directory and click OK.

Now AD will be added as an Identity Source.

Assigning Permissions to the User

Login to vCenter and select Permissions and right-click->Add Permission

Click Add

Select the Domain as source

Select the user and select Add.

Give the desired Role.

Now, the user will be added.

Now login with that user.

vCenter will Open.


vMotion

Enable vMotion Traffic

Select Networking and click the properties of the vSwitch0

Select management network and click Edit.

Enable vMotion.

Host Migration

Right-Click a VM and click Migrate

Click Change Host and click Next.

Select the destination Esxi Host.

Click Finish.

The VM will get migrated.

Live Migration

Power on a VM and click Migrate

Click Change Host

Select The Destination Esxi Host.

Select High Priority and click Next

Click Finish

Live Migration will happen.

Storage Migration

Right-click a VM and click Migrate

Click Change Datastore

Select The Destination Datastore.

Select High Priority and click Next

Click Finish

Datastore Migration will happen.


VM Management

Clone

Right-click the VM and click Clone.

Give the new VM name

Select the destination host

Select the destination datastore

Click Next

Click Finish

A clone of the VM will be created.

Template

Right-click the VM and click Template -> Clone to template

Give a name to the Template

Select the destination host

Select the destination datastore

Click Finish.

To view the Template, navigatre to Inventory -> VMs and Templates

The template will be displayed

Right-click the Template and click "Deploy VM from this Template"

Give a name to the VM.

Select the Destination Host.

Select the Destination Datastore.

Click Next.

Click Finish

A VM will be deployed from the Template.

Snapshot

Create some files on the VM

Now Select VM -> Snapshot -> Take Snapshot

Give a name to the Snapshot

Snapshot will be created

Now delete the files or make some changes.

Right-click the same VM and select Snapshot -> Snapshot Manager

Select the snapshot and click Goto

After the process is complete, the VM will be reverted back to the snapshot state.


Cluster

High Availability

Right-click the datacenter and click New Cluster

Turn On HA and click Next.

Click Next

Click Next

Click Next

Click Next

Click Next

Click Finish

Cluster will be created

Drag and drop the Host in the cluster.

Check the VM "Test3". It is running on the Host "192.168.7.30". Now, turn OFF the Esxi Host.

The VM will get migrated and powers ON on another Host.

Distributed Resource Scheduler

To enable DRS, right-click the cluster and click Edit Settings.

Turn ON DRS.

Give Fully Automated. So, if an Host is running out of resources, it will automatically get migrated.

Fault Tolerance

Right Click the VM and select Fault Tolerance -> Turn on Fault Tolerance.

Wait for the Process to complete. Generally it takes several minutes.

Primary and secondary VM will be created. If an Esxi, goes down there wont be any downtime.


Storage Lab

Resource Pool

DRS has to be enabled for resource pool. Select the Icon "Resource Pool"

Give a name and allocate the resources.

A resource pool will be created.

Drag and drop the VM into the Resource Pool.

vApp

Click the "vApp" Icon.

Give a name to the vApp.

Allocate the resources.

Click Finish

Drag and Drop the VM to the vApp.

Edit the vApp.

Open the Start Order Tab

Change the order based on the requirements and click Ok.

Power on the vApp. It will power on the VMs based on the order.