Virtualization and Virtual Machines Sarah Diesburg 1102013 COP
Virtualization and Virtual Machines Sarah Diesburg 1/10/2013 COP 5641 1
Assignment 1 A Choice to Make… n n Virtual machine or no virtual machine… Pros q q q n Less potential damage to your computer Can take snapshots Can run on any computer with virtualization software Cons q q Parallel port project may or may not work May not work with your final project 2
Virtualization 3
Virtualization Software n Runs operating systems in full emulated environment q q VMware Virtual. Box Virtual PC Xen 4
Virtualization Terminology n Host OS – running on physical computer q q n Guest OS – running in emulated environment q q n Only one host OS may run at a time “Hosts” the other running operating systems 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 5
Virtual Machine Files 6
Virtual Machine Advantages n n Can distribute a pre-configured OS Create multiple snapshots q n If something goes wrong, roll-back to a previously saved snapshot Portable q q Run on any host OS Store on portable hard drive or laptop 7
Virtual Machine Advantages n Sandbox q n Does not affect anything on host OS Networked q Can access over the network 8
Opened Virtual Machine (VMWare) 9
Virtual Memory Setting n You should set the amount of memory that is allocated to your guest OS q n n Cannot be shared between host and guest Edit Virtual Machine Settings -> Hardware -> Memory Rule of thumb: Give your host at least 1 GB 1. 5 GB, give guest the rest 10
Adjust Virtual Memory 11
Adjust Virtual Memory Slide to blue triangle 12
Start the Machine n Press green start arrow 13
Using the Virtual Machine n To type or use the mouse inside the virtual machine q n Click inside the virtual machine window To type or move the mouse back to the host machine q Press CTRL+ALT 14
Creating Snapshots n n Might be a button to automatically create snapshots of system state If not… q q q Shut down the virtual machine cleanly Copy all the files into another, snapshot directory I call this the “poor man’s snapshot” 15
Create a Snapshot 16
Copy & Paste / File Transfer n Copy & paste from host to guest q q n Will work in default kernel Will not work in kernel you build Preferred method q Use ssh / pretend it is a remote machine 17
- Slides: 17