risk and return essay
March 10, 2020
political science homework
March 10, 2020

CS316 LAB 1

CS316 LAB 1 VM

Virtual Machines & Wireshark
Overview:
If you have already completed IS211, W5 Lab "Build a Virtual Machine", you may have already installed VirtualBox.
VirtualBox is a free general-purpose full virtualizer for x86 and AMD64 hardware, targeted at server, desktop and embedded use.  You will install VirtualBox and install a preconfigured virtual image.
If you are unfamiliar with the basic concepts and terminology of VMs, read the first two sections in Chapter 1 of the Virtualbox manual.
Summary of tasks:
1.	Download VirtualBox binaries from https://www.virtualbox.org/wiki/Downloads
2.	Install VirtualBox
3.	Add a prebuild Virtual Machine to VirtualBox.
4.	Submit your results and reflection.
What You Will Need
Any Windows 7 computer connected to the Internet with the following requirements met:
?	At least 2GB RAM
?	At least 15GB of free space (Note: virtualization works best with contiguous space so it is a good idea if on Windows to run a defrag program, and make sure you are using NTFS for your file system to handle large files on Windows. )
?	2GHz Processor (a lesser processor will be acceptable but slower)
?	Mozilla Firefox 2.0 or higher, Internet Explorer 7 or higher, Safari 3.0 and higher or Google Chrome 1.0 or higher
?	Adobe Acrobat reader
?	Admin privileges on your box
Install VirtualBox on Windows 7
1.	VirtualBox is a general-purpose full virtualizer for x86 hardware, targeted at server, desktop and embedded use. VirtualBox can be downloaded from https://www.virtualbox.org/wiki/Downloads
 
2.	Save the file to your downloads directory. 
 
3.	Open your download directory and double click on the VirtualBox executable, then follow the steps. 
 
 
 
 
 
 
 
4.	At this point you may receive some Windows security boxes popping up to ask you confirmation to install device software. Click the ?install? button for all of these. 
 
 
5.	At this point VirtualBox has been installed.  The Administration screen will be displayed. (Similar to the following) 
 
Install Wireshark on Windows 7
1.	Step 1 ? Download Wireshark
2.	http://www.wireshark.org/download.html
 
3.	Install
4.	Run as Administrator 
 
5.	I Agree 
 
6.	Next 
 
7.	Next, Choose if Start Menu or Desktop Icon is preferred 
 
8.	Next
9.	By default it installs into the directory c:/ Program Files/ Wireshark 
 
10.	Install WinPcap ? as Wireshark won?t work otherwise Install 
 
11.	Wait for the files to extract?. 
 
12.	Install WinPcap
13.	Wireshark won?t install unless WinPcap is installed.  Watch out for a second install to be launched.  If you?re not looking for it, you could miss it. Next 
 
14.	I Agree
15.	Install 
 
16.	Finish
17.	Launch Wireshark
18.	Start > All Programs > Wireshark Icon 
 
19.	Select your Interface (ie Wired or Wireless)
Install a Linux Image onto VirtualBox 
1.	Next, Download a preconfigured Virtual Image from http://download.oracle.com/otn/other/virtualbox/dd/Oracle_Developer_Day.ova
2.	Import your VM: File > Import Appliance to launch Appliance Import Wizard. Click Choose... to browse to the directory you re-assembled all the files in and select the Oracle Developer Day.ova then click Next> to begin importing the virtual machine. It will prompt you to agree to the appropriate developer licenses while importing. You will see 'Oracle Developer Days (Powered Off)' when it is finished importing.
3.	Finally, Test your VM: Once the import has completed, double-click the OTN Developer Days VM. Click OK to close the Virtualbox Information dialogs. When you get to the Enterprise Linux 5 screen you can now login. (Username and password is oracle.) Allow the process to complete; it is ready when you see a terminal window, which you can close. Once you are finished working in the guest VM you can shut it down via System > Shut Down; this will return the guest VM to the Powered Off state.
Install a Webserver Image onto VirtualBox
1.	Next, Download a preconfigured Virtual Image from http://bitnami.com/stack/lamp/virtual-machine; Select LAMP Stack
2.	Import your VM: File > Import Appliance to launch Appliance Import Wizard. Click Choose... to browse to the directory you re-assembled all the files in and select the *.ova then click Next> to begin importing the virtual machine.
3.	Finally, Test your VM: Once the import has completed, double-click the VM. Click OK to close the Virtualbox Information dialogs. Once you are finished working in the guest VM you can shut it down via System > Shut Down; this will return the guest VM to the Powered Off state.
Install a Ubuntu Image onto VirtualBox
1.	Ensure that you have a copy of the Ubuntu Desktop 12.04 LTS (32-bit) ISO image. (http://www.ubuntu.com/download/desktop)
2.	Follow the instructions in the Virtualbox manual to create your virtual machine. Notes
3.	Use your username followed by "-dt" as the name of your machine, e.g. cgdk2-dt. Type should be Linux and Version should be Ubuntu. 
o	Accept the defaults for memory size, hard drive size, hard drive file type, storage on physical hard drive and file storage location.
o	Start your new VM and browse to find the ISO image for your OS. Click Start.
o	Wait while your OS starts to boot and then choose the Install Ubuntu option.
o	Make progress by continuing to accept the defaults until prompted for your username, computer name and password.  You can choose your username, computer name and password.
o	When installation is complete (may take 10 minutes or more), select Restart now and then log in to your new OS.
o	From the main menu of your VM manager select 'Devices -> Install Guest Additions'. Follow the instructions to complete the installation.
o	Take a snapshot of your VM.
4.	Use ifconfig -a to discover what IP addresses have been allocated to your network interfaces.
5.	Start up Wireshark in your host OS and Firefox in your guest OS. Generate some network traffic from Firefox (search for something in Google). Can you identify the packets being transferred in Wireshark? Try to explain what you see.
Note:
6.	If your current Wireshark configuration will not allow you to capture packets without running it as root, reconfigure it as follows and restart: 
o	sudodpkg-reconfigure wireshark-common # say 'yes' to allow non-root users
o	sudousermod -a -G wiresharkuser add user 'user' to group 'wireshark'
o	newgrpwireshark # should avoid need to log out and back in again
o	wireshark 2>/dev/null & # restart wireshark
o	By default, Ubuntu will use NetworkManager to manage the configuration of the network interfaces on your desktop machine. You'll find it more convenient to manage the network interfaces through the file /etc/network/interfaces. In order to ensure that NetworkManager does not attempt to manage the interfaces that you identify in /etc/network/interfaces, you should modify the file /etc/NetworkManager/NetworkManager.conf, as follows: 
?	Ensure that the dns entry in main is commented out.
?	# dns=dnsmasq
?	Ensure that the managed entry in the ifupdown section is set to false.
?	[ifupdown]
?	managed=false
?	Now an entry in /etc/network/interfaces will determine the network interface configuration. For example,
?	auto eth0
?	iface eth0 inetdhcp
?	or for a static configuration,
?	auto eth0
?	iface eth0 inet static
?	address 192.168.1.100
?	netmask 255.255.255.0
?	gateway 192.168.1.1
?	dns-nameservers 192.168.1.1
7.	There is more information about network configuration in the Ubuntu network configuration documentation.
Capturing the Screen Image
1.	Press the PrntScn key to copy whole screen (Showing the VirtualBox Admin Screen and Wireshark) to the clipboard.  Open Paint and paste in the image.  Save it as a JPEG, with the filename Your Name CS316 ? LAB 1-VM.
Reflection
1.	What are some of the benefits to using a virtualized environment?  What are some of the risks?  Include this in your lab write up.
2.	How was your experience with this install? Did you have any issues?
Turning in your Project
1.	Include these things with your file: 
o	A lab write up answering the questions in the reflection section.
o	The image you captured above, as an attachment
2.	Submit to the dropbox, save a save for yourself.

Buy Answer