CNIT 121 Project 1: Using Virtual Machines (15 Points)

What You Need for This Project

Start Your Host Machine

If you are working in S214, select a machine to be your primary machine for the semester. You'll want to keep using the same machine as much as possible, because your virtual machines will be there. Power on your computer. Boot to the operating system named "Win 7-S214". Log on as Student with no password.

Making Your VM (Virtual Machines) Folder

Click Start, Computer. Find the "VMs-S214" drive and double-click it to open it.

In the VMs-S214 window, right-click the empty space and click New, Folder. Name the folder "YOUR NAME VMs" replacing YOUR NAME with your own name.

Extracting the Virtual Machines from the DVDs

There are two DVDs: one labelled K13 for Kali (2013) and one labelled S13 or 14 (Server 2008--both S13 and S14 are the same).

Extracting the Kali Virtual Machine (You Must Unzip TWO Files)

  1. Insert the K13 disk into your DVD drive.

  2. You need 7-Zip on your host machine. If you don't have it, the intaller is on the disk, with the filename 7z457.msi -- you can also download it from 7-zip.org

  3. Make a folder for your Kali virtual machine on the VMs-S214 partition or some other available partition. I recommend making a folder with your name on it, and a subfolder within it named Kali.

    DO NOT PUT VIRTUAL MACHINES ON THE C: DRIVE IN S214. They fill the drive and make the machine unusable, and will be deleted.

  4. Click Start, Computer. Double-click the DVD drive. Right-click the kali-sam-orig.zip file, click 7-Zip, and click "Extract Files...". In the "Extract to:" box, enter the path to the folder you prepared, such as "G:\YOURNAME\Kali". Click OK.

  5. Right-click the kali-sam-orig.7z file, click 7-Zip, and click "Extract Files...". In the "Extract to:" box, enter the path to the folder you prepared, such as "G:\YOURNAME\Kali". Click OK.

Extracting the Windows Server 2008 Virtual Machine

  1. Insert the S13 disk into your DVD drive.

  2. Make a folder for your Windows Server 2008 virtual machine on the VMs-S214 partition or some other available partition. I recommend making a folder with your name on it, and a subfolder within it named Srv2008.

    DO NOT PUT VIRTUAL MACHINES ON THE C: DRIVE IN S214. They fill the drive and make the machine unusable, and will be deleted.

  3. Click Start, Computer. Double-click the DVD drive. Double-click the "Win2008-TargetI" folder Right-click the Windows Server 2008 2.vmwarevm.7z file, click 7-Zip, and click "Extract Files...". In the "Extract to:" box, enter the path to the folder you prepared, such as "G:\YOURNAME\Srv08". Click OK.

  4. Copy the "kali-linux-1.0.2-i386.iso file to the samf folder, such as "G:\YOURNAME\Srv08".

DO NOT PUT VIRTUAL MACHINES ON THE C: DRIVES IN S214!

They fill the drive and make the machines stop working. Virtual machines left on the desktop, Documents folder, or other C: drive locations may be deleted at any time, as needed to keep the machines working.

Starting your Win2008-Target Virtual Machine

In the VMware Player window, click "Open a Virtual Machine". Browse to the VMs-S214 drive amd open the folder with your name on it. Open the "Win2008-Target" folder and double-click the "Windows Server 2008 2.vmx" file.

In the VMware Player window, click the green "Play virtual machine" button.

Troubleshooting

If you see the message shown below, you need to update VMware Player. An updated version of VMware Player is on the S13 disk.

VMware Player will pop up several dialog boxes, asking whether this machine was moved or copied, telling you details about the processor, etc. Just accept the default choice for all those boxes.

To log in, you need to send a Ctrl+Alt+Delete to the virtual machine. On a Windows host, you can usually press Ctrl+Alt+Insert to do that. If that doesn't work, hunt through the VMware menus to send a Ctrl+Alt+Delete.

Log in as Administrator with a password of P@ssw0rd

When the server starts, it opens some windows by default. Close all windows.

You should see the Windows Server 2008 desktop as shown below:

Setting the Win2008-Target VM to Bridged Networking

In the VMware Player window showing your Windows 2008 Server desktop, on the top left, click Player, Manage, "Virtual Machine Settings".

In the "Virtual Machine Settings" box, on the left side, click "Network Adapter".

On the right side, click "Bridged: Connect directly to the physical network", as shown below. Click OK.

Testing Your Win2008-Target Virtual Machine's Internet Connection

On the Win2008-Target virtual machine, open Internet Explorer and go to
http://google.com
If you cannot open Google, which happens very often, try the troubleshooting steps listed below.

Troubleshooting a VMware Network Connection

  • RESTART: Restart the virtual machine
  • USE DHCP: In the virtual machine, click Start. In the Search box, type CONTROL NETCONNECTIONS and press Enter. Right-click "Local Area Connection" and click Properties. Double-click "Internet Protocol Version 4 (TCP/IPv4)" and make sure both the "Obtain an IP address automatically" and "Obtain DNS server address automatically" buttons are selected. Click OK. Click OK.
  • REPAIR THE CONNECTION: In the virtual machine, click Start, Control Panel, Network Connections. Right-click "Local Area Connection" and click Repair.
  • VMWARE BRIDGE PROTOCOL: In the Host machine, click Start and type "NETWORK CONNECTIONS" into the Search box. In the results, click "View network connections". Right-click "Local Area Connection" and click Properties. Make sure the "VMware Bridge Protocol" item is checked. Click OK.
  • MAKE A NEW VIRTUAL MACHINE: When all these actions fail, which is very common, you need to discard the virtual machine and extract a fresh one from the original .7z file.

Finding Your Win2008-Target VM's IP Address

On your Windows Server 2008 desktop, click Start. Click "Command Prompt".

In the Command Prompt screen, type in IPCONFIG and press the Enter key.

Your IP address apears, as shown below.

Saving a Screen Image

Make sure the Windows 2008 Server desktop is visible showing your IP address.

You have now completed the first part of Project 1. To prove it, you need to capture an image of the screen and email it to me.

Note the hand symbol on the image above: that indicates screen images that you must capture and turn in.

Click the taskbar at the bottom of your host Windows 7 desktop, to make the host machine listen to the keyboard, instead of the virtual machine.

Press the PrintScrn key in the upper-right portion of the keyboard. That will copy the whole desktop to the clipboard.

YOU MUST SUBMIT A FULL-SCREEN IMAGE FOR FULL CREDIT!

On the host machine, not the virtual machine, click Start.

Type mspaint into the Search box and press the Enter key.

Click in the untitled - Paint window, and press Ctrl+V on the keyboard. The desktop appears in the Paint window.

In the upper left corner of the "untitled - Paint" window, click the little blue square icon (it looks like a floppy disk, something people used to use long ago--you might never have seen one).

Save the document with the filename "YOUR NAME Proj 1a", replacing "YOUR NAME" with your real name.

Starting the Kali Linux Machine and Adjusting Networking

Start the Attacker Linux machine in VMware Player.

If you don't see a user named "root", click Other....

Log in to Kali with the username root and a password of toor

You should see the Kali Linux desktop as shown below:

Setting the Kali Linux VM to Bridged Networking

In the VMware Player window showing your Kali Linux desktop, on the top left, click Player, Manage, "Virtual Machine Settings".

In the "Virtual Machine Settings" box, on the left side, click "Network Adapter".

On the right side, click "Bridged: Connect directly to the physical network". Click OK.

At the top left of the Kali Linux desktop, find these items:

At the top left of the Kali Linux desktop, click the rectangular black icon to open a Terminal window.

In the Terminal window, type in this command to get a new IP address, and then press the Enter key:

dhclient -v

Finding your Kali Linux VM's IP Address

In the Terminal window, type in this command to find your IP address, and then press the Enter key:
ifconfig
You should see your IP address, as shown below:

Saving a Screen Image

Make sure the Windows 2008 Server desktop is visible showing your IP address.

Click the taskbar at the bottom of your host Windows 7 desktop, to make the host machine listen to the keyboard, instead of the virtual machine.

Press the PrintScrn key in the upper-right portion of the keyboard. That will copy the whole desktop to the clipboard.

YOU MUST SUBMIT A FULL-SCREEN IMAGE FOR FULL CREDIT!

On the host machine, not the virtual machine, click Start.

Type mspaint into the Search box and press the Enter key.

Click in the untitled - Paint window, and press Ctrl+V on the keyboard. The desktop appears in the Paint window.

Save the document with the filename "YOUR NAME Proj 1b", replacing "YOUR NAME" with your real name.

Make sure both machines are in Bridged networking mode!

The most common problem students have is incorrect networking modes. Unless otherwise specified, make sure all virtual machines you use in this class are in Bridged networking mode.

Email the images to me as an attachments to an e-mail message. Send it to: cnit.121@gmail.com with a subject line of "Proj 1 From YOUR NAME", replacing "YOUR NAME" with your real name.

Send a Cc to yourself.

Shutting Down your Virtual Machines

In the VMware Player window, in the upper right corner, click the X. A box pops up, offering three choices, as shown below.

Suspend freezes your VM in its current state. This is usually the best choice.

Power Off is only for emergencies, when the guest operating system has crashed. It's the equivalent of pulling out the power plug on a real computer.

Click Suspend.

Last Modified: 4:35 pm 1-12-2014