1 virtualization and virtual machines sarah diesburg 1/10/2013 cop 5641
TRANSCRIPT
![Page 1: 1 Virtualization and Virtual Machines Sarah Diesburg 1/10/2013 COP 5641](https://reader036.vdocuments.site/reader036/viewer/2022062516/56649db35503460f94aa34ee/html5/thumbnails/1.jpg)
1
Virtualization and Virtual Machines
Sarah Diesburg1/10/2013COP 5641
![Page 2: 1 Virtualization and Virtual Machines Sarah Diesburg 1/10/2013 COP 5641](https://reader036.vdocuments.site/reader036/viewer/2022062516/56649db35503460f94aa34ee/html5/thumbnails/2.jpg)
Assignment 1A Choice to Make… Virtual machine or no virtual machine… Pros
Less potential damage to your computer Can take snapshots Can run on any computer with virtualization
software Cons
Parallel port project may or may not work May not work with your final project
2
![Page 3: 1 Virtualization and Virtual Machines Sarah Diesburg 1/10/2013 COP 5641](https://reader036.vdocuments.site/reader036/viewer/2022062516/56649db35503460f94aa34ee/html5/thumbnails/3.jpg)
Virtualization
3
![Page 4: 1 Virtualization and Virtual Machines Sarah Diesburg 1/10/2013 COP 5641](https://reader036.vdocuments.site/reader036/viewer/2022062516/56649db35503460f94aa34ee/html5/thumbnails/4.jpg)
Virtualization Software
Runs operating systems in full emulated environment VMware VirtualBox Virtual PC Xen
4
![Page 5: 1 Virtualization and Virtual Machines Sarah Diesburg 1/10/2013 COP 5641](https://reader036.vdocuments.site/reader036/viewer/2022062516/56649db35503460f94aa34ee/html5/thumbnails/5.jpg)
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
5
![Page 6: 1 Virtualization and Virtual Machines Sarah Diesburg 1/10/2013 COP 5641](https://reader036.vdocuments.site/reader036/viewer/2022062516/56649db35503460f94aa34ee/html5/thumbnails/6.jpg)
Virtual Machine Files
6
![Page 7: 1 Virtualization and Virtual Machines Sarah Diesburg 1/10/2013 COP 5641](https://reader036.vdocuments.site/reader036/viewer/2022062516/56649db35503460f94aa34ee/html5/thumbnails/7.jpg)
Virtual Machine Advantages Can distribute a pre-configured OS 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
7
![Page 8: 1 Virtualization and Virtual Machines Sarah Diesburg 1/10/2013 COP 5641](https://reader036.vdocuments.site/reader036/viewer/2022062516/56649db35503460f94aa34ee/html5/thumbnails/8.jpg)
Virtual Machine Advantages Sandbox
Does not affect anything on host OS Networked
Can access over the network
8
![Page 9: 1 Virtualization and Virtual Machines Sarah Diesburg 1/10/2013 COP 5641](https://reader036.vdocuments.site/reader036/viewer/2022062516/56649db35503460f94aa34ee/html5/thumbnails/9.jpg)
Opened Virtual Machine (VMWare)
9
![Page 10: 1 Virtualization and Virtual Machines Sarah Diesburg 1/10/2013 COP 5641](https://reader036.vdocuments.site/reader036/viewer/2022062516/56649db35503460f94aa34ee/html5/thumbnails/10.jpg)
Virtual Memory Setting
You should set the amount of memory that is allocated to your guest OS Cannot be shared between host and guest
Edit Virtual Machine Settings -> Hardware -> Memory
Rule of thumb: Give your host at least 1GB-1.5GB, give guest the rest
10
![Page 11: 1 Virtualization and Virtual Machines Sarah Diesburg 1/10/2013 COP 5641](https://reader036.vdocuments.site/reader036/viewer/2022062516/56649db35503460f94aa34ee/html5/thumbnails/11.jpg)
Adjust Virtual Memory
11
![Page 12: 1 Virtualization and Virtual Machines Sarah Diesburg 1/10/2013 COP 5641](https://reader036.vdocuments.site/reader036/viewer/2022062516/56649db35503460f94aa34ee/html5/thumbnails/12.jpg)
Adjust Virtual Memory
12
Slide to blue triangle
![Page 13: 1 Virtualization and Virtual Machines Sarah Diesburg 1/10/2013 COP 5641](https://reader036.vdocuments.site/reader036/viewer/2022062516/56649db35503460f94aa34ee/html5/thumbnails/13.jpg)
Start the Machine
Press green start arrow
13
![Page 14: 1 Virtualization and Virtual Machines Sarah Diesburg 1/10/2013 COP 5641](https://reader036.vdocuments.site/reader036/viewer/2022062516/56649db35503460f94aa34ee/html5/thumbnails/14.jpg)
Using the Virtual Machine
To type or use the mouse inside the virtual machine Click inside the virtual machine window
To type or move the mouse back to the host machine Press CTRL+ALT
14
![Page 15: 1 Virtualization and Virtual Machines Sarah Diesburg 1/10/2013 COP 5641](https://reader036.vdocuments.site/reader036/viewer/2022062516/56649db35503460f94aa34ee/html5/thumbnails/15.jpg)
Creating Snapshots
Might be a button to automatically create snapshots of system state
If not… Shut down the virtual machine cleanly Copy all the files into another, snapshot directory I call this the “poor man’s snapshot”
15
![Page 16: 1 Virtualization and Virtual Machines Sarah Diesburg 1/10/2013 COP 5641](https://reader036.vdocuments.site/reader036/viewer/2022062516/56649db35503460f94aa34ee/html5/thumbnails/16.jpg)
Create a Snapshot
16
![Page 17: 1 Virtualization and Virtual Machines Sarah Diesburg 1/10/2013 COP 5641](https://reader036.vdocuments.site/reader036/viewer/2022062516/56649db35503460f94aa34ee/html5/thumbnails/17.jpg)
Copy & Paste / File Transfer Copy & paste from host to guest
Will work in default kernel Will not work in kernel you build
Preferred method Use ssh / pretend it is a remote machine
17