Download as pdf or txt
Download as pdf or txt
You are on page 1of 32

Creating and connecting two VM

• After installing VMware (player or workstation) any version


• Launch VMware workstation
• Click create new virtual machine

• Select the type of configuration you want and click Next: you can use
typical

• Click Next.
• Select your guest operating system (OS), then click Next. You can
install the OS using:
• An installer disc (CD/DVD)
• An installer disc image file (ISO)
• I will install operating system later
• Now choose I will install operating system later Then click on "Next".


• Select a guest operating system you will install in your virtual
machine. Here we select "Windows 7". Then click on "Next".


• Now choose your virtual machine name and location You are
recommended not to locate it in C disk in which your current host
system is installed. Then click on "Next".

• In this step you can change the virtual disk capacity by the up and
down arrow. And select "Store virtual disk as a single file" to store the
virtual disk which is the file whose file extension is ".vmdk" as a single
file. And click next

• Now you can see properties of your virtual machine you can edit or
customize hardware by choosing customize hardware and click finish

• After you click finish the virtual machine is created


• Now you see power on this virtual machine and edit virtual machine
settings

• Choose edit virtual machine settings


• Click on CD/DVD

• Choose use Iso image file and click browse to choose the path where
the Iso image file of you operating system (windows 7) is stored

• Click on network adapter where you can choose the network type to
be used

• Here we will use lan segment so choose lan segment

• And you should add new lan segment so click on lan segments and
click on add (you can change its name) then click close

• Now select the LAN segment from the drop-down menu.


• Click save to finish editing virtual machine settings

• Now power on your virtual machine to start installing

• After finishing installing your operating system on your virtual


machine we need to install VMware tools for your virtual machine
which enhances the performance of the virtual machine's guest
operating system and improves management of the virtual machine
by providing some features like Shared folders between host and
guest file systems, Copying and pasting text, graphics, and files
between the virtual machine and the host or client desktop
• Virtual machine must be powered on to install VMware tools

• From the VMware menu bar select VM then choose install VMware
tools

• Or right click on your virtual machine and choose install VMware tools

• Wait until the wizard of installation appears and install VMware tools
like any program using next, next

• After finishing installation of VMware tools your virtual machine will


restart and ready to be used
Clone VM

• Now you have created one VM and we need 2 VMs so you can
create another one or clone (something like making a copy ) the VM
you have created

• To clone a VM it should be powered off first

• right-click the VM (you have created), and go to Manage > Clone.

• The Clone Virtual Machine Wizard appears. Click Next to continue.


• On the Clone Source window we have two options. The first one will
automatically create a snapshot of this VM in this state and clone it
(choose this option and click next)

• Now you can choose clone type (inked clones or full clones) Linked
clones are just a reference of the original VM. If the original VM gets
corrupted or deleted the cloned VM will not function anymore. The
VM occupies less space on the hard drive (just a few kilos after
cloning), and the cloning process is fast. The Create a full clone
option will create a complete copy of the source VM, and if the source
VM crashes or gets deleted the cloned VM still works. The VM
occupies the exact same disk space as the source VM, and it takes
more time to clone (a few minutes).

• Choose create a full clone and click next


• Give the VM a name and choose a location


• Click Finish to start the cloning process.


• And it will begin cloning and take some time so wait until it completes
cloning

• Now you have 2 virtual machines one for server and one for client.

Assigning static IP address to VMs


• Click Start Menu > Control Panel > Network and Sharing Center.
(For Windows 8 and higher, search for and open Control Panel and
select Network And Internet).

• Or from here

• Choose Change adapter settings on left side

• Right-click on the Local Area Connection icon, then select


Properties.

• Or on the right side choose link local area connection an information


dialog will be displayed, click properties

• In the window that opens, click on the Internet Protocol Version 4


(TCP/IPv4) (you may need to scroll down to find it). Next, click on the
Properties button

• In the window that opens, click the Use the following IP address:
radio button. In the IP address:, Subnet mask: number fields, insert
the numbers that were assigned to you in the first topology (server
10.0.0.1 , client 10.0.0.2)

• Click ok

Installing programs on VMs

• Copy Wireshark from your device and paste it on client VM then


install Wireshark (next, next, ….. Until finish)

• Copy apache server from your device and paste on server VM and
install apache server (next, next, ….. Until finish)

• You can use these options


• Notice that copy and paste files from your device to VMs is a feature
provided by VMware tools so you must make sure you have installed
VMware tools for two VMs

Turn off firewall on server VMs

• Click Start Menu, search for windows firewall and choose it

• click Turn Windows Firewall on or off, on the left side


• Turn off windows firewall for your network (public or home ) if you do
not know your network location turn off windows firewall for public
and home networks

Capture traffic between client and server

• Open client VM, open Wireshark

• After opening Wireshark you must start capturing traffic so you must
choose the interface on which you are connected to the server (local
area connection) you can choose it and double click to begin
capturing or choose it by one click and start capturing with the blue
icon in the upper tool bar

• A new window will appear containing three parts one having the
messages (upper one), one showing content of selected messages
(the central one) and the last one (the lower) containing
representation on the content in decimal and hexadecimal

• Open web browser and Type server IP address in place of URL and
press enter

• Messages will appear on Wireshark you can filter messages to show


only desired messaged for desired protocol


• You can type the protocol like (HTTP, FTP, TCP, …. ) in place of
cflow to show only the messages of this protocol.

TASK

• Download FileZilla server from here ( https://filezilla-


project.org/download.php?type=server ) and install it on server VM

• Download FileZilla client from here ( https://filezilla-


project.org/download.php?platform=win64 ) and install it on client VM

• Open client, FileZilla client and establish FTP connection with the
server

• Open Wireshark on client and capture FTP traffic between your client
and server

You might also like