Virtual Machine
Virtual Machine
Virtual Machine
Objectives
Background / Scenario
A virtual machine image file has been created for you to install on your
computer. In this lab, you will download and import this image file into a
desktop virtualization application, such as VirtualBox. When opened in the
player software, this fille will permit you to run a Linux guest computer
that can be accessed directly from your host operating system.
Required Resources
Instructions
In Part 1, you will download and install desktop virtualization software, and
also download an image file that can be used to complete several of the
labs throughout the course. For this lab, the virtual machine is running a
Linux OS.
VMware Player and Oracle VirtualBox are two virtualization programs that
you can download and install to support the image file. In this lab, you will
use VirtualBox.
a. Navigate
to http://www.oracle.com/technetwork/server-storage/virtualbox/download
s/index.html.
b. Choose and download the appropriate installation file for your operating
system.
c. When you have downloaded the VirtualBox installation file, run the
installer and accept the default installation settings.
The image file was created in accordance with the Open Virtualization
Format (OVF). OVF is an open standard for packaging and distributing
virtual appliances. An OVF package has several files placed into one
directory. This directory is then distributed as an OVA package. This
package contains all the OVF files necessary for the deployment of the
virtual machine. The virtual machine used in this lab was exported in
accordance with the OVF standard.
Note: Your browser may ask if you wish to open the file with the
VirtualBox program. Select Save instead to follow the instructions in Part
2.
In Part 2, you will import the virtual machine image into VirtualBox and
start the virtual machine.
b. In the Appliance to import window, specify the location of the .OVA file
and click Next.
d. When the import process is complete, you will see the new Virtual
Machine added to the VirtualBox inventory in the left panel. The virtual
machine is now ready to use.
Step 2: Start the virtual machine and log in.
b. Click the green arrow Start button at the top portion of the VirtualBox
application window. If you get the following error dialog box, click Change
Network Settings and set your Bridged Adapter. Click the dropdown list
next to the Name and choose your network adapter (this will vary for each
computer).
Note: If your network is not configured with DHCP services, click Change
Network Settings and select NAT in the Attached to dropdown box.
The network settings can also be accessed via Settings in the Oracle
VirtualBox Manager or in the virtual machine menu by selecting Devices
> Network > Network Settings. You may need to disable and enable
the network adaptor for the change to take effect.
c. Click OK. A new window will appear and the virtual machine boot
process will start.
d. When the boot process is complete, the virtual machine will ask for a
username and password. Select sec_admin in the drop-down menu.
Note: Notice the keyboard and mouse focus. When you click inside the
virtual machine window, your mouse and keyboard will operate the guest
operating system. Your host operating system will no longer detect
keystrokes or mouse movements. Move your mouse outside of the
VirtualBox window to control your host operating system. If you are unable
to move the mouse out of the VirtualBox window, press the right
CTRL key to return keyboard and mouse focus to the host operating
system.
The virtual machine that you just installed will be used to complete
several of the labs in this course. Familiarize yourself with the icons in the
list below:
Terminal emulator
[sec_admin@Workstation scripts]$
c. You can list the files in the folder by entering ls at the promp.t
[sec_admin@Workstation scripts]$ ls
IP: 192.168.1.11/24
GW: 192.168.1.1
IP Configuration successful.
<output omitted>
Requesting IP information...
IP Configuration successful.
When you are done with the VM, you can save the state of the VM for
future use or shut down the VM.
Click the Save the machine state radio button and click OK. The next
time you start the virtual machine, you will be able to resume working in
the operating system in its current state.
If you want to reboot the VM, you can use the menu options inside the VM
or enter sudo reboot command in a terminal and provide the
password net_secPW when prompted.
Note: You can use the web browser in this virtual machine to research
security issues. By using the virtual machine, you may prevent malware
from being installed on your host computer.
Reflection