Virtual Machine and Virtualbox
Virtual Machine and Virtualbox
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 make
up a guest OS
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/Metasploitable2/
◦ The default login and password is msfadmin:msfadmin
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
Ihave 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….
NAT routers
Host OS
VM2
VM1
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
In Linux VM:
mkdir shared
mount -t vboxsf Download ~/shared