14652691 virtual machine and its process
TRANSCRIPT
-
7/31/2019 14652691 Virtual Machine and Its Process
1/31
04/26/09
VIRTUAL MACHINE AND ITS PROCESS
1
Solehan Bin Djamaludin Abdul Hakim B Mohamad
A121184 A120512
-
7/31/2019 14652691 Virtual Machine and Its Process
2/31
CONTENTSTITLE Introduction of Virtual Machine o What is Virtual Machine o The Origin o The Architecture System Virtual Machine o Implementation o Emulation o Optimization Process Virtual Machine o Multiprogramming o High Level Language o Virtualization Advantages & Disadvantages Tutorial: How to install Summary Reference PAGE04/26/09
35 69 10 11 12 13 14 15 16 17 18 19 20 21 22 28 29 302
-
7/31/2019 14652691 Virtual Machine and Its Process
3/31
INTRODUCTION OF VIRTUAL MACHINE WHAT IS IT?04/26/09
In computer science, a virtual machine (VM) is a software implementation of a machine (computer) that executes programs like a real machine. A virtual machine takes the layered approach to its logical conclusion. It treats hardware and theoperating system kernel as though they were all hardware A virtual machine provides an interface identical to the underlying bare hardware The operating systemcreates the illusion of multiple processes, each executing on its own processorwith its own (virtual) memory3
-
7/31/2019 14652691 Virtual Machine and Its Process
4/31
CONTINUE
The resources of the physical computer are shared to create the virtual machines CPU scheduling can create the appearance that users have their own processor Anormal user time-sharing terminal serves as the virtual machine operators console
(a) Non Virtual Machine (b) Virtual Machine
04/26/09
4
-
7/31/2019 14652691 Virtual Machine and Its Process
5/31
The virtual-machine concept provides complete protection of system resources since each virtual machine is isolated from all other virtual machines. This isolation, however, permits no direct sharing of resources. A virtual-machine system is a perfect vehicle for operating-systems research and development. System development is done on the virtual machine, instead of on a physical machine and so does not disrupt normal system operation.
04/26/09
5
-
7/31/2019 14652691 Virtual Machine and Its Process
6/31
THE ORIGIN
Computer systems are constructed of the three major components :hardware, the operating system, and application programs. The three major system components arestacked on one another to reflect the direct interaction that takes place.
04/26/09
A computer system consisting of Hardware that implements an Instruction Set Architecture (ISA), an Operating System, and a set of Application programs.
6
-
7/31/2019 14652691 Virtual Machine and Its Process
7/31
04/26/09
Figure Interoperability a) Three popular computer systems composed of differentISAs, OSes, and Applications. b) Although highly modular, the major system components are not always interoperable.7
-
7/31/2019 14652691 Virtual Machine and Its Process
8/31
THE SOLUTION04/26/09
One type of virtual machine (VM) is virtualizing software is placed between theunderlying machine and conventional software. Virtualizing software translates the hardware ISA so that conventional software sees a different ISA from the one supported by hardware.
8
-
7/31/2019 14652691 Virtual Machine and Its Process
9/31
A system virtual machine provides a complete system environment. This environment can support multiple user processes, includes a file system, provides the processes with access to I/O devices, and, on the desktop, it supports a GUI.
04/26/09
Windows system supported as guest virtual machine running on a Linux/x86 host platform.
9
-
7/31/2019 14652691 Virtual Machine and Its Process
10/31
VIRTUAL MACHINE ARCHITECTURE04/26/09
10
-
7/31/2019 14652691 Virtual Machine and Its Process
11/31
SYSTEM VIRTUAL MACHINE04/26/09
SystemVirtualMachineiscapableofsupportinganOS alongwithpotentiallymanyuse
This system can be separated with these concepts o Implementation o Emulation oOptimization
11
-
7/31/2019 14652691 Virtual Machine and Its Process
12/31
IMPLEMENTATION
In Figure 0-10, the classic VM, the VMM is placed on bare hardware. The VMM runs inthe most highly privileged mode, while all the guests run with lesser privileges. Then, the VMM can intercept and implement all the guest OS s actions that interact with hardware resources
12
04/26/09
-
7/31/2019 14652691 Virtual Machine and Its Process
13/31
CONTINUE
An alternative system VMM implementation builds virtualizing software on top ofan existing host operating system resulting in what is called a hosted VM With ahosted VM, the installation process is similar to installing a typical application program Furthermore, virtualizing software can rely on the host OS to provide device drivers and other lower-level services; they dont have to be done by theVMM
13
04/26/09
-
7/31/2019 14652691 Virtual Machine and Its Process
14/31
EMULATIONExecutebinariescompiledtoadifferentinstructio nsetthanthatexecutedbythehosess helps to converts the guest system ISA operation equivalent to host OS. So,it allows software application and operating system written for guest ISA, to berun in host OS ISA.04/26/09
14
-
7/31/2019 14652691 Virtual Machine and Its Process
15/31
OPTIMIZATIONVMsdesignedtoenableinnovativeISAsand/or hardwareimplementationsforimprovedpefficiency,etc. Similarhardwarevirtualizationiscommonfor microprocessors,suchftwareVMispartofthehardwaredesign applications/OSneverdirectlyexecutenativeISA04/26/09
instructions
15
-
7/31/2019 14652691 Virtual Machine and Its Process
16/31
PROCESS VIRTUAL MACHINE04/26/09
MULTIPROGRAMMING HIGH LAVEL LANGUAGE VM VIRTUALIZATION
16
-
7/31/2019 14652691 Virtual Machine and Its Process
17/31
MULTIPROGRAMMING04/26/09
Conventional multiprogramming provides each user process with the illusion of having a complete machine to itself. Each process is given its own address space and is given access to a file structure. The operating system timeshares the hardware and manages underlying resources to make this possible.
17
-
7/31/2019 14652691 Virtual Machine and Its Process
18/31
HIGH LEVEL LANGUAGE VM04/26/09
AHLLisdesignedwiththegoalofbeing executedinaVM. minimizehardwarespecificandOS
specificfeaturesthatcouldcompromiseportabili ty earlierprogramdistributionthaal system
18
-
7/31/2019 14652691 Virtual Machine and Its Process
19/31
VIRTUALIZATIONVirtualizationconstructsanisomorphismthat mapsavirtualguestsystemtoarealhght of a partitioning where a single physical server is sliced into multiple small partitions.04/26/09
19
-
7/31/2019 14652691 Virtual Machine and Its Process
20/31
ADVANTAGES04/26/09
The only advantage is that we don t have to buy two computers, and we don t haveto stand up from one computer and walk to the other Increase the hardware utilization Decrease the capital and operating cost by sharing in number of VM High availability and Secure VM can use from anywhere in the intranet
20
-
7/31/2019 14652691 Virtual Machine and Its Process
21/31
DISADVANTAGES
The disadvantages are that they are really slow, and not quite as stable. Setting up networking can sometimes be a pain (but is solvable)
21
04/26/09
-
7/31/2019 14652691 Virtual Machine and Its Process
22/31
TUTORIAL : HOW TO INSTALL
Installing the Windows 7 Beta with Virtual PC 2007 SP1 Download and install Virtual PC from
http://www.microsoft.com/downloads/details.aspx?FamilyId=28C9 Download windows 7beta here but only 32-bit edition because virtual PC 2007 only support 32-bit guest OS
http://www.microsoft.com/windows/windows-7/beta-download.asp
22
04/26/09
-
7/31/2019 14652691 Virtual Machine and Its Process
23/31
1. Open Virtual PC (Start > Programs > Microsoft Virtual PC) and click New to launch the New Virtual Machine Wizard. Click Next.04/26/09
2. Ensure that Create a virtual machine is selected and click Next. 3. Provide a name and location for your virtual machine and click Next. I suggest saving thisin the same location that you will create your VHD file (step 6). 4. The next dialog prompts you for the operating system you will be running. Since Virtual PC2007 SP1 isnt familiar with Windows 7, just 23 select Windows Vista from this list. Click Next.
-
7/31/2019 14652691 Virtual Machine and Its Process
24/31
5. The next dialog asks you how much RAM you would like to assign to your virtual machine. This is always a balancing act to determine the right amount of RAM to allocate to your virtual machine and how much to allow your host operating system to utilize, but as a rule of thumb I suggest allocating 50% of your physicalRAM to your virtual machine. For example, if you have 1GB of RAM in your computer, try assigning 512MB to the virtual machine. Click Next when you have allocated your RAM. 6. Select A new virtual hard disk and click Next. 7. Give your new virtual hard disk a name and location. I suggest using a location that has at least 16GB of disk space available. An external (e.g. USB2) hard drive works well for this purpose since its portable and it allows your computer to load balance disk IO between your system drive and the external drive. For Virtual hard disk sizeleave the default value and click Next when ready. 8. Click Finnish
24
04/26/09
-
7/31/2019 14652691 Virtual Machine and Its Process
25/31
9. Your Virtual PC Console should now have a new entry representing your new virtual machine. Highlight this entry and click Start.
04/26/09
10. Your virtual machine should now boot up and look for an operating system toboot to. Since you havent installed an operating system yet, it will eventually time out with the message below. It might take a minute or two to time out whileit looks for a network device to boot off of, so be patient.
25
-
7/31/2019 14652691 Virtual Machine and Its Process
26/31
04/26/09
11. Now from the top of the Virtual PC 2007 window click on CD > Capture ISO Image and select the Windows 7 beta ISO image you downloaded in step 2. It should be called 7000.0.0812121400_client_en-us_Ultimate-GB1CULFRE_EN_DVD.iso. This willmount the ISO image as a DVD drive available to your virtual machine.
12. Now simply select your virtual machine and press . If youve done everything right so far, then your virtual machine should now launch the Windows 7 Beta setup!
26
-
7/31/2019 14652691 Virtual Machine and Its Process
27/31
13. The first few screens should be self-explanatory. When asked what type of installation you want, be sure to choose Custom (advanced) since you are not upgrading from a prior version of Windows.
14. The rest of the setup should be the same as any OS, but when you use your mouse to control your virtual Windows 7 OS, you wont be able to move your cursor outside of the virtual machine. To release the mouse 27 press the key
04/26/09
-
7/31/2019 14652691 Virtual Machine and Its Process
28/31
CONGRATULATIONS!!!!!!04/26/09
You have installed your first virtual windows 7
28
-
7/31/2019 14652691 Virtual Machine and Its Process
29/31
SUMMARYVirtual Machine is a platform that can help different OS to be used concurrentlyin one physical hardware. The using of virtual machine also help the developersto do some test on guest OS system, without concerning about its effects on host OS04/26/09
29
-
7/31/2019 14652691 Virtual Machine and Its Process
30/31
REFERENCE04/26/09
http://wiki.answers.com/Q/What_are_advantages_or_disadvantages_of_virtual_machinhttp://www.pdf-search-engine.com/inside-process-virtual-machine-pdf.html http://www.csc.lsu.edu/~gb/csc7700/Reading/smith-vm-overview.pdf
http://blogs.msdn.com/briankel/archive/2009/01/10/installing-the-windows-7-beta-with-v
30
-
7/31/2019 14652691 Virtual Machine and Its Process
31/31