VMWARE VSPHERE 7.
0:
INSTALL, CONFIGURE, MANAGE
Lab 04: Configuring and Deploying a Virtual
Machine
Document Version: 2020-11-04
Copyright © 2020 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 04: Configuring and Deploying a Virtual Machine
Contents
Introduction ........................................................................................................................ 3
Objectives............................................................................................................................ 3
Lab Topology....................................................................................................................... 4
Lab Settings ......................................................................................................................... 5
1 Create a Virtual Machine ............................................................................................ 6
2 Install a Guest Operating System.............................................................................. 16
3 Install VMware Tools ................................................................................................ 23
4 Uninstall VMware Tools............................................................................................ 29
11/6/2020 Copyright © 2020 Network Development Group, Inc. www.netdevgroup.com Page 2
Lab 04: Configuring and Deploying a Virtual Machine
Introduction
In this lab, you will create and prepare a virtual machine for use.
Objectives
Create a virtual machine
Install a guest operating system
Install VMware Tools
Uninstall VMware Tools
11/6/2020 Copyright © 2020 Network Development Group, Inc. www.netdevgroup.com Page 3
Lab 04: Configuring and Deploying a Virtual Machine
Lab Topology
11/6/2020 Copyright © 2020 Network Development Group, Inc. www.netdevgroup.com Page 4
Lab 04: Configuring and Deploying a Virtual Machine
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
11/6/2020 Copyright © 2020 Network Development Group, Inc. www.netdevgroup.com Page 5
Lab 04: Configuring and Deploying a Virtual Machine
1 Create a Virtual Machine
In this task, you will create a virtual machine based on specific requirements, such as a
particular operating system or hardware configuration.
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.
11/6/2020 Copyright © 2020 Network Development Group, Inc. www.netdevgroup.com Page 6
Lab 04: Configuring and Deploying a Virtual Machine
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 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.
11/6/2020 Copyright © 2020 Network Development Group, Inc. www.netdevgroup.com Page 7
Lab 04: Configuring and Deploying a Virtual Machine
6. Expand the Datacenter object in the navigator pane. Right-click on sa-esxi-
02.vclass.local and select New Virtual Machine.
7. In the New Virtual Machine window, on the Select a creation type step, select Create
a new virtual machine and click Next.
11/6/2020 Copyright © 2020 Network Development Group, Inc. www.netdevgroup.com Page 8
Lab 04: Configuring and Deploying a Virtual Machine
8. On the Select a name and folder step, enter VM2-2 as the name and ensure that
Datacenter is selected for the location. Click Next.
9. On the Select a compute resource step, ensure that sa-esxi-02.vclass.local is selected
and click Next.
11/6/2020 Copyright © 2020 Network Development Group, Inc. www.netdevgroup.com Page 9
Lab 04: Configuring and Deploying a Virtual Machine
10. On the Select storage step, select Local02-2 to be the local datastore and click Next.
11. On the Select compatibility step, select ESXi 7.0 and later. Click Next.
11/6/2020 Copyright © 2020 Network Development Group, Inc. www.netdevgroup.com Page 10
Lab 04: Configuring and Deploying a Virtual Machine
12. On the Select a guest OS step, select Linux as the Guest OS Family and Ubuntu Linux
(64-bit) as the Guest OS Version. Click Next.
13. On the Customize hardware, Virtual Hardware tab, expand New Hard disk and enter
13 GB for the hard disk size and select Thin Provision for the Disk Provisioning.
11/6/2020 Copyright © 2020 Network Development Group, Inc. www.netdevgroup.com Page 11
Lab 04: Configuring and Deploying a Virtual Machine
14. Locate the New CD/DVD Drive. Select Datastore ISO File from the dropdown menu.
15. In the Select File dialog box, navigate to iSCSI-LUN0 > Class Files underneath the
Datastores column and then proceed by selecting xubuntu-20.04-desktop-
amd64.iso underneath the Contents column. Click OK.
11/6/2020 Copyright © 2020 Network Development Group, Inc. www.netdevgroup.com Page 12
Lab 04: Configuring and Deploying a Virtual Machine
16. Back on the Customize hardware step, expand the New CD/DVD Drive. Check the
checkbox for Connect At Power On. Click Next.
11/6/2020 Copyright © 2020 Network Development Group, Inc. www.netdevgroup.com Page 13
Lab 04: Configuring and Deploying a Virtual Machine
17. On the Ready to complete step, review the information and click Finish.
18. Notice the action event in the Recent Tasks pane. Also, take notice that the VM2-2
now appears underneath sa-esxi-02 in the navigator pane. Select VM2-2 to view
more information.
11/6/2020 Copyright © 2020 Network Development Group, Inc. www.netdevgroup.com Page 14
Lab 04: Configuring and Deploying a Virtual Machine
19. In the main workspace pane, ensure that you are viewing the Summary tab of VM2-
2. On the VM Hardware panel, verify the CPU, Memory, and Hard Disk1 size is
correct and set to Thin Provision. Lastly, verify that VM2-2 has been installed on
Local02-2.
20. Leave the vSphere Client opened to continue with the next task.
11/6/2020 Copyright © 2020 Network Development Group, Inc. www.netdevgroup.com Page 15
Lab 04: Configuring and Deploying a Virtual Machine
2 Install a Guest Operating System
In this task, you will install an operating system.
1. While in the vSphere Web Client, right-click on VM2-2 in the navigator pane and
select Power > Power On.
2. Verify that VM2-2 is selected and click LAUNCH REMOTE CONSOLE.
11/6/2020 Copyright © 2020 Network Development Group, Inc. www.netdevgroup.com Page 16
Lab 04: Configuring and Deploying a Virtual Machine
3. In the console, if a fragment check is in process, you may cancel the request by
pressing the Esc key. You may also let this process complete and proceed to the next
step.
4. Once the Xubuntu Install dialog box appears, click on the Install Xubuntu graphic.
If the Xubuntu installation wizard does not appear immediately, wait
1-2 minutes for the wizard to load.
11/6/2020 Copyright © 2020 Network Development Group, Inc. www.netdevgroup.com Page 17
Lab 04: Configuring and Deploying a Virtual Machine
5. Once the Keyboard layout window appears, select English (US) > English (US). Click
Continue.
For this lab example, we chose to use English(US), but you may choose
to use any keyboard type.
6. On the Updates and other Software window, click Continue.
11/6/2020 Copyright © 2020 Network Development Group, Inc. www.netdevgroup.com Page 18
Lab 04: Configuring and Deploying a Virtual Machine
7. On the Installation type window, leave the defaults selected and click Install Now.
8. On the Write the changes to disks? window, click Continue.
11/6/2020 Copyright © 2020 Network Development Group, Inc. www.netdevgroup.com Page 19
Lab 04: Configuring and Deploying a Virtual Machine
9. In the Where are you? window, verify New York is in the time zone field and click
Continue.
For this lab example, we chose to use the New York time zone, but you
may choose to use any time zone.
10. On the Who are you? window, enter sysadmin for Your Name, enter vm2-
2.vclass.local for Your computer’s name, enter sysadmin for Pick a username,
enter vmware123 in both the Choose a password and Confirm your password fields,
verify Require my password to log in is selected, and lastly, click Continue.
11/6/2020 Copyright © 2020 Network Development Group, Inc. www.netdevgroup.com Page 20
Lab 04: Configuring and Deploying a Virtual Machine
11. The installation process will take five to seven minutes to complete. Once the
Installation Complete window appears, click Restart Now.
12. While rebooting, eject the installation CD from the virtual disk drive by clicking on
the Virtual Machine menu option and selecting Virtual Machine Settings or by
pressing CTRL+D as a shortcut.
11/6/2020 Copyright © 2020 Network Development Group, Inc. www.netdevgroup.com Page 21
Lab 04: Configuring and Deploying a Virtual Machine
13. In the Virtual Machine Settings window, select CD/DVD drive 1 from the Device
pane and select Local Client from the Location dropdown menu, followed by
selecting Use a local physical drive. Click Save.
14. Press Enter, verifying that the installation medium has been disconnected.
15. Leave the VM2-2 console open to continue with the next task.
11/6/2020 Copyright © 2020 Network Development Group, Inc. www.netdevgroup.com Page 22
Lab 04: Configuring and Deploying a Virtual Machine
3 Install VMware Tools
In this task, you will install VMware tools via the command line.
1. On VM2-2, enter vmware123 in the password field and click Log In.
2. On the Information available window, click Close.
3. To begin the official VMware Tools install, click on the Virtual Machine menu option
and click Install VMware Tools.
11/6/2020 Copyright © 2020 Network Development Group, Inc. www.netdevgroup.com Page 23
Lab 04: Configuring and Deploying a Virtual Machine
4. In the Question window, click Install to mount the virtual CD drive.
5. Notice VMware Tools was mounted and ready to install. Minimize the VMware
Tools - File Manager window.
11/6/2020 Copyright © 2020 Network Development Group, Inc. www.netdevgroup.com Page 24
Lab 04: Configuring and Deploying a Virtual Machine
6. While consoled into VM2-2, click on the Whisker icon and type terminal in the
search field. Click on Terminal Emulator to launch it.
7. Elevate your privileges by becoming the superuser of the system. When prompted
for the root password, enter vmware123 and press Enter.
sysadmin@vm2-2:~$ sudo su
8. In the terminal window, create a mounting directory.
root@vm2-2:/home/sysadmin# mkdir /mnt/cdrom
9. Mount the CD to the directory.
root@vm2-2:/home/sysadmin# mount /dev/cdrom /mnt/cdrom
10. View the contents of the mounted CD ROM.
root@vm2-2:/home/sysadmin# ls /mnt/cdrom
11/6/2020 Copyright © 2020 Network Development Group, Inc. www.netdevgroup.com Page 25
Lab 04: Configuring and Deploying a Virtual Machine
11. Copy the tar.gz file to a temporary directory.
root@vm2-2:/home/sysadmin# cp /mnt/cdrom/*.gz /tmp
12. Change your current working directory to /tmp.
root@vm2-2:/home/sysadmin# cd /tmp
13. View the contents of the /tmp directory and verify that the VMwareTools-10.3.21-
14772444.tar.gz file is present.
root@vm2-2:/tmp# ls
14. Use TAR, the package manager, to unpack the VMwareTools-10.3.21-
14772444.tar.gz file.
root@vm2-2:/tmp# tar -zxvf VMwareTools-10.3.21-14772444.tar.gz
11/6/2020 Copyright © 2020 Network Development Group, Inc. www.netdevgroup.com Page 26
Lab 04: Configuring and Deploying a Virtual Machine
15. Navigate to the vmware-tools-distrib directory.
root@vm2-2:/tmp# cd vmware-tools-distrib
16. View the contents of the vmware-tools-distrib and verify vmware-install.pl is listed.
root@vm2-2:/tmp/vmware-tools-distrib# ls
17. Execute the VMware Tools installation script.
root@vm2-2:/tmp/vmware-tools-distrib# ./vmware-install.pl
18. For this step, there will be a series of questions. Follow the instructions below to
properly install the official supported version of VMware Tools.
a. Do you still want to proceed with this installation? Enter Yes and click Enter.
b. In which directory do you want to install the binary files? Click Enter.
c. What is the directory that contains the init directories (rc0.d to rc6.d/)? Click
Enter.
d. What is the directory that contains the init scripts? Click Enter.
e. In which directory do you want to install the daemon files? Click Enter.
f. In which directory do you want to install the library files? Click Enter.
g. The path “.usr/lib/vmware-tools” does not exist currently. This program is going
to create it, including needed parent directories. Is this what you want? Enter
Yes and click Enter.
h. In which directory do you want to install the common agent library files? Click
Enter.
i. In which directory do you want to install the common agent transient files? Click
Enter.
j. In which directory do you want to install the documentation files? Click Enter.
k. The path “usr/share/doc/vmware-tools” does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
Enter Yes and click Enter.
l. Before running VMware Tools for the first time, you need to configure it by
invoking the following command: “usr/share/ vmware-config-tools.pl”. Do you
want this program to invoke the command for you now? Enter Yes and click
Enter.
m. The VMware Host-guest Filesystem allows for shared folders between the host
OS and the guest OS in a Fusion or Workstation virtual environment. Do you wish
to enable this feature? Enter No and click Enter.
11/6/2020 Copyright © 2020 Network Development Group, Inc. www.netdevgroup.com Page 27
Lab 04: Configuring and Deploying a Virtual Machine
n. The vmblock enables dragging or copying files between host and guest in a
Fusion or Workstation virtual environment. Do you wish to enable this feature?
Enter No and click Enter.
o. Do you want to enable Guest Authentication (vgauth)? Enabling vgauth is
needed if you want to enable Common Agent (caf). Enter Yes and click Enter.
p. Do you want to enable Common Agent (caf)? Enter No and click Enter.
19. Notice the message Enjoy, --the VMware team. This verifies the install of VMware
Tools was successful.
20. Change focus back to the vSphere Web Client. On the Summary pane of VM2-2,
verify the officially supported version of VMware Tools is running. (10357)
Notice the version of VMware Tools is 10357 (10.3.21). This version is
an officially supported version of VMware Tools. For lab purposes, if
this pod had internet access, the version of open-vm-tools
11.1.0.19887 and build-16036546 would have been downloaded as
an alternative to the officially supported VMware Tools. Some
operating systems require the alternative if they are not officially
supported by VMware.
11/6/2020 Copyright © 2020 Network Development Group, Inc. www.netdevgroup.com Page 28
Lab 04: Configuring and Deploying a Virtual Machine
4 Uninstall VMware Tools
In this task, you will uninstall VMware tools via the command line.
1. Change focus back to the VM2-2 console. In the terminal, type exit.
root@vm2-2:/tmp/vmware-tools-distrib# exit
2. In the terminal, you will identify the VMware Tool package that is currently installed.
Enter the command below, followed by pressing the Enter key.
sysadmin@vm2-2:~$ vmware-toolbox-cmd -v
10.3.21.249 is the official supported version of VMware Tools installed
in Task 3.
3. Elevate your privileges by becoming the superuser of the system. When prompted
for the root password, enter vmware123 and press Enter.
sysadmin@vm2-2:~$ sudo su
4. Change your current working directory to /usr/bin.
root@vm2-2:/home/sysadmin# cd /usr/bin/
The /usr/bin directory is the location of the VMware Tools uninstaller
script.
11/6/2020 Copyright © 2020 Network Development Group, Inc. www.netdevgroup.com Page 29
Lab 04: Configuring and Deploying a Virtual Machine
5. View the contents of the bin directory by typing the command below and press
Enter. You will need to scroll the /usr/bin directory to find the vmware-uninstall-
tools.pl script.
root@vm2-2:/usr/bin# ls
6. Run the VMware Tools uninstaller script by entering the command below and press
the Enter Key.
root@vm2-2:/usr/bin# ./vmware-uninstall-tools.pl
11/6/2020 Copyright © 2020 Network Development Group, Inc. www.netdevgroup.com Page 30
Lab 04: Configuring and Deploying a Virtual Machine
7. Verify the removal of VMware Tools 10.3.21 was successful.
8. Change focus to the vSphere Web Client. Click on VM2-2 from the navigator pane
and click on the Summary tab in the main workspace. Notice that VMware Tools is
not running and not installed.
9. The lab is now complete; you may end the reservation.
11/6/2020 Copyright © 2020 Network Development Group, Inc. www.netdevgroup.com Page 31