vmware vsphere 5.0: install, configure, manage lab ... · lab 8 – working with virtual machines ...

13
VMware vSphere 5.0: Install, Configure, Manage Lab Addendum Lab 8: Working with Virtual Machines Document Version: 2011-11-30 Please note that the sequence of the lab addenda differs slightly from the sequence of the VMware vSphere Install, Configure, Manage 5.0 labs. This is necessary in order to provide compatibility with NETLAB+. The labs should be performed in the order of the lab addenda. Copyright © 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. Cisco, IOS, Cisco IOS, Networking Academy, CCNA, and CCNP are registered trademarks of Cisco Systems, Inc.

Upload: ngohanh

Post on 30-Jul-2018

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: VMware vSphere 5.0: Install, Configure, Manage Lab ... · Lab 8 – Working with Virtual Machines  11/30/2011 Page 3 of 13

VMware vSphere 5.0: Install, Configure, Manage

Lab Addendum

Lab 8: Working with Virtual Machines

Document Version: 2011-11-30

Please note that the sequence of the lab addenda differs slightly from the sequence of the VMware vSphere Install, Configure, Manage 5.0 labs. This is necessary in order to provide compatibility with NETLAB+. The labs should be performed in the order of the lab addenda.

Copyright © 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. Cisco, IOS, Cisco IOS, Networking Academy, CCNA, and CCNP are registered trademarks of Cisco Systems, Inc.

Page 2: VMware vSphere 5.0: Install, Configure, Manage Lab ... · Lab 8 – Working with Virtual Machines  11/30/2011 Page 3 of 13

Lab 8 – Working with Virtual Machines www.netdevgroup.com

11/30/2011 Page 2 of 13

1 Introduction ................................................................................................................ 3

2 Objective: Create, import, and prepare virtual machines for use .............................. 3

3 Pod Topology .............................................................................................................. 4

Task 1 Create a virtual machine ...................................................................................... 5

Task 2 Install a guest operating system in a virtual machine .......................................... 8

Task 3 Identify a virtual machine’s disk format and usage statistics .............................. 8

Task 4 Install VMware Tools for use with a Windows operating system ....................... 9

Task 5 Enable time synchronization between a virtual machine and an ESXi host ...... 11

Task 6 Copy class lab files to your virtual machine ....................................................... 12

Page 3: VMware vSphere 5.0: Install, Configure, Manage Lab ... · Lab 8 – Working with Virtual Machines  11/30/2011 Page 3 of 13

Lab 8 – Working with Virtual Machines www.netdevgroup.com

11/30/2011 Page 3 of 13

1 Introduction

This addendum provides detailed guidance on performing Lab 3, Working with Virtual Machines of the VMware vSphere 5.0 Install, Configure, Manage course, using a NETLAB+ system. 2 Objective: Create, import, and prepare virtual machines for use

In this lab, you will be using the vclient machine to complete your objectives. You will be performing the following tasks:

1. Create a virtual machine. 2. Install a guest operating system in a virtual machine. 3. Identify a virtual machine’s disk format and usage statistics. 4. Install VMware Tools for use with a Windows operating system. 5. Enable time synchronization between a virtual machine and an ESXi host. 6. Copy class lab files to your virtual machine.

Page 4: VMware vSphere 5.0: Install, Configure, Manage Lab ... · Lab 8 – Working with Virtual Machines  11/30/2011 Page 3 of 13

Lab 8 – Working with Virtual Machines www.netdevgroup.com

11/30/2011 Page 4 of 13

3 Pod Topology

Page 5: VMware vSphere 5.0: Install, Configure, Manage Lab ... · Lab 8 – Working with Virtual Machines  11/30/2011 Page 3 of 13

Lab 8 – Working with Virtual Machines www.netdevgroup.com

11/30/2011 Page 5 of 13

Task 1 Create a virtual machine

In this task, you use the VMware vSphere Client on the vclient machine to display information about the shared storage in your lab environment. The shared storage type used will be iSCSI storage.

1. Click on the vclient graphic in the topology to launch the virtual machine. 2. Double-click the vSphere Client icon. 3. At the vSphere Client login screen, set the host name as vcenter-1, then enter

the username root and the password, vmware. Click Login. 4. Using the navigation bar, go to the VMs and Templates inventory view.

5. Expand the inventory. Right-click your LabVMs folder in the inventory and select New Virtual Machine. The Create New Virtual Machine wizard will launch.

a. On the Configuration page, select “Custom”. Click Next to continue. b. On the Name and Location page, set the name to your first name,

followed by -1. For example, my name is John Smith. My virtual machine will be John-1. Click Next.

c. On the Host/Cluster page, expand the view and select your ESXi host. Click Next to continue.

d. On the Datastore page, select your VMFS-1 datastore. Click Next. e. On the Virtual Machine Version page, leave the default “Virtual Machine

Version: 8” selected. Click Next. f. On the Guest Operating System page, select “Windows” version

“Microsoft Windows Server 2003, Standard Edition (32-bit)”. Click Next. g. On the CPUs page, leave the defaults. Click Next.

Page 6: VMware vSphere 5.0: Install, Configure, Manage Lab ... · Lab 8 – Working with Virtual Machines  11/30/2011 Page 3 of 13

Lab 8 – Working with Virtual Machines www.netdevgroup.com

11/30/2011 Page 6 of 13

h. On the Memory page, select MB first and then enter 384 in the space provided. It is important to make certain it is set to 384MB, so please confirm that you have entered the correct value. Click Next.

i. On the Network page, set “How many NICs do you want to connect?” to 1. Under “NIC 1 Network”, select Production. Under “Adapter” leave the default E1000. Leave Connect at Power On selected. Click Next.

j. On the SCSI Controller page, leave the default selection of LSI Logic Parallel. Click Next.

k. On the Select a Disk page, leave default selection of “Create a new virtual disk”. Click Next.

l. On the Create a Disk page, set the “Disk Size” to 2.2 GB. Under “Disk Provisioning” select Thin Provision. Leave the location set to Store with the virtual machine. Click Next.

m. On the Advanced Options page, leave everything to defaults. Click Next. n. On the Ready to Complete page, select the Edit the virtual machine

settings before completion checkbox. Click Continue. The Virtual Machine Properties dialog box appears.

6. In the Hardware list, select “New CD/DVD (adding)”.

Page 7: VMware vSphere 5.0: Install, Configure, Manage Lab ... · Lab 8 – Working with Virtual Machines  11/30/2011 Page 3 of 13

Lab 8 – Working with Virtual Machines www.netdevgroup.com

11/30/2011 Page 7 of 13

7. Select Datastore ISO File.

8. Click Browse and navigate to the following location, nfs_library/Windows/win2ksrv.iso. This is the automated install ISO, created by your NETLAB Administrator.

9. In the Virtual Machine Properties dialog box, select the “Connect at power on” check box.

10. Click Finish to save the changes. 11. Verify that the new virtual machine appears in the inventory.

12. In the inventory, select the virtual machine that you created and click the Summary tab. Review the virtual machine information.

Page 8: VMware vSphere 5.0: Install, Configure, Manage Lab ... · Lab 8 – Working with Virtual Machines  11/30/2011 Page 3 of 13

Lab 8 – Working with Virtual Machines www.netdevgroup.com

11/30/2011 Page 8 of 13

Task 2 Install a guest operating system in a virtual machine

In this task, you will open a console to your virtual machine and perform an unattended installation of a Windows guest operating system into the virtual machine.

1. Right-click the virtual machine that you created in Task 1 and select Power > Power On.

2. Right-click the virtual machine again and select Open Console. 3. After your virtual machine powers on, it begins to install the guest operating

system. The installation should take 10-15 minutes. 4. Complete task 3 while this virtual machine is installing. Leave the virtual

machine’s console open so that you can monitor it periodically. Task 3 Identify a virtual machine’s disk format and usage statistics

In this task, you will identify the virtual machine disk (VMDK) type.

1. In the LabVMs folder, right-click the <your_name>-1 (i.e. John-1) virtual machine in the inventory and select Edit Settings.

2. In the Hardware list, select Hard disk 1. 3. Under “Disk Provisioning”, make note that the VDMK type is listed as Thin

Provision.

4. Click Cancel to close the Virtual Machine’s Properties dialog box.

Page 9: VMware vSphere 5.0: Install, Configure, Manage Lab ... · Lab 8 – Working with Virtual Machines  11/30/2011 Page 3 of 13

Lab 8 – Working with Virtual Machines www.netdevgroup.com

11/30/2011 Page 9 of 13

5. In the LabVMs folder, select the <your_name>-1 virtual machine and click the Summary tab.

6. In the Resources panel, click the Refresh Storage Usage link to update the Provisioned Storage and Used Storage metrics. Note the Provisioned Storage, Not-Shared Storage and the Used Storage values.

Task 4 Install VMware Tools for use with a Windows operating system

In this task, you will install VMware Tools into the guest operating system.

1. Return to the console of the virtual machine where the Windows guest operating system is installing. Check to see whether the installation has finished. If the installation has not finished, wait for it to complete before proceeding.

If the mouse cursor is locked in the virtual machine console, press and hold Ctrl+Alt and move the mouse to release the cursor. You should be able to release Ctrl+Alt and move the mouse accordingly. Due to the Java Client being used and the nature of virtualization, the mouse cursor in the virtual machine may not match the mouse cursor on your computer. Use short motions when using the mouse. If you go outside the Virtual Machine Console window, the mouse cursor will reset to the outside edge of the console window. After VMware Tools is installed, this issue is resolved.

2. In the icon bar of the virtual machine console window, click Connect/disconnect

the CD/DVD devices of the virtual machine.

3. Select CD/DVD Drive 1 > Disconnect from datastore image. Click Yes to confirm that you want to disconnect the device.

Page 10: VMware vSphere 5.0: Install, Configure, Manage Lab ... · Lab 8 – Working with Virtual Machines  11/30/2011 Page 3 of 13

Lab 8 – Working with Virtual Machines www.netdevgroup.com

11/30/2011 Page 10 of 13

4. Install VMware Tools into the Windows guest operating system: a. In the menu bar of the virtual machine console, select VM > Guest > Send

Ctrl+Alt+Del to log into the system. Alternately, you should be able to use Ctrl+Alt+Insert to log into the system.

b. Log in with the username Administrator and no password. Wait until the machine is ready before continuing.

c. In the menu bar of the virtual machine console, select VM > Guest > Install/Upgrade VMware Tools.

d. Read the message that appears and click OK. e. Click anywhere in the virtual machine console window to give mouse

focus to your virtual machine. f. The VMware Tools installation wizard starts. On the welcome page, click

Next. g. On the Setup Type page, leave Typical selected and click Next. h. Click Install to start the installation. Over the span of several seconds,

several windows are displayed. 5. A pop-up may appear informing you that hardware acceleration is not enabled,

click Yes. If the pop-up does not appear, skip to step 6. a. In the Display Properties dialog box, click the Settings tab and click the

Advanced button. You might have to move the VMware Tools Installation wizard to the side so that you can see the Display Properties dialog box.

b. Click the Troubleshoot tab. Drag the Hardware Acceleration bar from the None to Full. Click OK.

c. Click OK to exit the Display Properties dialog box. 6. Click Finish to exit the VMware Tools Installation wizard. 7. When prompted to restart the virtual machine, click Yes. 8. When the machine restarts, log into the virtual machine and verify that the

movement of your pointer in the virtual machine console is smoother. Leave the virtual machine console open.

Page 11: VMware vSphere 5.0: Install, Configure, Manage Lab ... · Lab 8 – Working with Virtual Machines  11/30/2011 Page 3 of 13

Lab 8 – Working with Virtual Machines www.netdevgroup.com

11/30/2011 Page 11 of 13

Task 5 Enable time synchronization between a virtual machine and an ESXi host

In this task, you will configure VMware Tools to synchronize the time between the virtual machine and the ESXi host.

1. In the virtual machine console, notice the time, which is displayed in the notification area.

2. In the notification area, right-click the VMware Tools icon and select Open VMware Tools.

3. Select the “Time synchronization between the virtual machine and the ESX server” check box and click OK.

4. In the vSphere Client, go to Home > Inventory > Hosts and Clusters in your vCenter vSphere Client.

5. Select your ESXi host from the inventory and click the Configuration tab. 6. Click the Time Configuration link, under the Software pane.

7. Compare the time in the virtual machine and the ESXi host time. If they do not match, you might have to adjust your virtual machine’s time zone. You might also need to adjust the clock for daylight saving time.

Page 12: VMware vSphere 5.0: Install, Configure, Manage Lab ... · Lab 8 – Working with Virtual Machines  11/30/2011 Page 3 of 13

Lab 8 – Working with Virtual Machines www.netdevgroup.com

11/30/2011 Page 12 of 13

Task 6 Copy class lab files to your virtual machine

In this task, you will connect to the ClassFiles-vSphere.iso image file and copy its contents to your Windows virtual machine’s desktop. This ISO image contains files needed for future labs.

1. Connect ClassFiles-vSphere.iso to your virtual machine’s CD-ROM drive: a. In the icon bar of the virtual machine console window, click the

“Connect/disconnect the CD/DVD devices of the virtual machine” icon (the right-most icon).

b. Select “CD/DVD Drive 1 > Connect to ISO image on a datastore”. c. Use the drop-down box at the top to select nfs_library. Then double-

click on VMware. Select ClassFiles-vSphere.iso click OK. d. View your virtual machine console. If autorun does not open the CD-

ROM, use Windows Explorer and go to the CD-ROM drive (D:). 2. Copy the files cpubusy.vbs and iometer.exe from the CD-ROM drive (D:) to the

virtual machine’s desktop. You will use these files in a later lab. 3. Extract the files from the executable extpart.exe (to be used in a later lab):

a. On the CD-ROM, double click the file extpart.exe. b. In the WinZip Self-Extractor dialog box, click Unzip. Two files are

unzipped to the path C:\dell\ExtPart. Click OK. c. Click Close to close the WinZip Self-Extractor dialog box.

4. Disconnect from the ClassFiles-vSphere.iso on the CD-ROM drive. a. Right-click the virtual machine in the inventory and select Edit Settings.

Page 13: VMware vSphere 5.0: Install, Configure, Manage Lab ... · Lab 8 – Working with Virtual Machines  11/30/2011 Page 3 of 13

Lab 8 – Working with Virtual Machines www.netdevgroup.com

11/30/2011 Page 13 of 13

b. In the Hardware list, select “CD/DVD Drive 1”. c. Select Client Device and click OK. d. Close the virtual machine console.

If this is the last lab you are completing during this lab reservation, it is important to manually shutdown your esxi-1 virtual machine. Click on the esxi-1 VM in the topology, press F12 to Shutdown/Restart, enter the root password, and press F2 to Shutdown. Wait until vCenter acknowledges the host has been shutdown. The host will gray out and be listed as not responding. You may now end the lab reservation. Note: In a real vSphere deployment, you would not power down your ESXi servers after making configuration changes. In the NETLAB+ environment, all virtual machines are powered off at the end of every reservation to conserve resources. NETLAB+ is unable to gracefully shutdown the ESXi server VMs like the other VMs. Performing a manual shutdown of the ESXi servers will prevent a non-graceful shutdown, which may cause configuration errors during the next lab reservation.

1. Log out of your vSphere Client session (File > Exit.) 2. Close the vclient window.