3.configuring Virtual Machines - Vsphere - DCV - CTS - Lab - 03

Download as pdf or txt
Download as pdf or txt
You are on page 1of 24

VMware

DATA CENTER VIRTUALIZATION - CORE TECHNICAL


SKILLS

Lab 03: Configuring Virtual Machines


Document Version: 2021-10-15

Copyright © 2021 Network Development Group, Inc.


www.netdevgroup.com

NETLAB+ is a registered trademark of Network Development Group, Inc.

VMware is a registered trademark of VMware, Inc.


Lab 03: Configuring Virtual Machines

Contents
Introduction ................................................................................................................................................ 3
Objectives.................................................................................................................................................... 3
Lab Topology............................................................................................................................................... 4
Lab Settings ................................................................................................................................................. 5
1 Identify Virtual Compatibility.............................................................................................................. 6
2 Identify Virtual Machine Hardware .................................................................................................... 9
3 Take a Virtual Machine Snapshot ..................................................................................................... 11
4 Adjust the Virtual Hardware for a Virtual Machine.......................................................................... 13
5 Rename a Virtual Machine................................................................................................................ 16
6 Reverting Virtual Machine Changes Using Snapshots ...................................................................... 19

10/15/2021 Copyright © 2021 Network Development Group, Inc. www.netdevgroup.com Page 2


Lab 03: Configuring Virtual Machines

Introduction

In this lab, you will become familiar with configuring Virtual Machines.

Objectives

 Identify Virtual Machine Compatibility


 Identify Virtual Machine Hardware
 Take a virtual Machine Snapshot
 Adjust Virtual Machine Memory
 Increase Virtual Disk Size for Virtual Machine
 Add a Virtual Disk to a Virtual Machine
 Rename a Virtual Machine
 Revert Virtual Machine Changes Using Snapshots

10/15/2021 Copyright © 2021 Network Development Group, Inc. www.netdevgroup.com Page 3


Lab 03: Configuring Virtual Machines

Lab Topology

10/15/2021 Copyright © 2021 Network Development Group, Inc. www.netdevgroup.com Page 4


Lab 03: Configuring Virtual Machines

Lab Settings

The information in the table below will be needed to complete the lab. The task sections below
provide details on the use of this information.

Virtual Machine IP Address Account Password

sa-esxi-01 eth0: 172.20.10.51 root Train1ng$

sa-esxi-02 eth0: 172.20.10.52 root Train1ng$

sa-aio eth0: 172.20.10.10 sysadmin vmware123

sa-student eth0: 172.20.10.80 sysadmin vmware123

sa-vcsa eth0: 172.20.10.94 sysadmin@vclass.local vmware123

10/15/2021 Copyright © 2021 Network Development Group, Inc. www.netdevgroup.com Page 5


Lab 03: Configuring Virtual Machines

1 Identify Virtual Compatibility

In this task, you will identify the compatibility of the Linux-01 virtual machine.

1. Launch the sa-student virtual machine to access the graphical login screen.

To launch the console window for a virtual machine, you may access by
either clicking on the machine’s graphic image from the topology page
or by clicking on the machine’s respective tab from the navigation bar.

2. Log in as sysadmin using the password vmware123.

3. Launch the Mozilla Firefox web browser by clicking on the icon shortcut found on the bottom
toolbar.

4. Notice the homepage is automatically configured to load the URL address of the VMware vCenter
Server Appliance (sa-vcsa virtual machine). Click on the LAUNCH VSPHERE CLIENT (HTML5) button
to launch the vSphere Client.

10/15/2021 Copyright © 2021 Network Development Group, Inc. www.netdevgroup.com Page 6


Lab 03: Configuring Virtual Machines

If you cannot successfully load the VMware Getting Started webpage,


then please wait an additional 3-5 minutes and refresh the page to
continue. During this time, the vCenter Server Appliance is still
booting up and requires extra time to initialize.

5. In the Username text field, type sysadmin@vclass.local and in the Password text field, type
vmware123. Click on Login.

You may ignore the “browser-OS combination” warning message


presented on the VMware vCenter Single Sign-On page and continue
moving forward with the lab.

6. In the navigation pane, click on the VMs and Templates icon. Expand the Datacenter object and
select Linux-01.

10/15/2021 Copyright © 2021 Network Development Group, Inc. www.netdevgroup.com Page 7


Lab 03: Configuring Virtual Machines

7. In the Linux-01 main workspace, on the Summary tab, scroll down the VM Hardware pane. In the
VM Hardware pane, identify the compatibility of ESXi 5.5 and later (VM version 10).

Virtual machine compatibility decides the virtual hardware that is


accessible to the virtual machine. That hardware available corresponds
to the physical hardware that the ESXi host resides on.

8. Leave the vSphere Client open and continue to the next task.

10/15/2021 Copyright © 2021 Network Development Group, Inc. www.netdevgroup.com Page 8


Lab 03: Configuring Virtual Machines

2 Identify Virtual Machine Hardware

In this task, you will identify the virtual hardware available to the Linux-01 virtual machine.

1. Ensure that you are still on the VMs and Templates tab. Right-click Linux-01 and select Edit
Settings.

10/15/2021 Copyright © 2021 Network Development Group, Inc. www.netdevgroup.com Page 9


Lab 03: Configuring Virtual Machines

2. In the Edit Settings window, notice the Virtual Hardware available to Linux-01. Click Cancel.

In the Edit Settings window of the Linux-01 virtual machine, you can
also manage the resources available. You can add CPU, Memory,
Increase the Hard Disk size, change the network, attach an iso to the
CD/DVD drive, change the video card settings and manage additional
hardware such as input devices like a keyboard. In a later task, you will
adjust the virtual hardware of Linux-01.

3. Leave the vSphere Client open and continue to the next task.

10/15/2021 Copyright © 2021 Network Development Group, Inc. www.netdevgroup.com Page 10


Lab 03: Configuring Virtual Machines

3 Take a Virtual Machine Snapshot

In this task, you will take a virtual machine snapshot of the Linux-01 virtual machine.

1. Ensure you are on the VMs and Templates tab. Right-click Linux-01 and select Snapshots > Take
Snapshot.

2. In the Take Snapshot window, type Linux-01 before changes. Click OK.

10/15/2021 Copyright © 2021 Network Development Group, Inc. www.netdevgroup.com Page 11


Lab 03: Configuring Virtual Machines

Virtual machine snapshots maintain the current state of a virtual


machine. Snapshots are useful for testing purposes and can be used as
a method to revert back to a point in time before a patch was applied
or testing of applications.

Virtual machine snapshots should not be used for backups. When you
have multiple snapshots of a virtual machine, over time it can cause
the virtual machine to have performance issues and possible loss of
data when utilizing a virtual machine over an extended period.

3. Right-click Linux-01 once again and select Snapshots > Manage Snapshots.

4. Ensure the Linux-01 before changes snapshot is present. Click Done.

5. Leave the vSphere client open and continue to the next task.

10/15/2021 Copyright © 2021 Network Development Group, Inc. www.netdevgroup.com Page 12


Lab 03: Configuring Virtual Machines

4 Adjust the Virtual Hardware for a Virtual Machine

In this task, you will adjust the CPU, Memory allocation and add a virtual hard disk to the Linux-01
virtual machine.

1. Ensure that you are still on the VMs and Templates tab. Right-click Linux-01 and select Edit
Settings.

2. In the Edit Settings window, for the CPU dropdown menu, select 2.

10/15/2021 Copyright © 2021 Network Development Group, Inc. www.netdevgroup.com Page 13


Lab 03: Configuring Virtual Machines

3. In the Edit Settings window, for the Memory, replace 256 with 512.

4. In the Edit Settings window, select Add New Device.

5. In the Add New Device options, select Hard Disk.

10/15/2021 Copyright © 2021 Network Development Group, Inc. www.netdevgroup.com Page 14


Lab 03: Configuring Virtual Machines

6. In the Edit Settings window, on the New Hard Disk option, type 4 and ensure GB is selected. Verify
the settings that you changed are correct. Lastly, click OK.

7. Leave the vSphere client open and continue to the next task.

10/15/2021 Copyright © 2021 Network Development Group, Inc. www.netdevgroup.com Page 15


Lab 03: Configuring Virtual Machines

5 Rename a Virtual Machine

In this task, you will rename the Linux-01 virtual machine and verify the name change.

1. Ensure that you are still on the VMs and Templates tab. Right-click Linux-01 and select Rename.

2. In the Rename window, type Test Linux in the Enter the new name field. Click OK.

10/15/2021 Copyright © 2021 Network Development Group, Inc. www.netdevgroup.com Page 16


Lab 03: Configuring Virtual Machines

3. Right-click Test Linux and select Edit Settings.

10/15/2021 Copyright © 2021 Network Development Group, Inc. www.netdevgroup.com Page 17


Lab 03: Configuring Virtual Machines

4. In the Edit Settings window, select the VM Options tab. Expand the General Options menu. Notice
the VM Name has changed to Test Linux. Notice the path for the VM Config File and VM Working
location does not reflect the new name of Test Linux. Click Cancel.

Renaming the Linux-01 virtual machine to Test Linux only changes


the display name. To reflect the name change of the VM Config File
and VM Working Location, a storage migration should be completed.
The storage migration is known as Storage vMotion. Another method
to change the name is to manually change the names of each file
associated with the Linux-01 virtual machine on the datastore it
resides in. Changing each file name can be time consuming therefore
the best way to maintain consistency with the name change is to do a
storage vMotion. You will perform storage vMotion in a later lab.

5. Leave the vSphere Client open and continue to the next task.

10/15/2021 Copyright © 2021 Network Development Group, Inc. www.netdevgroup.com Page 18


Lab 03: Configuring Virtual Machines

6 Reverting Virtual Machine Changes Using Snapshots

In this task, you will revert the Test Linux virtual machine back to the original snapshot that was taken
in a previous task.

1. Ensure you are on the VMs and Templates tab. Right-click Test Linux and select Snapshots >
Manage Snapshots.

2. In the Manage Snapshots window, select Linux-01 before changes. Click Revert To.

10/15/2021 Copyright © 2021 Network Development Group, Inc. www.netdevgroup.com Page 19


Lab 03: Configuring Virtual Machines

3. In the Revert to Snapshot window, click OK.

4. In the Manage Snapshots window, click Done.

10/15/2021 Copyright © 2021 Network Development Group, Inc. www.netdevgroup.com Page 20


Lab 03: Configuring Virtual Machines

5. Right-click Test Linux and select Edit Settings.

6. In the Edit Settings window, select the VM Options tab. Expand General Options and verify the VM
Name of Test Linux. Remember that when you changed the name of Linux-01 to Test Linux, it kept
the Linux-01 file naming scheme in the datastore files. It only changes the display name in the
vSphere Client.

10/15/2021 Copyright © 2021 Network Development Group, Inc. www.netdevgroup.com Page 21


Lab 03: Configuring Virtual Machines

7. In the Edit Settings window, select the Virtual Hardware tab. Now that you reverted to the Linux-
01 before changes, notice the CPU and Memory have been reverted to the original configuration.
Lastly, notice the hard disk that was added is not present. Click Cancel.

10/15/2021 Copyright © 2021 Network Development Group, Inc. www.netdevgroup.com Page 22


Lab 03: Configuring Virtual Machines

8. Right-click Test Linux and select Snapshots > Manage Snapshots.

9. In the Manage Snapshots window, select Linux-01 before changes and click Delete.

10. In the Delete window, click OK.

10/15/2021 Copyright © 2021 Network Development Group, Inc. www.netdevgroup.com Page 23


Lab 03: Configuring Virtual Machines

11. In the Manage Snapshots window, notice the Linux-01 before changes snapshot has now been
deleted. Click Done.

12. The lab is now complete; you may end your reservation.

10/15/2021 Copyright © 2021 Network Development Group, Inc. www.netdevgroup.com Page 24

You might also like