You are on page 1of 19

VMWARE VSPHERE 6.

7:
INSTALL, CONFIGURE, MANAGE

Lab 08: Accessing iSCSI Storage


Document Version: 2019-04-17

Copyright © 2019 Network Development Group, Inc.


www.netdevgroup.com

NETLAB Academy Edition, NETLAB Professional Edition, and NETLAB+ are registered trademarks of Network Development Group, Inc.

VMware is a registered trademark of VMware, Inc.


Lab 08: Accessing iSCSI Storage

Contents
Introduction ........................................................................................................................ 3
Objectives............................................................................................................................ 3
Lab Topology ....................................................................................................................... 4
Lab Settings ......................................................................................................................... 5
1 Add a VMkernel Port Group to a Standard Switch ..................................................... 6
2 Configure the iSCSI Software Adapter and Connect It to the Storage ..................... 14

4/17/2019 Copyright © 2019 Network Development Group, Inc. www.netdevgroup.com Page 2


Lab 08: Accessing iSCSI Storage

Introduction

In this lab, you will configure access to an iSCSI datastore.

Objectives

• Add a VMkernel port group to a standard switch


• Configure the iSCSI software adapter and connect it to the storage

4/17/2019 Copyright © 2019 Network Development Group, Inc. www.netdevgroup.com Page 3


Lab 08: Accessing iSCSI Storage

Lab Topology

4/17/2019 Copyright © 2019 Network Development Group, Inc. www.netdevgroup.com Page 4


Lab 08: Accessing iSCSI Storage

Lab Settings

The information in the table below will be needed in order 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

4/17/2019 Copyright © 2019 Network Development Group, Inc. www.netdevgroup.com Page 5


Lab 08: Accessing iSCSI Storage

1 Add a VMkernel Port Group to a Standard Switch

In this task, you will use VMkernel interfaces to provide network connectivity for your
hosts and to handle other types of traffic, such as VMware vSphere vMotion traffic,
storage traffic, and VMware vSphere Fault Tolerance traffic.

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 either clicking on the icon shortcut
found on the bottom toolbar or by navigating to Start Menu > Internet > Firefox
Web Browser.

4/17/2019 Copyright © 2019 Network Development Group, Inc. www.netdevgroup.com Page 6


Lab 08: Accessing iSCSI Storage

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.

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 User name 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. Ensure you are on the Hosts and Clusters tab in the navigator pane.

4/17/2019 Copyright © 2019 Network Development Group, Inc. www.netdevgroup.com Page 7


Lab 08: Accessing iSCSI Storage

7. Expand the Datacenter inventory object, select sa-esxi-02.vclass.local, followed by


clicking on the Configure tab in the main workspace.

8. In the main workspace, in the middle pane, select VMkernel adapters.

9. Click the Add Networking button.

4/17/2019 Copyright © 2019 Network Development Group, Inc. www.netdevgroup.com Page 8


Lab 08: Accessing iSCSI Storage

10. In the Add Networking window, on the Select connection type step, select VMkernel
Network Adapter and click Next.

11. On the Select target device step, choose New standard switch and click Next.

4/17/2019 Copyright © 2019 Network Development Group, Inc. www.netdevgroup.com Page 9


Lab 08: Accessing iSCSI Storage

12. On the Create a Standard Switch step, click the Add adapters (green plus) icon.

13. In the Add Physical Adapters to the Switch window, select vmnic1 and click OK.

4/17/2019 Copyright © 2019 Network Development Group, Inc. www.netdevgroup.com Page 10


Lab 08: Accessing iSCSI Storage

14. Back on the Add Networking window, review the information and click Next.

15. On the Port properties step, type IP Storage in the Network Label text box and click
Next.

4/17/2019 Copyright © 2019 Network Development Group, Inc. www.netdevgroup.com Page 11


Lab 08: Accessing iSCSI Storage

16. On the IPv4 settings step, select Use static IPv4 settings and use the information
below to configure the settings:
a. IPv4 address: 172.20.11.52
b. Subnet mask: 255.255.255.0
c. Check the checkbox for Override default gateway for this adapter
d. Default gateway: 172.20.11.10
e. Click Next.

4/17/2019 Copyright © 2019 Network Development Group, Inc. www.netdevgroup.com Page 12


Lab 08: Accessing iSCSI Storage

17. On the Ready to complete step, review the information and click Finish.

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

4/17/2019 Copyright © 2019 Network Development Group, Inc. www.netdevgroup.com Page 13


Lab 08: Accessing iSCSI Storage

2 Configure the iSCSI Software Adapter and Connect It to the Storage

In this task, you will use the built-in software iSCSI adapter on the ESXi host to directly
connect to a remote iSCSI target on the IP network.

1. While in vSphere Client, while having sa-esxi-02.vclass.local selected, select Storage


Adapters in the main workspace environment.

2. Click on the Add Software Adapter button.

4/17/2019 Copyright © 2019 Network Development Group, Inc. www.netdevgroup.com Page 14


Lab 08: Accessing iSCSI Storage

3. In the Add Software Adapter window, select the radio button for Add software iSCSI
adapter and click OK.

4. In the Storage Adapters list, select the newly created iSCSI software adapter
(vmhba65).

5. In the Adapter Details pane, click the Properties tab.

4/17/2019 Copyright © 2019 Network Development Group, Inc. www.netdevgroup.com Page 15


Lab 08: Accessing iSCSI Storage

6. Verify that the adapter status is Enabled. Click the Edit button next to the General
header.

7. Ensure that the name shown in the iSCSI Name text box matches iqn.1998-
01.com.vmware:sa-esxi-02-xxxxxxxx (the numbers at the end of the iSCSI name
have x’s to represent characters that might change). Click OK.

8. In the Adapter Details pane, click the Network Port Binding tab.

9. Click the Add button.

4/17/2019 Copyright © 2019 Network Development Group, Inc. www.netdevgroup.com Page 16


Lab 08: Accessing iSCSI Storage

10. In the new window, select the IP Storage checkbox and click OK.

11. Click Dynamic Discovery, followed by clicking Add.

4/17/2019 Copyright © 2019 Network Development Group, Inc. www.netdevgroup.com Page 17


Lab 08: Accessing iSCSI Storage

12. In the Add Send Target Server window, type 172.20.11.10 in the iSCSI Server text box
and click OK.

13. Monitor the Recent Tasks pane. Once completed, click the Rescan Storage button.

4/17/2019 Copyright © 2019 Network Development Group, Inc. www.netdevgroup.com Page 18


Lab 08: Accessing iSCSI Storage

14. In the Rescan Storage window, leave the defaults checked and click OK. Wait for the
task to complete.

15. In the Adapter Details pane, click the Devices tab.

16. Verify that one or more LUNs appear. Notice the LUN number, capacity, operational
state, and hardware acceleration information.
17. The lab is now complete; you may end the reservation.

4/17/2019 Copyright © 2019 Network Development Group, Inc. www.netdevgroup.com Page 19

You might also like