You are on page 1of 37

PRINCIPLES OF VIRTUALIZATION

LAB FILE

A.Sai Siddharth

19CS002181

CTIS

Vth SEM
Index
Name of experiment Page
No.
1 Installation and configuration of VMware ESXi server 6.0 or later. 12

2 To deploy a virtual machine of 1 GB RAM for use on ESXi Server. 15


3 Connecting ESXi Host 6.0 using vSphere Windows Client 6.0 and configure- 1. Add port group 20
to vSwitch, add a new vSwitch 2. Create 2 users and 2 VMs (Win7 and Ubuntu) and give full
control over VMs to user1 and user2 respectively.
4 Configure Windows Server 2012 R2 as server to store ISO images which will be used to create 26
VMs in ESXi Host.
5 Explore and create users and roles in ESXi 6.5 or later using vSphere web client. 31
6 Perform following miscellaneous tasks- 36
1. Clone a VM (Show steps with snapshot)

2. Take a snapshot a VM and revert to it (show steps with snapshot)

3. If you want to change n/w configuration in config file. How will you do? (show
steps with snapshot)
4. Taking backup of a VM using vSphere Client to local drive. (show steps with snapshot)

5. Taking backup of a VM so that it can be restored into another ESXi how to setup firewall?
Allow only one IP to access ESXi Host.
7 Deploying the vCenter Server Appliance and Platform Services Controller 45
8 Installing vCenter Server and Platform Services Controller on Windows 49
9 To share files from one VM to another VM using – 1. SMB Server 2. FTP Server. 75

10 Create 2 VMs VM1 and VM2, with client and server OS respectively. Host a web site on server 83
such that on one other than VM1 can access it.
11 Creating and configuring vSphere storage. 86
Experiment No.:1
Name of Experiment: Installation and configuration of VMware ESXi server 6.0or later.

Aim: To install and configure ESXi Server 6.0/6.5/6.7

Algorithm: (Step wise)

- Open VMware Workstation or player.


- Create a new virtual machine with minimum 4 GB RAM, 60 GB Hard Disk, 2 Processorcore.
- Load the ISO of ESXi server 6.5 (6 or more) into CD/DVD drive of virtual machine.

- Now, power on the machine.


- Installer will launch and install ESXi server. Launch/Boot ESXi server.
- Accept the license agreement and continue, select disk and keyboard language andenter a new
password for your root login.
- Do post installation configuration steps

-give static IP Address & enable ESXi shell and SSH from troubleshooting options

- Connect using CLI to test the connectivity with the ESXi.

-Exit

Flowchart:
Theory:

VMware workstation is required for Desktop virtualization where multiple OSs are running on singly physical
machine.

Similarly, for server virtualization where a server hardware is utilized to create multiple virtual servers serving
different purposes. Hence we need VMM other than workstation. This New VMM is ESXi.

In this lab we will learn how to install and configure ESXi 6.0/6.5/6.7.

Output:
Installation is just following instructions of Installer.Post

installation configurations are


Login CLI
Experiment No.:2
Name of Experiment: To deploy a virtual machine of 1 GB RAM for use on ESXiServer.

Aim: To deploy a VM in ESXi.

Algorithm: (Step wise)

- Power on the ESXi server and check it’s IP Address.


- access ESXi server using web browser and enter the credentials of root account andlogin.
- Click on create/register VM.

- Select creation type i.e. Create a new virtual machine and click Next.
- Enter a name of virtual machine and select it’s family and version and click Next.
- Select the datastore for storing virtual machine configuration file and click Next.
- Customize settings of processor, memory and hard disk and click Next. Review yoursetting and click
Finish.
- Next, go to virtual machine tab and select newly created VM and edit it’s settings.
- In CD/DVD drive option, Select datastore ISO file and upload ISO of required virtualmachine. Power on the
virtual machine. It gets installed.

-Exit

Flowchart:
Theory:

In this lab exercise we will learn creating a VM in ESXi Host.

Output:
Experiment No.:3

Name of Experiment: Connecting ESXi Host 6.0 using vSphere Windows Client
6.0 and configure-

1. Add port group to vSwitch, add a new vSwitch


2. Create 2 users and 2 VMs (Win7 and Ubuntu) and give full control overVMs to user1 and user2
respectively.

Aim: To connect using vSphere Client and understand networking configurationin ESXi.

Algorithm: (Step wise)

- Power on the ESXi server.


- log in as root using vSphere Client (if installed). If not then install vSphere Client first.
- Click on Inventory then configuration tab click on Networking. You will seeVswitch0 there with
VMkernel port and port groups.
- In Vswitch0, add new physical adapter vmnic1 by clicking on properties then Add. Youcan add other port
groups by this.
- To add new physical adapter, select ‘Network Adapter ‘option in properties. This willbe ‘Teamed’ Network.
- Now go to Add Networking option, then VMkernel then create a new vsphere standardswitch. Add new
vmnic2 to this. It will be Managed Network.
- Add networking, create new vsphere standard switch and do not add any vmnic to it.This will be Isolated
network.
- add new user, vm and perform RDP

- Click on Users tab, right-click and add new user. Add two user accounts- User1and User2.

- Now , go to virtual machines tab and create new VMs – Windows 7 and Ubuntu.
- Right-click on VM you created and click on Permissions. Assign user1permissions to
access VM1 and user2 to VM2.
- Now login to both the VMs. In Ubuntu, install Remote Desktop Client and enterIP Address and
credentials of Windows Machine.

-Exit
Flowchart:

Theory:

Virtual network is a network of VMs inside a physical host. Depending on whether you do desktop
virtualization using VMware workstation or server virtualization using ESXi , the virtual networking options are
different.

Here we will learn how to configure vSwitch in different networking configurationparticularly in ESXi host.

For this we will use following project plan.


In ESXi host following there networking configurations available-

4. Isolated/ Internal (No physical adapter on physical side of vSwitch)


5. Uplinked (only one physical adapter on physical side of vSwitch)
6. Teamed (more than one physical adapter on physical side of vSwitch)

Output:
Configure vSwitch- Add a port to existing vSwitch0
Configure vSwitch- Add a new vSwitch and make it Isolated
Configure ESXi- Add two users

Configure ESXi- Add tow VMs to vSwitch 1(uplinked)


Configure ESXi- Give permissions to users to their respective VMs
Experiment No.:4
Name of Experiment: Configure Windows Server 2012 R2 as server to store ISOimages which will be used to
create VMs in ESXi Host.

Aim: To use NFS Share in ESXi host.

Algorithm: (Step wise)

- Open Windows Server 2012 R2 in VMware Workstation Pro or Player.


- Install NFS Server role in server 2012 R2.
- Create a directory that you want to share e.g. C:\nfsshare
- Go to NFS sharing tab in properties window of C:\nfsshare
- Click on Manage Sharing then check Share this folder

- Click on “Permissions” and give access permission to selected IPs


- login to ESXi as root
- Go for creating a new datastore
- Choose “Mount NFS store” and provide NFS share detail as requested

- Now, refresh, and new datastore will be available.

-Exit

Flowchart:
Theory:

For sharing ISO images while creating VMs in ESXi the simplest approach is to makeavailable all ISOs into
a NFS Server.

For this lab exercise we need following project plan.

Here is virtual network comprising of 3 VMs inside a single ESXi host. We will learn configuring Win Server
2012 R2 as NFS server to host ISO images which will be utilized by ESXi host.

Output:
Install role NFS Server
Configure as NFS Server
Mounting it in ESXi Host
Experiment No.:5
Name of Experiment: Explore and create users and roles in ESXi 6.5 or laterusing vSphere web client.

Aim: To configure users and roles in ESXi

Algorithm: (Step wise)

- Power on the ESXi server.


- log in as root.
- Determine which options you want either user creation or role creation
- if you decide user creation then

- Access VMware web client, navigate and click on Manage, the Security andUsers.
- Select Users and click on Add user option. Enter username, description andpassword for new
user.
- Click Add. A new user is created.

- Click on Roles tab then Add role.


- Enter name for role and assign it’s privileges.
- Click Add, a new role is created.

- Else
- End If
- Assign role to users

- Right- Click on Manage go to Permissions.

- Select the newly- created user and role and click on Add user.

- Users will be assigned with specified hosts.

-Exit
Flowchart:

Theory:

Role is a set of responsibility that the assigned user can have to ESXi host and VMsinside it. So organization of
access rights can be done effectively using roles.

Users also have to be created. Then must be assigned to a role from the role set.In this lab exercise we

will learn to create user and roles in ESXi host.

Three preconfigured user accounts are available in ESXi:-

1. dcui – direct control user interface


2. vpxuser – when connected from vcenter or vsphere client
3. root- all administrator privileges
Output:
User creation

Role creation

Assigning roles
Experiment No.:6
Name of Experiment: Perform following miscellaneous tasks-
(a) Clone a VM (Show steps with snapshot)

(b) Take a snapshot a VM and revert to it (show steps with snapshot)


(c) If you want to change n/w configuration in config file. How will you do?(show steps with
snapshot)

(d) Taking backup of a VM using vSphere Client to local drive. (Show steps withsnapshot)
(e) Taking backup of a VM so that it can be restored into another ESXi

(f) how to setup firewall? Allow only one IP to access ESXi Host.

Aim: To take backup and snapshot of VMs in ESXi

Algorithm: (Step wise)

- Open ESXi server in VMware Workstation.


- Login as root using web client.

- go to storage tab

- Just copy *.vmx and *.vmdk file from main storage to secondary storage (just tomake a clone)
- To create snapshot, right click on VM, and find option to create snapshot.
- To restore any time to a previous snapshot, just see the snapshot tree and select olderone.
- To edit *.vmx file just use notepad and go the folder of VM and open *.vmx file andopen it in editor.
- find any entry, change it, save the file and verify it in the VM settings in ESXi.
- Go to storage tab, brows *.vmx and *.vmdk file for a VM.
- download these files on local drive into ESXi Host.
- To restore in another datastore, just upload these two files.
- To make backup available to all other ESXi host, do all these actions to a NFS sharewhich is mounted to
all ESXi hosts.
- got to security profile for firewall configuration
- find “Allow IP” option to allow only selected IPs.

-Exit
Flowchart:

Theory:

The terms clone, backup and snapshots sound interchangeable. Still few minor differencesexist. Backup includes
everything *.vmx, *.vmdk and all other configuration files relatedto VM, while snapshot just store the current
state to a new *.avmdk. Clone is somethingclosely related to backup.
For this lab exercise we have following project plan for server virtualization.
Similarly for desktop virtualization, the plan is

Output:
For snapshot creation
For editing *.vmx file
For backup to local drive

For firewall settings

You might also like