0% found this document useful (0 votes)
38 views22 pages

Vsphere ICM 8 Lab 21

This document provides a comprehensive lab guide for performing vSphere Storage vMotion migrations in VMware vSphere 8.0. It outlines the objectives, lab topology, and detailed steps for migrating virtual machine files and both compute resources and storage between datastores without service interruption. The guide emphasizes the importance of proper configuration and the benefits of using Storage vMotion for maintenance and resource optimization.

Uploaded by

edu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views22 pages

Vsphere ICM 8 Lab 21

This document provides a comprehensive lab guide for performing vSphere Storage vMotion migrations in VMware vSphere 8.0. It outlines the objectives, lab topology, and detailed steps for migrating virtual machine files and both compute resources and storage between datastores without service interruption. The guide emphasizes the importance of proper configuration and the benefits of using Storage vMotion for maintenance and resource optimization.

Uploaded by

edu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 22

VMWARE VSPHERE 8.

0
INSTALL, CONFIGURE, MANAGE

Lab 21: vSphere Storage vMotion Migrations

Document Version: 2023-03-08

Copyright © 2023 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.


85BLab 21: vSphere Storage vMotion Migrations

Contents
Introduction .............................................................................................................................................. 3
Objectives ................................................................................................................................................. 3
Lab Topology ............................................................................................................................................. 4
Lab Settings ............................................................................................................................................... 5
1 Prepare the Lab Environment ........................................................................................................... 6
2 Migrate Virtual Machine Files from One Datastore to Another ...................................................... 14
3 Migrate Both the Compute Resource and Storage of a Virtual Machine ........................................ 18

3/13/2023 Copyright © 2023 Network Development Group, Inc. www.netdevgroup.com Page 2


85BLab 21: vSphere Storage vMotion Migrations

Introduction

In this lab, you will use vSphere Storage vMotion to migrate Virtual Machines (VMs).

vSphere Storage vMotion is a feature in VMware vSphere that allows for the live migration of VMs and
their associated storage from one datastore to another, without interruption of service. This means
that the VMs can continue to run while their storage is being moved to a different location.

The process of Storage vMotion involves creating a copy of the VM files on the destination datastore,
while the original files remain on the source datastore. Once the copy is complete, the VM
configurations are updated to point to the new location of the files, and the original files are deleted.

This feature is useful for several purposes:

• Move VMs to new or different storage systems


• Rebalance storage utilization
• Perform maintenance on a storage system without impacting VMs
• Move VMs to different storage tiers (such as from spinning disk to SSD)

It is important to note that Storage vMotion requires that both the source and destination datastores
are accessible to the host running the VMs, and that both datastores must be managed by the same
vCenter Server.

Objectives

• Migrate VM Files from One Datastore to Another


• Migrate Both the Compute Resource and Storage of a VM

3/13/2023 Copyright © 2023 Network Development Group, Inc. www.netdevgroup.com Page 3


85BLab 21: vSphere Storage vMotion Migrations

Lab Topology

3/13/2023 Copyright © 2023 Network Development Group, Inc. www.netdevgroup.com Page 4


85BLab 21: vSphere Storage vMotion Migrations

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.

Virtual Machine IP Address Account Password

sa-student eth0: 172.20.10.80 sysadmin NDGlabpass123!

sa-vcsa eth0: 172.20.10.94 [email protected] NDGlabpass123!

sa-esxi-01 eth0: 172.20.10.51 root NDGlabpass123!

sa-esxi-02 eth0: 172.20.10.52 root NDGlabpass123!

sa-aio eth0: 172.20.10.10 sysadmin NDGlabpass123!

3/13/2023 Copyright © 2023 Network Development Group, Inc. www.netdevgroup.com Page 5


85BLab 21: vSphere Storage vMotion Migrations

1 Prepare the Lab Environment

In this task, you will prepare the lab environment for vSphere vMotion Storage Migrations. In the
previous lab, you configured vMotion to migrate mainly the compute of a VM between hosts. It is
important to note that proper configuration of virtual networks is essential for ensuring that VMs
function and communicate effectively in a production environment. Additionally, gaining an
understanding of this concept can provide added benefits in terms of practice.

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

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.

3/13/2023 Copyright © 2023 Network Development Group, Inc. www.netdevgroup.com Page 6


85BLab 21: vSphere Storage vMotion Migrations

3. In Firefox, click LAUNCH VSPHERE CLIENT.

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.

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.

3/13/2023 Copyright © 2023 Network Development Group, Inc. www.netdevgroup.com Page 7


85BLab 21: vSphere Storage vMotion Migrations

5. In the Navigator, ensure you are viewing the Hosts and Clusters tab, and select sa-
vcsa.vclass.local. In the right pane, select Datastores and right-click iSCSI-Datastore. In the Actions
menu, click Increase Datastore Capacity….

6. In the Increase Datastore Capacity window on the Select Device step, select LUN 3 and click NEXT.

7. On the Specify Configuration step, leave the defaults, and click NEXT.

3/13/2023 Copyright © 2023 Network Development Group, Inc. www.netdevgroup.com Page 8


85BLab 21: vSphere Storage vMotion Migrations

8. On the Ready to Complete step, review the information, and click FINISH.

9. Repeat steps 5 – 8, and expand the iSCI-Datastore using LUN 4 and Lun 2. For Lun 2, you will only
increase the size by 10 GB for lab purposes.

10. Ensure you are still viewing the Datastores tab. Verify that the iSCSI-Datastore is showing a
capacity of 59 GB and at least 32 GB of free space.

3/13/2023 Copyright © 2023 Network Development Group, Inc. www.netdevgroup.com Page 9


85BLab 21: vSphere Storage vMotion Migrations

11. In the Recent Tasks pane, verify that the iSCSI-Datastore tasks have successfully completed.

12. Ensure you are on the VMs and Templates tab. Expand sa-vcsa.vclass.local and ICM-Datacenter.
Right-click LinuxGUI-01 and select Migrate.

13. In the Migrate window, on the Select the migration type step, click Change compute resource only
and click NEXT.

3/13/2023 Copyright © 2023 Network Development Group, Inc. www.netdevgroup.com Page 10


85BLab 21: vSphere Storage vMotion Migrations

14. On the Select a compute resource step, choose sa-esxi-02.vclass.local and click NEXT.

15. On the Select networks step, ensure that VM Network is selected from the Destination Network
drop-down menu, and click NEXT.

3/13/2023 Copyright © 2023 Network Development Group, Inc. www.netdevgroup.com Page 11


85BLab 21: vSphere Storage vMotion Migrations

16. On the Ready to complete step, review the information, and click FINISH.

17. Monitor the Recent Tasks pane, and wait for the Relocate virtual machine task to finish, which
takes a couple of minutes.

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

3/13/2023 Copyright © 2023 Network Development Group, Inc. www.netdevgroup.com Page 12


85BLab 21: vSphere Storage vMotion Migrations

3/13/2023 Copyright © 2023 Network Development Group, Inc. www.netdevgroup.com Page 13


85BLab 21: vSphere Storage vMotion Migrations

2 Migrate Virtual Machine Files from One Datastore to Another

In this task, you will use vSphere Storage vMotion and migrate the files of a VM from one datastore to
another while the VM is running.

There are several different ways to migrate VM storage, depending on the specific needs of the
environment and the resources available. Some common methods include:

• Hot Migration: as previously mentioned, hot migration in vSphere refers to the live migration of
a VM from one host to another without interruption to the VM’s operation, which is made
possible through the vSphere vMotion feature.
• Cold Migration: This method involves shutting down the VM before migrating the storage.
Once the storage migration is completed, the VM is powered on again. This method can be
useful for environments where live migration is not possible or not desired.
• P2V or V2V Migration: Physical to Virtual (P2V) or Virtual to Virtual (V2V) migration is the
process of migrating a physical machine or a VM from one platform to another. This method
can be useful for migrating VMs from one virtualization platform to another or for migrating
physical machines to VMs.
• Replication: This method involves creating a replica of the VM on another datastore, and then
switching the VM to use the replica. This can be useful for disaster recovery or HA scenarios.
• Backup and Restore: This method involves creating a backup of the VM, and then restoring the
backup to a new datastore. This method can be useful for scenarios where the VM needs to be
moved to a completely different environment.

It is important to consider the specific requirements of the environment and the resources available
when choosing a method for migrating VM storage.

1. In the Navigator, select the VMs and Templates tab. Expand sa-vcsa.vclass.local and ICM-
Datacenter.

3/13/2023 Copyright © 2023 Network Development Group, Inc. www.netdevgroup.com Page 14


85BLab 21: vSphere Storage vMotion Migrations

2. Power on the machine by right-clicking LinuxGUI-01, and selecting Power > Power On. You may
also use the Power On icon highlighted in orange below.

3. In the LinuxGUI-01 Summary tab, locate the Related Objects pane. Verify that LinuxGUI-01 is
located on the VMFS01-01 Datastore.

4. In the Navigator, right-click LinuxGUI-01, and select Migrate.

3/13/2023 Copyright © 2023 Network Development Group, Inc. www.netdevgroup.com Page 15


85BLab 21: vSphere Storage vMotion Migrations

5. In the Migrate window, on the Select a migration type step, select Change storage only. Click NEXT.

6. On the Select storage step, in the drop-down menu for Select virtual disk format, ensure that iSCSI-
Datastore is selected. Select Thin Provision for the virtual disk format, and click NEXT.

7. On the Ready to complete, review the information, and click FINISH.

3/13/2023 Copyright © 2023 Network Development Group, Inc. www.netdevgroup.com Page 16


85BLab 21: vSphere Storage vMotion Migrations

8. Monitor the Recent Tasks pane, and wait for the Relocate virtual machine task to finish, which
takes a couple of minutes.

9. In the Related Objects pane, on the Summary tab, verify that LinuxGUI-01 is on the iSCSI-
Datastore.

10. Leave the vSphere Client open, and continue to the next task.

3/13/2023 Copyright © 2023 Network Development Group, Inc. www.netdevgroup.com Page 17


85BLab 21: vSphere Storage vMotion Migrations

3 Migrate Both the Compute Resource and Storage of a Virtual Machine

In this task, you will perform hot migrations of VMs residing on a shared datastore that is accessible to
both the source and the target ESXi hosts. You will undertake the migration of the compute and
storage resources of a VM from the iSCSI-Datastore.

Migrating both the compute resource and storage of a VM is important for several reasons:

• Performance: Migrating both the compute resource and storage ensures that the VM is running
on the most appropriate host, with the most appropriate storage resources. This can help to
improve the overall performance of the VM.
• Resource utilization: Migrating both the compute resource and storage can help to optimize
resource utilization by ensuring that the VM is running on the most appropriate host, with the
most appropriate storage resources.
• High availability: Migrating both the compute resource and storage can be used in conjunction
with other HA features, such as vSphere HA, to provide improved disaster recovery capabilities.
• Maintenance: Migrating both the compute resource and storage allows for maintenance and
upgrades to be performed on both the compute and storage resources without affecting the
VMs running on them, which can help reduce downtime for maintenance and improve
availability.
• Flexibility: Migrating both the compute resource and storage allows for the movement of VMs
between hosts, clusters, and even datacenters, providing increased flexibility for managing
virtualized environments.

In summary, migrating both the compute resource and storage of a VM is important for improving
performance, resource utilization, HA, maintenance, and flexibility.

1. Migrate the LinuxGUI-01 compute to host sa-esxi-01.vclass.local and the storage to VMFS01-1.

a. Verify that the VMs and Templates tab is selected. Right-click LinuxGUI-01 and select
Migrate.

3/13/2023 Copyright © 2023 Network Development Group, Inc. www.netdevgroup.com Page 18


85BLab 21: vSphere Storage vMotion Migrations

b. In the Migrate window, on the Select the migration type step, click Change both
compute resource and storage and click NEXT.

c. On the Select a compute resource step, expand ICM-Datacenter and choose sa-esxi-
01.vclass.local. Click NEXT.

3/13/2023 Copyright © 2023 Network Development Group, Inc. www.netdevgroup.com Page 19


85BLab 21: vSphere Storage vMotion Migrations

d. On the Select storage step, in the drop-down menu for Select virtual disk format, select
Thin Provision. Ensure that VMFS01-01 is selected, and click NEXT.

e. On the Select networks step, ensure that the VM Network is selected from the
Destination Network drop-down menu, and click NEXT.

3/13/2023 Copyright © 2023 Network Development Group, Inc. www.netdevgroup.com Page 20


85BLab 21: vSphere Storage vMotion Migrations

f. On the Select vMotion priority step, leave Schedule vMotion with high priority
(recommended) selected, and click NEXT.

g. On the Ready to complete step, review the information, and click FINISH.

2. In the Recent Tasks pane, monitor the progress of the VM migration. Confirm that the Relocate VM
task has successfully completed.

3/13/2023 Copyright © 2023 Network Development Group, Inc. www.netdevgroup.com Page 21


85BLab 21: vSphere Storage vMotion Migrations

3. In the LinuxGUI-01 Summary tab, locate the Related Objects pane. Verify that LinuxGUI-01 is
located on the VMFS01-01 Datastore.

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

3/13/2023 Copyright © 2023 Network Development Group, Inc. www.netdevgroup.com Page 22

You might also like