Vsphere ICM 8 Lab 15
Vsphere ICM 8 Lab 15
0
INSTALL, CONFIGURE, MANAGE
Contents
Introduction .............................................................................................................................................. 3
Objectives ................................................................................................................................................. 3
Lab Topology ............................................................................................................................................. 4
Lab Settings ............................................................................................................................................... 5
1 Adjust Memory Allocation on a Powered-On Virtual Machine ......................................................... 6
2 Increase the Size of a Virtual Disk ................................................................................................... 15
3 Configure the Guest OS to Recognize the Additional Disk Space .................................................... 22
4 Rename a Virtual Machine in the vCenter Inventory ...................................................................... 27
Introduction
In this lab, you will modify a Virtual Machine’s (VM) memory size, increase its storage size, and rename
it.
Modifying VMs in VMware refers to the process of making changes to the configuration of an existing
VM. This can include changing the amount of memory, CPU, or disk space allocated to the VM, as well
as adding or removing virtual devices such as network adapters or storage controllers.
To modify a VM, you can use the vSphere Client or the VMware Host Client. The process typically
involves opening the VM settings, making the desired changes, and then applying the changes.
Additionally, you can use various VMware Tools like vCenter Converter, VMware vCenter Update
Manager, and VMware vCenter Orchestrator to perform modifications on multiple VMs at once.
In summary, modifying VMs in VMware allows you to adjust the resources allocated to a VM and to
add or remove virtual devices.
Objectives
Lab Topology
Lab Settings
The information in the table below will be needed to complete the lab. The task sections further below
provide details on the use of this information.
In this task, you will add, change, and configure VM memory resources and options to enhance VM
performance.
Adjusting the memory allocation of a VM is done to ensure that the VM has enough memory to
perform its tasks efficiently. Memory is an essential resource for a VM and is used for storing data that
it needs to access quickly, such as the operating system and applications.
There are several reasons why you may need to adjust the memory allocation of a VM:
In summary, adjusting memory allocation of a VM is important for ensuring its performance and
resource allocation, as well as scalability, power savings, and compliance.
To launch the console window for a VM, either click on the machine’s
graphic image from the topology page, or click on the machine’s
respective tab from the Navigator.
2. Launch the Mozilla Firefox web browser by either clicking on the icon found in the bottom toolbar
or by navigating to Start Menu > Internet > Firefox Web Browser.
If the VMware Getting Started webpage does not load, please wait an
additional 3 - 5 minutes, and refresh the page to continue. This is
because the vCenter Server Appliance is still booting up and requires
extra time to initialize.
4. To log in to the vCenter Server Appliance, enter [email protected] as the username and
NDGlabpass123! as the password. Click LOGIN.
5. In the Navigator, select the VMs and Templates tab. Expand sa-vcsa.vclass.local and ICM-
Datacenter. Right-click on the LinuxGUI-01 VM, and navigate to Power > Power On.
9. In the Edit Settings window, expand Memory. Notice that Memory Hot Plug is not checked.
The Memory Hot Plug option in VM memory allows you to add or remove
memory to a VM while it is powered on.
Memory Hot Plug also enables you to add or remove memory to a VM without
having to power off the VM. This can be useful in situations where you need to
quickly adjust the memory allocation of a VM to meet changing workloads or
to resolve performance issues.
When you use Memory Hot Plug to add memory to a VM, the additional
memory is immediately available for use by the VM. When you remove
memory, the VM releases the memory back to the host, and the host can then
use it for other VMs.
It is important to note that not all Guest Operating Systems support Memory
Hot Plug. Additionally, Memory Hot Plug should be used with caution as it can
cause a temporary interruption to the VM during the process of adding or
removing memory, and a reboot of the Guest Operating System may be
required.
In summary, Memory Hot Plug is a feature that allows you to add or remove
memory to a VM while it is powered on. This feature can be useful for quickly
adjusting the memory allocation of a VM to meet changing workloads or
resolve performance issues.
If the Shut Down Guest OS icon is greyed out, please refresh the vSphere
Client.
Confirm that LinuxGUI-01 is shut down before proceeding to the next step.
This will take 1 - 2 minutes to complete.
12. In the Edit Settings window, expand Memory. Activate the Memory Hot Plug setting by checking
the Enable box. Click OK.
15. In the Edit Settings window, expand Memory. Enter 3 to change the amount of memory to 3 GB.
Click OK.
The Memory Hot Plug function is active for LinuxGUI-01. Therefore you can
add memory to LinuxGUI-01 while it is powered on.
16. View the Capacity and Usage pane, and verify that the value for memory allocated has increased to
3 GB.
17. Leave the vSphere Client open, and continue to the next task.
In this task, you will increase the size of the VM virtual disk.
Increasing the size of a virtual disk allows for more data to be stored on the VM. This may be necessary
if the current disk size is approaching capacity and additional storage is needed for the VM to function
properly. As the data grows, it can cause performance issues or even lead to application failures. By
increasing the size of the virtual disk, you provide more space for the VM to store its data and run its
applications.
There are several reasons why you may want to increase the size of a virtual disk:
• Lack of storage space: If the VM is running out of storage space, increasing the size of the
virtual disk can provide more storage for the operating system, applications, and data.
• Future growth: If you anticipate future growth in the amount of data that will be stored on the
VM, increasing the size of the virtual disk can help ensure that there is enough space to
accommodate that growth.
• Improved performance: Increasing the size of a virtual disk can also improve the performance
of the VM. A larger disk can provide faster access times and lower disk contention, resulting in
better overall performance.
• Application requirements: Some applications may have specific storage requirements that
must be met in order for them to function properly. In this case, increasing the size of the
virtual disk may be necessary to meet those requirements. Virtual hardware can be added,
removed, or modified according to the needs of the VM. This allows the VM to have the
resources it needs to run efficiently, while also providing a level of isolation and abstraction
that allows multiple VMs to share the same physical resources.
As data and applications grow, it may become necessary to increase the storage capacity of the virtual
disk to ensure that the operating system and any necessary applications have sufficient space to run
properly.
It is important to note that increasing the size of a virtual disk is not a cure-all solution for managing
storage in a virtual environment. Implementing effective storage management practices, such as
conducting regular backups, archiving data, and removing redundant information, is still crucial even
after increasing the size of a virtual disk. This will help maintain efficient operation of the VMs and
ensure that they have adequate resources to function correctly.
2. In the Edit Settings window, Virtual Hardware tab, notice that the Hard Disk 1 size is 10 GB, but
that it is greyed out.
3. You can also view the same information on the Summary tab, in the VM Hardware pane of the
LinuxGUI-01 pane.
5. In the Navigator, expand sa-vcsa.vclass.local and ICM-Datacenter. Select the Storage tab, and click
the VMFS01-01 datastore. In the VMFS01-01 pane, select the Files tab, Files pane, and select
LinuxGUI-01. Click the Filter icon in the Name column. Enter .vmdk and notice the two .vmdk files.
Close the Filter window.
For this lab, you will delete the snapshot to increase the size of Hard disk 1. In
a later lab, you will work with snapshots.
6. Navigate back to the VMs and Templates tab, ensure that sa-vcsa-vclass.local and ICM-Datacenter
are expanded. Select LinuxGUI-01. In the LinuxGUI-01 pane, click Shut Down Guest OS.
8. In the Recent Tasks pane, confirm that LinuxGUI-01 has successfully shutdown.
Confirm that LinuxGUI-01 is shut down before proceeding to the next step.
This will take 1 - 2 minutes to complete.
10. In the LinuxGUI-01 pane, Snapshots tab, select the BASE snapshot and click DELETE.
12. In Recent Tasks pane, confirm that the BASE snapshot removal on LinuxGUI-01 has completed.
14. In the Edit Settings window, Virtual Hardware tab, Hard disk 1 text box, increase the disk size by 2
GB to 12 GB. Click OK.
15. In the LinuxGUI-01 pane, Summary tab, verify that Hard disk 1 shows the correct disk size of 12 GB
in the VM Hardware pane.
16. Leave LinuxGUI-01 selected in the vSphere Client, and continue to the next task.
In this task, you will configure the Ubuntu Linux Guest OS in the Linux-GUI-01 VM to detect the
additional space that has been added to virtual hard disk 1.
For a Linux Ubuntu Guest OS to recognize and use additional disk space, the operating system must be
made aware of the new disk space by resizing the partition. This can be done using command line
utilities such as fdisk or parted. For this lab, you will use the KDE Partition Manager.
The file system must be resized to use the new disk space. Without configuring the operating system,
the additional disk space will not be recognized or usable by the Guest OS. This means the system is
not able to access that space and it would be wasted, not allowing for the necessary expansion of
storage for the application or data.
If the Launch Web Console will not open a console to the LinuxGUI-01 VM,
please refresh the vSphere Client.
a. In the LinuxGUI-01 VM, click the Applications icon located at the lower left of the
window. Navigate to System Tools > KDE Partition Manager.
b. In the Authentication Required window, enter NDGlabpass123! for the Password. Click OK.
a. In the /dev/dsa – KDE Partition Manager window, select /dev/sda1, and click
Resize/Move.
5. In the Resize/move partition window, enter 11,985.00 MiB for the Size, and click OK.
There are several reasons why a 12 GB disk in Linux may only show 11.7 GB as
usable:
• File system overhead: File systems, such as ext4, use a small amount of
space to store metadata, such as inodes and block pointers. This
overhead can vary depending on the file system, but it typically ranges
from a few megabytes to a few percent of the total disk space.
• Disk partitioning: When a disk is partitioned, some space may be
reserved for partition table entries and boot sectors. This space is not
usable for file storage.
• Disk alignment: Some disk controllers and file systems have specific
alignment requirements, which can result in some space at the end of
the disk being unused.
• Disk fragmentation: Over time, as files are created, deleted, and
modified, disk space can become fragmented, resulting in small
amounts of unusable space scattered throughout the disk.
• Disk compression and deduplication: If disk compression or
deduplication is enabled, the disk space usage may be different than
the physical disk size.
• Reserved space: Some file systems, like ext4, reserve a percentage of
disk space for root user, so that when the disk gets full, there's still
some space left for root user to perform important operations.
It is important to note that the specific reason why the disk may only show
11.7 GB as usable will depend on the specific configuration of the Linux
system.
6. Verify that the File system has been extended to 11.70 GiB on sda2.
8. Ensure you are back on the VMs and Templates tab, and select LinuxGUI-01.
9. Leave the vSphere Client open, and continue to the next task.
In this task, you will rename an existing VM in the vCenter Appliance inventory.
There are several reasons why you might want to rename a VM in vCenter inventory:
• To better reflect the purpose or role of the VM: For example, you might want to change
the name from TestVM to WebServer if the VM is being used as a web server.
• To improve organization and readability: Renaming VMs in vCenter inventory can make it
easier to identify and locate specific VMs in large environments.
• To reflect changes in naming conventions: Renaming a VM can be useful if the
organization's naming conventions change and the existing names no longer conform to the
new standards.
• To reflect ownership changes: Renaming a VM can be useful if the VM changes ownership
and the new owner wants to reflect that in the name.
• To reflect changes in the underlying hardware: Renaming a VM can be useful if the
underlying hardware changes and the new name reflects the new hardware.
• To reflect changes in the guest OS: Renaming a VM can be useful if the guest OS changes
and the new name reflects the new OS.
Overall, renaming a VM in vCenter inventory can be useful in maintaining an organized and informative
inventory, and make it easier to manage and locate VMs.
3. Ensure that Linux-New is selected from the Navigator, and click the Datastores tab. You may
ignore the Alert in the Status column, if it appears.
VMFS01-01 appears in the list. This datastore is where the Linux-New VM files
are located.
a. Navigate back to the VMs and Templates tab. Right-click Linux-New and select Rename.
When you change the name of a VM, you change the name used to identify
the VM in the vSphere Client inventory, not the name of the VM’s folder or
files on the datastore. To change the name of the files, you will need to
migrate the VM storage to another datastore, and then back to the original
datastore for the name to reflect the same name in the vSphere Client
inventory. Note this can be a timely process.