01_Virtualization
-
Upload
james-wolfe -
Category
Documents
-
view
219 -
download
0
Transcript of 01_Virtualization
-
8/12/2019 01_Virtualization
1/5
NET2003: Linux AdministrationLab 01: Virtualization
Lab Objectives:
After this lab students should be able to:
Install VirtualBox
Boot a copy of Damn Small Linux ( DSL )
Confiure multiple net!or"s in VirtualBox
art A: !o"t#are $o#nload and %nstallation
!te& 1: !o"t#are $o#nload
Do!nload the follo!in soft!are: VirtualBox: http:##!!!$%irtualbox$or# &ireshar": http:##!!!$!ireshar"$or# Damn Small Linux '$'$ ( IS* ): http:##!!$damnsmalllinux$or#
!te& 2: %nstall Virtual'ox and (ires)ar* in +our )ost O!
!te& 3: ,reate a Virtual -ac)ine "or +our $!L
Damn Small Linux is a %ery S+ALL %ersion of Linux$ &e !ill be usin it as a client totest our ser%er ser%ices$
*peratin System:
+emory:
,ard Dri%e ( -eep all your hard dri%es in the same location )
./0 12 3 4Virtuali5ation 6 % $7 6 # 7
http://www.virtualbox.org/http://www.wireshark.org/http://www.damnsmalllinux.org/http://www.wireshark.org/http://www.damnsmalllinux.org/http://www.virtualbox.org/ -
8/12/2019 01_Virtualization
2/5
Attach IS* imae as the CD
.o! you should be able to boot the ne! machine In order to !or" properly8 you may need to disable 9+ouse Interation
!te& .: ,reate a second Virtual -ac)ine "or +our $!L
./0 12 3 4Virtuali5ation 6 % $7 6 1 # 7
-
8/12/2019 01_Virtualization
3/5
art ': Virtual'ox Net#or* -odes
0he second part of the lab !ill help you understand the different net!or" modes that VBpro%ides$ ;ou !ill be ma"in chanes in the V+lease notice that command i%e
abo%e is in Linux8 and it sa%es the output into the file DSL"NATtxt8 this command
should !or" in D*S ( !indo!s command prompt ) too$ Be sure that the file is stored inthe appropriate directory$
Start DSL
Capture some IC+> pac"ets *pen a terminal >in the host *S ( assumin your host is @ 1$$$ )
root@Luna:~# $ing %& ' ()*(+,-(--
0he Linux pin8 sends ' bytes pac"ets until you stop it usin C$ &indo!s8 sends four 21bytes pac"ets8 and then stops$ 0he abo%e commands sends Eust 2 pac"ets ( 6c 2 )
Stop DSL
./0 12 3 4Virtuali5ation 6 % $7 6 2 # 7
-
8/12/2019 01_Virtualization
4/5
Disable pac"et capture in your DSL( Damn Small Linux ) V+$
root@Luna:~# VBoxManage modifyvm "DSL" --nictrace1 off
?e%ie! your capture file !ith &ireshar"$
!te& 2: ,on"i/ure $!L to use 'rid/ed as t)e net#or* mode Fsin the settin menu8 chane your net!or"in mode from .A0 to brided$ Brided
your .IC to one of your host .IC cards$ /nable pac"et capture in your DSL V+$
root@Luna:~# VBoxManage modifyvm "DSL" --nictrace1 on --nictracefile1
DSL_Bridged.pcap
Sho! information about your V+ confiuration:
root@Luna:~# VBoxManage showvminfo DSL ! DSL"Bri.ge.txt
Be sure that the file is stored in the appropriate directory$ Start DSL
>in the host *S8 and oole$ca Stop DSL
Disable pac"et capture ?e%ie! your capture file !ith &ireshar"
!te& 3: ,on"i/ure $!L01 and +our $!L02 to use %nternal Net#or*in/ as t)e net#or*mode Fsin the settin menu8 chane your net!or"in mode to Internal .et!or"in8 for both
your DSL6 and DSL61 %ms$ /nable a D,C> ser%er for the Internal net!or"in8 use the follo!in parameters: .et!or" Address: 1$22$17$ # 1 D,C> ser%er: 1$22$17$ Lo!er I>: 1$22$17$7 ,ih I>: 1$22$17$2
/nable pac"et capture for DSL8 use internal$&a$as your capture file$
Start both DSL6 and DSL61 =ind the I> address for your DSL61 V+ =rom DSL6: >in DSL61 >in the host *S
Stop the machines Disable pac"et capture ?e%ie! your capture file !ith &ireshar"
./0 12 3 4Virtuali5ation 6 % $7 6 ' # 7
-
8/12/2019 01_Virtualization
5/5
!te& .: ,on"i/ure $!L01 and $!L02 to use ost Onl+ as t)e net#or* mode Fsin the settin menu8 chane your net!or"in mode to ,ost *nly8 for both the DSLs Chec" the ,ost *nly settins$ =ile G >references G .et!or" G Settins /nable pac"et capture in your DSL68 use hostonl/$&a$as your capture file$
=rom DSL6: >in DSL61
>in the host *S Stop the %ms Disable pac"et capture ?e%ie! your capture file !ith &ireshar"
!te& : &load +our "iles to '' Compress all your directory !ith all the files Submit your files to BB
./0 12 3 4Virtuali5ation 6 % $7 6 7 # 7