SlideShare a Scribd company logo
Virtual Machine and
VirtualBox
CIS 6395, Incident Response Technologies
Fall 2016, Dr. Cliff Zou
Acknowledgement
 Univ. Northern Iowa, COP 4610 Intro Operating
Systems
◦ http://www.cs.uni.edu/~diesburg/courses/cop4610_fall10/
 http://www.dedoimedo.com/computers/virtualbox-
network-sharing.html
 Creating a Test Lab Using VirtualBox / NAT
networking (by Peter Sylvester)
◦ https://www.pythian.com/blog/test-lab-using-virtualbox-nat-
networking/
Virtualization Software
 Runs operating systems in fully
emulated environment
◦ Vmware (Vmware Inc.)
◦ VirtualBox (Oracle)
◦ Virtual PC (Microsoft)
◦ Xen (open source project)
3
Virtualization Terminology
 Host OS – running on physical
computer
◦ Only one host OS may run at a time
◦ “Hosts” the other running operating
systems
 Guest OS – running in emulated
environment
◦ Can run multiple guests at the same time
◦ Guest thinks it is running on actual
hardware
 Virtual machine – set of files that 4
Virtual Machine Advantages
 Can distribute a pre-configured OS
◦ Run VM, install/configure it, then export to
another VM image
 Easy to create multiple snapshots
◦ If something goes wrong, roll-back to a
previously saved snapshot
 Portable
◦ Run on any host OS
◦ Store on portable hard drive or laptop
5
Virtual Machine Advantages
 Sandbox
◦ Does not affect anything on host OS
 Networked
◦ Can access over the network
6
Guest OSes ---- Linux
 Kali Linux
◦ Penetration testing preconfigured
◦ A lot of hacking tools preinstalled
◦ https://www.offensive-security.com/kali-linux-vmware-
virtualbox-image-download/
◦ Root Name: root password: toor
 Metasploitable
◦ An intentionally vulnerable Linux VM
◦ Security training, penetration testing
◦ https://sourceforge.net/projects/metasploitable/files/Metasploit
able2/
◦ The default login and password is
Guest OSes ---- Windows
 Windows VMs
◦ Microsoft has made available a number of VMs that
can be downloaded to test Microsoft Edge and
different versions of IE.
◦ Download from: https://dev.windows.com/en-
us/microsoft-edge/tools/vms/
◦ Currently it has Win7, Win8, Win10
◦ Under the webpage, “Choose your OS” means your
host OS
◦ These virtual machines expire after 90 days.
 setting a snapshot when you first install the virtual
machine which you can roll back to later.
Guest OSes ---- Windows
 I have a previously available VM of
WinXP
◦ Will provide you the download link on
webCourse when we need to do
penetration testing on vulnerable WinXP
Install VM Images in
VirtualBox
 For VM images with .ova file type
◦ VirtualBox menu:
 “File””Import Appliance”
 Choose the *.ova image file to import the VM
image
 Just use the default configurations
Importing Win7 VM Image….
 Take a while, so be patient…. ( a few
minutes)
Networking in VirtualBox
 VirtualBox provides the following
networking options:
 We will introduce:
◦ NAT, NAT Network, Bridged Adapter
IP Address Checking Tool
 In Windows, run “ipconfig” under “cmd”
window
 In Linux, run “ifconfig” in terminal
Networking Diagnosis Tool
 Use “Ping” command to check if a host
is reachable
◦ In Windows, run “ping x.x.x.x” under “cmd”
window
◦ In Linux, run “ping x.x.x.x” in terminal
 Use CTRL+C to stop the pinging action
VirtualBox Networking Setup
 Objective:
◦ Let multiple VMs in the same LAN
 This LAN is private, cannot be connected from
outside (for security purpose)
◦ Each VM has Internet access
 So that we can download/install software on
them
 Two types of networks:
◦ (Bridged Adapter) Host machine and VMs are in
the same LAN
◦ (NAT Network) Guest VMs in the LAN, cannot
see host OS
Networking in VirtualBox: NAT
 Default configuration
 Virtualbox generates NAT routers
◦ One NAT router for each VM
 Simplest, no configuration at all
 Issues:
◦ Each VM in its own private LAN, cannot see
each other
VM1 VM2 VM3
NAT routers
VirtualBox
Network Engine
Networking in VirtualBox:
Bridged Adapter
 Each VM requests its IP address just like the host
OS to the default DHCP server
◦ All VMs and host OS are in the same LAN, so they can talk
to each other
◦ Your home WiFi router most likely will support this
DHCP/NAT server (e.g., wifi router)
Host OS
VM1
VM2
Networking in VirtualBox:
Bridged Adapter
 Problem: some DHCP servers do not
provide service to VMs
◦ UCF WiFi does not provide IP to VMs
 Your VM will not be able to obtain a valid IP
◦ Your home WiFi router most likely will support
this
 You can use this networking setup at home, but not in
UCF campus
VirtualBox Networking Option:
NAT Network
 On VirtualBox, click “File”  “Preferences…”
”Network”
 If the “Net Networks” tab is empty, click to
add the default “NatNetwork”
◦ You can change this NAT network name
 This will let VirtualBox
to create a NAT router
for Internal VMs that
join in this NAT router
Networking in VirtualBox:
NAT Network
 VirtualBox setup a NAT router X
 All VMs join this NAT router X
 All VMs can see each other, in the same LAN
◦ Host OS is not in this NAT router’s LAN
 VirtualBox can set up multiple NAT Routers
for multiple isolated VM LANs
VM1 VM2 VM3
NAT Router ‘X’ NAT Router ‘Y’
VirtualBox
Network Engine
Host OS
Networking in VirtualBox:
NAT Network
 Determine local NAT LAN subnet:
◦ Goto virtualBox menu:
Filepreferences…
◦ On the NAT network, select the tool
File Transfer between VM and
Host OS under VirtualBox
1. Use online server for file upload/download
• Upload to an online storage (such as Google Drive,
MS Onedrive)
• Download to the host OS or VM
2. Virtualbox support ‘drag and drop’ file transfer
between host OS and a VM OS
• Run the Kali Linux VM under virtualBox
• Configure virtualBox menu “Devices”  “Drag and
Drop”  enable “Bidirectional”
• In Kali, open “file folder” icon, in the host OS, open a
folder window
• Now you can drag/drop files between host and VM
Shared Folder in Linux VM
3. VirtualBox supports “shared folder” between host
OS and VM
• Run the Kali Linux VM under VirtualBox
• Configure virtualBox menu “Devices”  “shared folders”
 “Shared folder setting…” click the “+” button
• In the Folder Path field, choose “Other…” to add a host
OS folder as the shared folder (e.g., “Download”)
In Linux VM:
mkdir shared
mount -t vboxsf Download ~/shared
Now VM’s “~/shared” would be
identical to the “Download” folder on
host OS
Shared Folder in Windows
VM
• Configure virtualBox menu “Devices”  “shared folders”
 “Shared folder setting…” click the “+” button
• In the Folder Path field, choose “Other…” to add a host
OS folder as the shared folder (e.g., “Download”)
• In Win VM, open folder, goto “network”, select
“VBOXSVR”, then the shared folder will show up as a
network drive

More Related Content

PPTX
Virtual Machines - Virtual Box
Lahiru Danushka
 
PDF
Using oracle vm virtual box as your development platform
OTN Systems Hub
 
PDF
Virtualization workshop - part 1
Davide Pelosi
 
PPTX
Virtualization and Socket Programing
Midhun S
 
PPTX
VirtualBox networking explained
Maarten Smeets
 
PPTX
Exploring the Versatile Features of VirtualBox
Hai Der
 
PPT
Virtualizing Testbeds For Fun And Profit
matthew.maisel
 
PDF
Oracle virtualbox basic to rac attack
Bobby Curtis
 
Virtual Machines - Virtual Box
Lahiru Danushka
 
Using oracle vm virtual box as your development platform
OTN Systems Hub
 
Virtualization workshop - part 1
Davide Pelosi
 
Virtualization and Socket Programing
Midhun S
 
VirtualBox networking explained
Maarten Smeets
 
Exploring the Versatile Features of VirtualBox
Hai Der
 
Virtualizing Testbeds For Fun And Profit
matthew.maisel
 
Oracle virtualbox basic to rac attack
Bobby Curtis
 

Similar to VM.ppt (20)

PDF
How to Create a Windows Server 2008 Virtual Lab Using VirtualBox
Rusty Painter
 
PPTX
Virtual Machine
Mehul Boghra
 
PPTX
Virtualization Concepts: Virtual machines
ankitashah871482
 
PDF
OSSNA18: Xen Beginners Training (exercise script)
The Linux Foundation
 
PPTX
Virtualization using VMWare Workstation
Hitesh Gupta
 
PDF
OpenNebulaConf2015 1.10 OpenNebula Networking: SDNs & NFVs - Ruben S. Montero
OpenNebula Project
 
PPTX
Cloud computing components
PSG College of Technology
 
PDF
Building your own Desktop Cloud Environment
Jnaapti
 
PDF
Aplura virtualization slides
The Linux Foundation
 
ODP
VirtualBox Ubuntu Host Windows Guest
aindilis
 
PPTX
Vagrant
Evans Ye
 
PDF
Devstack lab guide
openstackcisco
 
PDF
Dev stacklabguide
openstackcisco
 
PPTX
Virtualization
Yansi Keim
 
PDF
Rmll Virtualization As Is Tool 20090707 V1.0
guest72e8c1
 
PDF
RMLL / LSM 2009
Franck_Villaume
 
PDF
Running virtual box from the linux command line
Eric Javier Espino Man
 
PPT
Getting Started With Virtualization
Bill Kalarness
 
ODP
Itt3 virtual machines
Morten Nielsen
 
PPTX
Microsoft Server Virtualization and Private Cloud
Md Yousup Faruqu
 
How to Create a Windows Server 2008 Virtual Lab Using VirtualBox
Rusty Painter
 
Virtual Machine
Mehul Boghra
 
Virtualization Concepts: Virtual machines
ankitashah871482
 
OSSNA18: Xen Beginners Training (exercise script)
The Linux Foundation
 
Virtualization using VMWare Workstation
Hitesh Gupta
 
OpenNebulaConf2015 1.10 OpenNebula Networking: SDNs & NFVs - Ruben S. Montero
OpenNebula Project
 
Cloud computing components
PSG College of Technology
 
Building your own Desktop Cloud Environment
Jnaapti
 
Aplura virtualization slides
The Linux Foundation
 
VirtualBox Ubuntu Host Windows Guest
aindilis
 
Vagrant
Evans Ye
 
Devstack lab guide
openstackcisco
 
Dev stacklabguide
openstackcisco
 
Virtualization
Yansi Keim
 
Rmll Virtualization As Is Tool 20090707 V1.0
guest72e8c1
 
RMLL / LSM 2009
Franck_Villaume
 
Running virtual box from the linux command line
Eric Javier Espino Man
 
Getting Started With Virtualization
Bill Kalarness
 
Itt3 virtual machines
Morten Nielsen
 
Microsoft Server Virtualization and Private Cloud
Md Yousup Faruqu
 
Ad

Recently uploaded (20)

PDF
Applitools Platform Pulse: What's New and What's Coming - July 2025
Applitools
 
PDF
Exploring AI Agents in Process Industries
amoreira6
 
PDF
Salesforce Implementation Services Provider.pdf
VALiNTRY360
 
PDF
Bandai Playdia The Book - David Glotz
BluePanther6
 
PPTX
GALILEO CRS SYSTEM | GALILEO TRAVEL SOFTWARE
philipnathen82
 
PPTX
Web Testing.pptx528278vshbuqffqhhqiwnwuq
studylike474
 
PDF
49784907924775488180_LRN2959_Data_Pump_23ai.pdf
Abilash868456
 
PPTX
Odoo Integration Services by Candidroot Solutions
CandidRoot Solutions Private Limited
 
PPTX
Explanation about Structures in C language.pptx
Veeral Rathod
 
PPTX
Presentation about variables and constant.pptx
safalsingh810
 
PDF
New Download FL Studio Crack Full Version [Latest 2025]
imang66g
 
PPTX
Maximizing Revenue with Marketo Measure: A Deep Dive into Multi-Touch Attribu...
bbedford2
 
PDF
Balancing Resource Capacity and Workloads with OnePlan – Avoid Overloading Te...
OnePlan Solutions
 
PDF
Download iTop VPN Free 6.1.0.5882 Crack Full Activated Pre Latest 2025
imang66g
 
PDF
MiniTool Power Data Recovery Crack New Pre Activated Version Latest 2025
imang66g
 
PDF
WatchTraderHub - Watch Dealer software with inventory management and multi-ch...
WatchDealer Pavel
 
PPTX
Presentation about variables and constant.pptx
kr2589474
 
PPT
Activate_Methodology_Summary presentatio
annapureddyn
 
PDF
Adobe Illustrator Crack Full Download (Latest Version 2025) Pre-Activated
imang66g
 
PDF
advancepresentationskillshdhdhhdhdhdhhfhf
jasmenrojas249
 
Applitools Platform Pulse: What's New and What's Coming - July 2025
Applitools
 
Exploring AI Agents in Process Industries
amoreira6
 
Salesforce Implementation Services Provider.pdf
VALiNTRY360
 
Bandai Playdia The Book - David Glotz
BluePanther6
 
GALILEO CRS SYSTEM | GALILEO TRAVEL SOFTWARE
philipnathen82
 
Web Testing.pptx528278vshbuqffqhhqiwnwuq
studylike474
 
49784907924775488180_LRN2959_Data_Pump_23ai.pdf
Abilash868456
 
Odoo Integration Services by Candidroot Solutions
CandidRoot Solutions Private Limited
 
Explanation about Structures in C language.pptx
Veeral Rathod
 
Presentation about variables and constant.pptx
safalsingh810
 
New Download FL Studio Crack Full Version [Latest 2025]
imang66g
 
Maximizing Revenue with Marketo Measure: A Deep Dive into Multi-Touch Attribu...
bbedford2
 
Balancing Resource Capacity and Workloads with OnePlan – Avoid Overloading Te...
OnePlan Solutions
 
Download iTop VPN Free 6.1.0.5882 Crack Full Activated Pre Latest 2025
imang66g
 
MiniTool Power Data Recovery Crack New Pre Activated Version Latest 2025
imang66g
 
WatchTraderHub - Watch Dealer software with inventory management and multi-ch...
WatchDealer Pavel
 
Presentation about variables and constant.pptx
kr2589474
 
Activate_Methodology_Summary presentatio
annapureddyn
 
Adobe Illustrator Crack Full Download (Latest Version 2025) Pre-Activated
imang66g
 
advancepresentationskillshdhdhhdhdhdhhfhf
jasmenrojas249
 
Ad

VM.ppt

  • 1. Virtual Machine and VirtualBox CIS 6395, Incident Response Technologies Fall 2016, Dr. Cliff Zou
  • 2. Acknowledgement  Univ. Northern Iowa, COP 4610 Intro Operating Systems ◦ http://www.cs.uni.edu/~diesburg/courses/cop4610_fall10/  http://www.dedoimedo.com/computers/virtualbox- network-sharing.html  Creating a Test Lab Using VirtualBox / NAT networking (by Peter Sylvester) ◦ https://www.pythian.com/blog/test-lab-using-virtualbox-nat- networking/
  • 3. Virtualization Software  Runs operating systems in fully emulated environment ◦ Vmware (Vmware Inc.) ◦ VirtualBox (Oracle) ◦ Virtual PC (Microsoft) ◦ Xen (open source project) 3
  • 4. Virtualization Terminology  Host OS – running on physical computer ◦ Only one host OS may run at a time ◦ “Hosts” the other running operating systems  Guest OS – running in emulated environment ◦ Can run multiple guests at the same time ◦ Guest thinks it is running on actual hardware  Virtual machine – set of files that 4
  • 5. Virtual Machine Advantages  Can distribute a pre-configured OS ◦ Run VM, install/configure it, then export to another VM image  Easy to create multiple snapshots ◦ If something goes wrong, roll-back to a previously saved snapshot  Portable ◦ Run on any host OS ◦ Store on portable hard drive or laptop 5
  • 6. Virtual Machine Advantages  Sandbox ◦ Does not affect anything on host OS  Networked ◦ Can access over the network 6
  • 7. Guest OSes ---- Linux  Kali Linux ◦ Penetration testing preconfigured ◦ A lot of hacking tools preinstalled ◦ https://www.offensive-security.com/kali-linux-vmware- virtualbox-image-download/ ◦ Root Name: root password: toor  Metasploitable ◦ An intentionally vulnerable Linux VM ◦ Security training, penetration testing ◦ https://sourceforge.net/projects/metasploitable/files/Metasploit able2/ ◦ The default login and password is
  • 8. Guest OSes ---- Windows  Windows VMs ◦ Microsoft has made available a number of VMs that can be downloaded to test Microsoft Edge and different versions of IE. ◦ Download from: https://dev.windows.com/en- us/microsoft-edge/tools/vms/ ◦ Currently it has Win7, Win8, Win10 ◦ Under the webpage, “Choose your OS” means your host OS ◦ These virtual machines expire after 90 days.  setting a snapshot when you first install the virtual machine which you can roll back to later.
  • 9. Guest OSes ---- Windows  I have a previously available VM of WinXP ◦ Will provide you the download link on webCourse when we need to do penetration testing on vulnerable WinXP
  • 10. Install VM Images in VirtualBox  For VM images with .ova file type ◦ VirtualBox menu:  “File””Import Appliance”  Choose the *.ova image file to import the VM image  Just use the default configurations
  • 11. Importing Win7 VM Image….  Take a while, so be patient…. ( a few minutes)
  • 12. Networking in VirtualBox  VirtualBox provides the following networking options:  We will introduce: ◦ NAT, NAT Network, Bridged Adapter
  • 13. IP Address Checking Tool  In Windows, run “ipconfig” under “cmd” window  In Linux, run “ifconfig” in terminal
  • 14. Networking Diagnosis Tool  Use “Ping” command to check if a host is reachable ◦ In Windows, run “ping x.x.x.x” under “cmd” window ◦ In Linux, run “ping x.x.x.x” in terminal  Use CTRL+C to stop the pinging action
  • 15. VirtualBox Networking Setup  Objective: ◦ Let multiple VMs in the same LAN  This LAN is private, cannot be connected from outside (for security purpose) ◦ Each VM has Internet access  So that we can download/install software on them  Two types of networks: ◦ (Bridged Adapter) Host machine and VMs are in the same LAN ◦ (NAT Network) Guest VMs in the LAN, cannot see host OS
  • 16. Networking in VirtualBox: NAT  Default configuration  Virtualbox generates NAT routers ◦ One NAT router for each VM  Simplest, no configuration at all  Issues: ◦ Each VM in its own private LAN, cannot see each other VM1 VM2 VM3 NAT routers VirtualBox Network Engine
  • 17. Networking in VirtualBox: Bridged Adapter  Each VM requests its IP address just like the host OS to the default DHCP server ◦ All VMs and host OS are in the same LAN, so they can talk to each other ◦ Your home WiFi router most likely will support this DHCP/NAT server (e.g., wifi router) Host OS VM1 VM2
  • 18. Networking in VirtualBox: Bridged Adapter  Problem: some DHCP servers do not provide service to VMs ◦ UCF WiFi does not provide IP to VMs  Your VM will not be able to obtain a valid IP ◦ Your home WiFi router most likely will support this  You can use this networking setup at home, but not in UCF campus
  • 19. VirtualBox Networking Option: NAT Network  On VirtualBox, click “File”  “Preferences…” ”Network”  If the “Net Networks” tab is empty, click to add the default “NatNetwork” ◦ You can change this NAT network name  This will let VirtualBox to create a NAT router for Internal VMs that join in this NAT router
  • 20. Networking in VirtualBox: NAT Network  VirtualBox setup a NAT router X  All VMs join this NAT router X  All VMs can see each other, in the same LAN ◦ Host OS is not in this NAT router’s LAN  VirtualBox can set up multiple NAT Routers for multiple isolated VM LANs VM1 VM2 VM3 NAT Router ‘X’ NAT Router ‘Y’ VirtualBox Network Engine Host OS
  • 21. Networking in VirtualBox: NAT Network  Determine local NAT LAN subnet: ◦ Goto virtualBox menu: Filepreferences… ◦ On the NAT network, select the tool
  • 22. File Transfer between VM and Host OS under VirtualBox 1. Use online server for file upload/download • Upload to an online storage (such as Google Drive, MS Onedrive) • Download to the host OS or VM 2. Virtualbox support ‘drag and drop’ file transfer between host OS and a VM OS • Run the Kali Linux VM under virtualBox • Configure virtualBox menu “Devices”  “Drag and Drop”  enable “Bidirectional” • In Kali, open “file folder” icon, in the host OS, open a folder window • Now you can drag/drop files between host and VM
  • 23. Shared Folder in Linux VM 3. VirtualBox supports “shared folder” between host OS and VM • Run the Kali Linux VM under VirtualBox • Configure virtualBox menu “Devices”  “shared folders”  “Shared folder setting…” click the “+” button • In the Folder Path field, choose “Other…” to add a host OS folder as the shared folder (e.g., “Download”) In Linux VM: mkdir shared mount -t vboxsf Download ~/shared Now VM’s “~/shared” would be identical to the “Download” folder on host OS
  • 24. Shared Folder in Windows VM • Configure virtualBox menu “Devices”  “shared folders”  “Shared folder setting…” click the “+” button • In the Folder Path field, choose “Other…” to add a host OS folder as the shared folder (e.g., “Download”) • In Win VM, open folder, goto “network”, select “VBOXSVR”, then the shared folder will show up as a network drive