What are virtual machines used for? Why are virtual machines needed? Virtual machine from the inside

Let's take a closer look at what virtual machines for Windows are and what they are needed for. Learn all about the best OS simulators and how to get started using them.

A virtual machine (VM) is a computer application that allows a user to simulate an operating system. An OS image is installed on the machine for use within an existing system. Very convenient, isn't it? But there are also pitfalls. Read what you will encounter during installation and which virtual machine for Windows versions 7,8 and 10 is better to choose.

Why do we need virtual machines for PCs?

In most cases, VMs are used for testing software in . To work with multiple operating systems, you only need one computer, which significantly speeds up your work.

You can run multiple virtual machines on one computer at the same time. Their number depends on the available RAM and space on the child’s disk, since the virtual OS consumes exactly the same memory resource as a regular copy installed on the computer.

Using virtual machines, you can work with programs and functions that are not available in the main OS. Also, it is possible to create backup copies of VMs, with their subsequent movement and use on other computers.

Viruses, errors and other failures of the virtual OS do not affect the operation of the main system. After closing the machine, the operation of the additional OS stops and the RAM is freed.

During VM operation, the device may slow down, because increased consumption of storage resources leads to increased request processing time.

Reasons for installing a VM:

  • You want to get acquainted with the work of other operating systems without fully installing them. If you need to replace your existing OS, first use a virtual simulator to test other software options. This will save you from possible bugs and incompatibility with hardware;
  • You are a developer and want to create a comprehensive system for testing the applications you create.

VirtualBox

VirtualBox is a virtual machine for Windows 7,8,10. The virtualization environment is distributed free of charge and can be installed both for working with operating systems and for deploying network infrastructure and website hosting.

VirtualBox main window:

The main feature of this virtual machine is cross-platform. It works great on all versions of Windows. You can also download installers for Mac OS and Debian from the developer’s website. In the virtualization environment itself, you can install any desktop OS.

Using VirtualBox, you can familiarize yourself with the functionality of the OS or test the program in safe mode without harming the main system. Often users prefer to install old games on virtual machines that are incompatible with modern operating systems.

After finishing the simulator, all data and changes will be saved. The next time you turn on, you will be returned to the desktop and can continue performing tasks.

Advantages and disadvantages

Advantages of VirtualBox:

  • Free distribution. 90% of similar software is paid, while VirtualBox can be obtained completely free of charge. The functions and capabilities of the program are not limited to the developer;
  • Ability to create screenshots – screenshots of a virtual system. The resulting image will only display the secondary OS window. Creating screenshots using the main OS degrades the resolution and also captures your regular desktop;
  • Creating an exact copy of an existing virtual machine;
  • Ability to drag folders, shortcuts and other objects inside the simulator;
  • Unified file system – from a virtual machine you can access directories that are stored on a PC, and vice versa;
  • Simultaneous work with several machines.

Also, a distinctive feature of the new VirtualBox 4 is a convenient virtualization management system and an intuitive program workspace. Also, the new build offers the ability to capture video from the screen of an additional OS.

VirtualBox supports working with USB drives connected to the computer.

Disadvantages of the program:

  • Slowdown of the computer. Even if your PC has good technical specifications, sufficient RAM and storage space, when using a virtual machine, you will experience slower performance of all functions. If during the creation of a VM you allocated too much memory to it, the computer will freeze or shut down severely;
  • Insufficient video memory. If you need to achieve the best possible image quality, it will be difficult to do it using VirtualBox. The program allows you to configure the settings for using the video card only at a basic level.
How to install

To install the VirtualBox program, download the installer from the official website of the developer, Oracle. The installation process is standard and does not require additional settings:

  • Run the EXE file;
  • Select the Hard drive on which the root folder with the program will be located;
  • Wait for the installation to complete. If necessary, the user can view statistics on hard disk usage during the installation process.

In the “Custom Setup” field it is possible to disable support for USB and network services. This allows you to reduce the final size of the application.

Video instructions on how to install two OS using VirtualBox

Once the program is installed, you can begin creating your first virtual machine. Click on the “Create” button in the upper left corner of the window. The VM settings tab will open:

In the setup wizard window, select the type of virtual OS (Windows, Linux, Debian, MacOS) and its version. Set a name for the simulator to be created and click on the “Next” button.

Then, the program will give you the opportunity to independently specify the size of RAM that will be allocated for the additional OS. For novice users, we recommend setting the value indicated in the “Recommended main memory size” field.

The size of RAM for a VM should be determined depending on the technical characteristics of your PC. If your computer has 4 GB of RAM available, 512 MB-1 GB will be enough for the simulator to run normally.

Next, the program will ask you to select an OS image in the file system (which corresponds to the previously specified family and version). After completing the setup, a window will appear with a brief listing of all parameters. Click on "Finish".

After the installation of virtual Windows is completed, an icon for launching the OS will appear in the main VirtualBox window. Click on it and wait for the desktop to load. If necessary, install drivers.

To automatically update drivers, open the “devices” tab on the virtual machine toolbar. Then click on the desired media type and in the new window follow the instructions to obtain the new software.

Ready. Now you can start working with the virtual operating system. To exit the program, first turn off the OS and then close VirtualBox.

VMware

VMWare Workstation is the best virtual machine for Windows 10. The developer positions the program as a convenient platform for creating . Compared to other popular analogues, VMWare supports more functions for customizing a virtual machine and allows you to synchronize the simulator with software development tools.

This virtualization environment is popular among programmers, web designers and other specialists who often have to test their projects for cross-platform functionality.

Advantages and disadvantages

Among the advantages of VMWare are:

  • Convenient toolbar;
  • Synchronization with Microsoft development tools, in particular the .NET platform and the Visual Studio software environment;
  • Safety system. Built-in VMWare tools provide a high level of protection for your files in the secondary OS. The simulator can detect attempts by malicious activity to eliminate them;
  • Operation of encryption services for created virtual machines.

Disadvantages of the application:

  • Paid distribution. The user can download a free trial version of the utility, but to get the full version of the application with all available functions, you will need to pay an annual or monthly subscription;
  • Not suitable for beginners. If you have not used operating system simulators before, we recommend starting with simpler options. For example, VirtualBox and the standard Hyper V for Windows. VMWare is suitable for advanced users who prefer to configure the system manually.
How to install

You can download the virtual machine for Windows from the official website of the developer VMWare.com.

During the installation process, it is recommended to turn off Windows Defender or any other running antivirus. This is only necessary for the correct installation of all files and encryption algorithms that the program uses for virtual machines. No harm will be done to your main OS, since the product was downloaded from an official source.

Overview of functionality and first setup of the program

To create your first virtual machine in VMWare, you will need to download the OS distribution kit that you want to use in the emulator to your computer. Then open the installed application window and click on the “Create a new virtual machine” field

Note! The user can create a group of virtual machines, instead of several simulators. This allows you to reduce the resource of consumed RAM and speed up the operation of the computer and the OS simulator.

In the VM Setup Wizard window, specify the path to the operating system image (this can be a file in the computer's memory or a boot disk). It is also possible to configure a virtual machine without installing the OS (it can be installed later).

  • In the window that appears, specify the OS name, user name and account access password;
  • Specify on which disk of your computer the virtual machine will be stored;
  • Select the amount of RAM you need to run the VM;
  • Configure the equipment (automatically or manually).

After completing the setup of the virtual machine, wait for the OS image to install and start working:

Microsoft Virtual PC

Microsoft Virtual PC is another popular virtual machine emulator. The program is well compatible with all versions of OS Windows. If you use a Microsoft product as your main OS, we recommend choosing Microsoft Virtual PC for emulation.

Advantages and disadvantages

Emulator advantages:

  • Excellent compatibility with all versions of Windows OS. In most cases, the user does not need to install any additional drivers for the virtual OS. All of them are synchronized with the main system;
  • File system sharing. Access files stored on your PC hard drive through a VM window;
  • Support for 64-bit Windows OS in “Guest Host” and “Guest Environment” operating modes;
  • Support for hardware virtualization.

Flaws:

  • There are paid features. The program is distributed free of charge, but to support setting up a group of virtual OSes you will have to buy a subscription;
  • There is no support for Linux-like systems.
Overview of functionality and first setup of the program

To install a virtual OS, first download its image to your computer's memory, and then open the Microsoft Virtual PC application. Click on the “Create virtual machine” button and in the new window configure the following parameters:

  • Set the name of the new OS;
  • Allocate space for its hard drive and the size of RAM;
  • Select what devices the VM will support (network environment, flash drives, etc.).
Bottom line

We told you about the best virtual machines for Windows, but not all of them. If you think that these are not the best, write in the comments! Help new readers decide which emulator to start with.


Virtual machines [Several computers in one] Gultyaev Alexey Konstantinovich

Why do we need virtual machines?

Today, virtual machines are experiencing a rebirth. One of the “fathers” of the modern generation of virtual machines, Professor Rosenblum, explains their revival for two main reasons:

The emergence of a large number of different operating systems (OS), which impose specific requirements on the parameters of the computer hardware components used;

High administration costs and complexity of servicing computers on which several different operating systems are installed (including in terms of ensuring the required reliability and security of operation).

A modern virtual machine allows you to hide some parameters of the computer’s physical devices from the operating system installed on it and thereby ensure the mutual independence of the OS and the installed hardware.

This approach provides users (and/or computer system administrators) with a number of benefits. These include in particular:

The ability to install multiple operating systems on one computer without the need for corresponding configuration of physical hard drives;

Working with several operating systems simultaneously with the ability to dynamically switch between them without rebooting the system (Fig. 1.1);

Reducing the time required to change the composition of installed operating systems;

Isolation of real hardware from the unwanted influence of software running in a virtual machine environment;

The ability to simulate a computer network on a single autonomous computer.

Rice. 1.1. Multiple virtual machines on one desktop

Thanks to these advantages, the range of tasks that the user can solve without rebooting the system and without fear of causing any damage to it or completely disabling it is significantly expanded. Here are just some examples of such tasks:

Mastering a new OS;

Launching applications designed to work in a specific OS environment;

Testing one application running different operating systems;

Installation and removal of evaluation or demo versions of programs;

Testing potentially dangerous applications that are suspected of being infected with a virus;

Managing user access rights to data and programs within a virtual machine.

The reader himself will probably easily add two or three situations to the above list when having a virtual machine on the computer would be very useful.

Which users would like to learn how to work with virtual machines? Perhaps everyone who has more than one OS installed on their computer. And also for those who want to master a new operating system, but do not dare to immediately abandon the previous one. Virtual machines are very useful for teachers of various computer courses and disciplines, as well as developers of multi-platform software products. They are of particular interest to web designers: after all, the pages they create should look equally attractive to users working on a variety of systems and platforms. With the ability to quickly switch from one environment to another using a virtual machine system, the “right” web designer is unlikely to miss the chance to test the results of his work in different web browsers.

All of the listed advantages of virtual machines are common to many of them. In addition to these general properties, a specific software product usually has individual features designed to increase its attractiveness in comparison with competing products.

On the websites of virtual machine developers you can find numerous examples of the use of virtual machine technology by various well-known companies. Thus, VMware virtual machines are used by Symantec to test network antivirus packages; Programmers of the popular Google search engine use VMware virtual machines to evaluate the performance of Google with different web browsers and on different platforms.

From the book Applied Free Programs and Systems at School author Otstavnov Maxim

From the book Free Software and Systems at School author Otstavnov Maxim

2.8 Why do we need “light” media? While the X window system itself has been the de facto industry standard for many years, the layers of the graphical environment lying “above” it are not standardized. It is difficult to give any classification of graphical environments, but the most

From the book Fedora 8 User Guide author Kolisnichenko Denis Nikolaevich

1.5.2. Why are groups needed? Let's assume that there are several users registered in the system - den, lena and guest. The first two users are working on the same project, so it makes sense to place them in the same group. But groups are needed not only for cosmetics. While creating

From the Linux for the User book author Kostromin Viktor Alekseevich

P20. To Chapter 18 “VMware Virtual Machines” 1. V. Ivanchenko, A. Panishev, “Penguin against the Empire.” (http://www.submarine.ru/print.cfm?ID=410). 2. V. Kostromin, “Linux together with Windows.” Open Systems, N 3, 2001, pp. 24-31 (http://www.osp.ru/os/2001/03/024.htm). 3. Choong Ng, “VMware Express 2.0 and Win4Lin 2.0: A Comparison Review.”

From the book Word 2007. Popular tutorial author Krainsky I

9.1. What are macros and why are they needed Quite often, the user has to repeat certain commands in a certain sequence (for example, format text in italics, size 10, Arial font). To do this little formatting,

From the book Virtual Machines [Multiple computers in one] author Gultyaev Alexey Konstantinovich

Virtual machines with guest OS API emulation Typically, applications run in an isolated address space and interact with the hardware using the API (Application Programming Interface) provided by the operating system.

From the book The Phenomenon of Science. Cybernetic approach to evolution author Turchin Valentin Fedorovich

Virtual machines with full guest OS emulation Projects that support full emulation technology work on the principle of interpreting instructions from the guest OS command system. Since this completely emulates the behavior of both the processor and all external

From the book How to make money on the Internet: A practical guide author Dorokhova Marta Alexandrovna

Virtual machines with quasi-emulation of the guest OS The technology of quasi-emulation of the guest OS is based on the fact that not all instructions of the guest OS need to be emulated by means of the host operating system. Many of the instructions required for proper operation

From the book A visual tutorial for working on a netbook author Senkevich G. E.

Chapter 2 Virtual machines Virtual PC 2004 For users who prefer to work exclusively with operating systems of the Windows family, the Virtual PC 2004 product can perhaps be considered the most suitable choice - after all, the latest version of the program belongs to

From the book Wiki-Government [How technology can make government better, democracy stronger, and citizens more influential] by Novek Beth

Chapter 3 Virtual Machines VMware Workstation Until Microsoft turned its attention to the virtual machine market, VMware was the undisputed leader in this market. However, it is still too early to say that Virtual PC 2004 has “pushed” products away from VMware for the second

From the book Promotion of portals and online stores author Grokhovsky Leonid O.

Chapter 4 Virtual Machines Parallels Workstation Parallels (its full name is Parallels Software International Inc.) can be considered a newcomer to the market of applications for creating virtual machines. Suffice it to say that at the end of 2005, only the second version of the Parallels package was released in beta

From the author's book

From the author's book

From the author's book

Why are labels needed? A special type of files are shortcuts. A shortcut only points to some file or folder that is itself located elsewhere. The fact that the file is a shortcut is indicated by a small arrow on its icon. It is convenient to place shortcuts on the Desktop. Double click on

From the author's book

From the author's book

Why do we need optimizers? The scheme described in the previous chapters covers almost all processes of creating and filling the portal, starting with the compilation of the semantic core and ending with the placement of finished texts. At the same time, until now we have had practically no work for

If you have ever installed any programs or conducted any experiments on your computer, then you know very well how much time it takes to restore it to its original state. Often, this requires completely reinstalling the system.

In order to avoid such serious consequences, users use all sorts of tricks: only from trusted sources, use the most powerful and high-quality antiviruses, and do this in case of problems. But ordinary ones are more reliable than all this.

What is a virtual machine?

Imagine that on your computer, in parallel with the first, a second operating system is installed, which simultaneously works with it. It is completely independent of the “real” OS; any risky experiments can be carried out on it.

Introduced? So, virtual machines allow all this, since they are special software “containers” in which you can run almost any operating system. Unlike the OS that is on your hard drive, it will not have direct access to the computer hardware, acting through the software shell.

As a result, you can run at least a whole brood of viruses in it: they will not be able to do any harm. An ideal example is the VMware virtual machine, which advanced users use to run new versions of operating systems and test dubious programs and drivers. In the realities of our country, it is used even more often to launch keygens to generate keys to programs. All this allows you not to needlessly spoil your system.

But you shouldn’t assume that virtual machines are the prerogative of Windows alone. They are used much more often by users of Linux-like systems, since in many cases they may need to run some small utility that only works on a Microsoft system. It is simply unjustified to bother with Wine for the sake of it, while the “virtual” easily eliminates such a need.

Users often look for comparisons of virtual machines, trying to choose the best one among them. It should be noted that VMware, which has a number of undoubted advantages, often comes up in disputes. The program developers constantly add support to their product for almost all existing operating systems, including those that have just come out. In particular, it was this application that at one time made it possible to launch Windows 8, while in the popular Virtual Box the system completely refused to start.

But the leader of the unspoken competition has one drawback. The program is paid. Of course, professionals who use its capabilities to test their programs do not have any difficulties, but I would still like to advise others not to mess with broken programs and use the free Virtual Box. Although these virtual machines are not particularly popular among professionals, their capabilities are more than enough for you.

The concept of a “virtual machine” was born several decades ago, back in the late 60s of the last century. But then virtual machines were used not on personal computers, but on “large” computers such as IBM/370 (or their Soviet analogue - ES Computers), and their tasks were somewhat different: to provide each of the numerous users with their own, independent “piece” » resources of a computing monster.

Why do we need virtual machines?

Today, virtual machines are experiencing a rebirth. One of the "fathers" of the modern generation of virtual machines, Professor Rosenblum, attributes their revival to two main reasons:

■ the emergence of a large number of different operating systems (OS), which impose specific requirements on the parameters of the computer hardware components used;

■ high administration costs and complexity of servicing computers on which several different operating systems are installed (including in terms of ensuring the required reliability and security of operation).

A modern virtual machine allows you to hide some parameters of the computer’s physical devices from the operating system installed on it and thereby ensure the mutual independence of the OS and the installed hardware.

This approach provides users (and/or computer system administrators) with a number of benefits. These include in particular:

■ the ability to install several operating systems on one computer without the need for corresponding configuration of physical hard drives;

■ work with several operating systems simultaneously with the ability to dynamically switch between them without rebooting the system (Fig. 1.1);

■ reducing the time required to change the composition of installed operating systems;

■ isolation of real hardware from the unwanted influence of software running in a virtual machine environment;

■ the ability to simulate a computer network on a single autonomous computer.

Rice. 1.1. Multiple virtual machines on one desktop


Thanks to these advantages, the range of tasks that the user can solve without rebooting the system and without fear of causing any damage to it or completely disabling it is significantly expanded. Here are just some examples of such tasks:

■ mastering a new OS;

■ launching applications designed to work in a specific OS environment;

■ testing one application running different operating systems;

■ installation and removal of evaluation or demo versions of programs;

■ testing potentially dangerous applications that are suspected of being infected with a virus;

■ managing user access rights to data and programs within a virtual machine.

The reader himself will probably easily add two or three situations to the above list when having a virtual machine on the computer would be very useful.

Which users would like to learn how to work with virtual machines? Perhaps everyone who has more than one OS installed on their computer. And also for those who want to master a new operating system, but do not dare to immediately abandon the previous one. Virtual machines are very useful for teachers of various computer courses and disciplines, as well as developers of multi-platform software products. They are of particular interest to web designers: after all, the pages they create should look equally attractive to users working on a variety of systems and platforms. With the ability to quickly switch from one environment to another using a virtual machine system, the “right” web designer is unlikely to miss the chance to test the results of his work in different web browsers.

All of the listed advantages of virtual machines are common to many of them. In addition to these general properties, a specific software product usually has individual features designed to increase its attractiveness in comparison with competing products.

On the websites of virtual machine developers you can find numerous examples of the use of virtual machine technology by various well-known companies. Thus, VMware virtual machines are used by Symantec to test network antivirus packages; Programmers of the popular Google search engine use VMware virtual machines to evaluate the performance of Google with different web browsers and on different platforms.

How a virtual machine works

Let's start by clarifying the terms.

Terminology

From the user's point of view, virtual machine (VM) - This is a specific instance of a certain virtual computing environment (“virtual computer”), created using a special software tool. Typically, such tools allow you to create and run an arbitrary number of virtual machines, limited only by the physical resources of a real computer.

The actual tool for creating VMs (sometimes called virtual machine application, or FDA) is a regular application installed, like any other, on a specific real operating system. This real OS is called the "host" or host, OS (from the English term host - “main”, “base”, “master”).

All tasks for managing virtual machines are solved by a special module as part of the VM application - Virtual Machine Monitor (VMM). The monitor plays the role of an intermediary in all interactions between virtual machines and the underlying hardware, supporting the execution of all created VMs on a single hardware platform and ensuring their reliable isolation. The user does not have direct access to the VMM. In most software products, it is provided only with a graphical interface for creating and configuring virtual machines (Fig. 1.2). This interface is usually called virtual machine console.

Rice. 1.2. Example of a virtual machine console


“Inside” the virtual machine, the user installs the operating system he needs, just like on a real computer. Such an OS belonging to a specific VM is called guest(guest OS). The list of supported guest operating systems is one of the most important characteristics of a virtual machine. The most powerful modern virtual machines (presented in this book) provide support for about a dozen popular versions of operating systems from the Windows, Linux and MacOS families.

Virtual machine from the inside

Once the virtual machine is created and running, the user may have the complete illusion that he is working with a standalone computer, which has its own processor, RAM, video system and (usually) a “standard” set of external devices, including a floppy drive and CD reader /DVD.

In fact, the virtual machine does not have access to the physical resources of the real computer. Working with them is assigned to the previously mentioned VMM, as well as to another utility program - the virtual machine driver.

In a simplified form, the architecture of the system that uses virtual machines is as follows (Fig. 1.3):

■ the host OS and the virtual machine monitor share rights to manage the computer’s hardware components; at the same time, the host OS distributes resources between its own applications (including the VM console);

■ the VM monitor controls the distribution of resources between running virtual machines, creating for them the illusion of direct access to the hardware level (this mechanism is called virtualization);

■ guest operating systems, within the resources allocated to them, manage the operation of “their” applications.


Rice. 1.3. Virtual machine system architecture


The architecture shown is very general. However, the virtual machine systems on the market today have significant differences. They are determined primarily by the virtualization mechanism used in a particular system.

Types of virtual machines

A virtual machine system can be built on various platforms and using different technologies. The virtualization scheme used depends both on the hardware platform and on the characteristics of the “relationship” between the host OS and the supported guest OS. Some architectures provide virtualization capabilities at the hardware level, while others require additional software tricks.

Currently, three virtualization schemes are widespread:

■ guest OS API emulation;

■ full emulation of the guest OS;

■ quasi-emulation of the guest OS.

Virtual machines with guest OS API emulation

Typically, applications operate in an isolated address space and interact with hardware using the Application Programming Interface (API) provided by the operating system. If two operating systems are compatible in their APIs (for example, Windows 98 and Windows ME), then applications developed for one will work on the other. If two operating systems are incompatible in their API interfaces (for example, Windows 2000 and Linux), then it is necessary to intercept application calls to the guest OS API and imitate its behavior using the host OS. With this approach, you can install one operating system and work simultaneously with both its applications and applications of another operating system.

Since all application code runs without emulation, and only API calls are emulated, this virtualization scheme results in a negligible loss in virtual machine performance. However, due to the fact that many applications use undocumented API functions or access the operating system bypassing the API, even very good API emulators have compatibility problems and only allow to run no more than 70% of the total number of applications. In addition, maintaining API emulation of a rapidly evolving operating system (such as Windows) is not easy, and most API emulators remain emulators of a specific version of the operating system. Thus, Windows NT/2000 still has a built-in emulator for OS/2 version 1.x applications. But the biggest drawback of a VM with guest OS API emulation is its focus on a specific operating system.

Examples of products made using guest OS API emulation technology:

■ open source project Wine (Wine Is Not an Emulator, “Wine is not an emulator”), which allows you to run DOS, Win16 and Win32 applications running the Linux and Unix operating systems;

■ Netraverse's Win4Lin product, which allows you to run Windows operating systems running the Linux operating system;

■ open source project DOSEMU, which allows you to run DOS applications running the Linux operating system;

■ open source project User Mode Linux (UML), which allows you to run multiple copies of the Linux operating system on one computer (currently the Linux kernel version 2.6 is built in);

■ Virtuozzo technology, developed by the Russian company SWsoft, which allows you to run multiple copies of the Linux operating system on one computer.

Virtual machines with full guest OS emulation

Projects that support full emulation technology work on the principle of interpreting instructions from the guest OS command system. Since this completely emulates the behavior of both the processor and all external devices, it is possible to emulate a computer with Intel x86 architecture on computers with a completely different architecture, for example, on Mac workstations or on Sun servers with RISC processors. The main disadvantage of full emulation is a significant loss of performance of the guest operating system (the speed of “guest” applications can drop by 100-1000 times). Therefore, until recently, VMs with full emulation were most often used as low-level debuggers for examining and tracing operating systems. However, thanks to the significant increase in computing power, even “desktop” computers, VMs with full emulation have now become quite competitive. The most prominent representative of this type of VM is the Virtual PC product from Connectix (now purchased by Microsoft), which is described in detail in Chapter 2 of the book. Other examples of projects implemented using full emulation technology include the following:

■ Bochs open source project, which allows you to run various Intel x86 operating systems under Linux, Windows, BeOS and Mac OS;

■ Simics product from Virtutech, which allows you to run and debug various Intel x86 operating systems running Windows and other operating systems;

■ Qemu project - an emulator of various architectures on PC,

Virtual machines with quasi-emulation of guest OS

Guest OS quasi-emulation technology is based on the fact that not all guest OS instructions need to be emulated using the host operating system. Many of the instructions needed for guest applications to run correctly can be addressed directly to the host OS. The exception is instructions for controlling devices such as a video card, IDE controller, timer, and some others.

Thus, during RM operation with quasi-emulation, selective emulation of guest OS instructions occurs. Obviously, the performance of such a VM should be higher than that of a VM with full emulation. However, as mentioned, at the achieved levels of performance of personal computers, the difference is not so noticeable.

Examples of projects made using quasi-emulation technology:

■ Virtual Platform technology, on the basis of which VMware offers four products: VMware Workstation for Windows NT/2000/XP, VMware Workstation for Linux, VMware GSX Server (group server) and VMware LSX Server (enterprise server);

■ virtual machine Serenity Virtual Station (SVISTA) (formerly twoOStwo), developed by the Russian company Parallels for the German company NetSys GmbH;

■ Plex86 open source project, which allows you to run various Intel x86 operating systems running Linux.

■ open source project L4Ka, which uses a microkernel;

■ open source project Xen, which allows you to run modified Linux, FreeBSD, NetBSD and Windows XP operating systems running Linux, FreeBSD, NetBSD and, subject to certain conditions, even providing a performance increase.

The subsequent chapters of the book examine the most popular representatives of various types of virtual machines today: Virtual PC 2004 from Microsoft, VMware Workstation from VMware and a relatively “fresh” product - Parallels Workstation, created by Parallels. Moreover, the description of all competing programs is built according to the same scheme, so that it is easier for the reader to compare them with each other and make an informed choice.

Notes:

Mendel Rosenblum(mendel@ cs.stanford.edu) is a professor of computer science at Stanford University and one of the founders and chief scientist of VMware. Chapter 3 of the book is devoted to working with this company’s virtual machine, VMware Workstation.

Currently, Parallels has split into two independent companies. The first of them, which retained the same name, promotes its product under the Parallels brand; the second, called Serenity Systems International (http://www.serenityvirtual.com), on the contrary, uses the previous name of the product - SVISTA - and its logo; both versions of virtual machines can run on Windows NT/2000/XP and Linux.

To have several operating systems with separate workspace and applications at hand, you don’t need to buy a second (third, fourth, etc.) computer. Because it all fits into your single PC. How? Thanks to virtual machines (VMs) - special programs that create (emulate) imaginary (virtual) computers inside the main operating system.

A virtual PC is almost like a real one. It has its own processor, memory, hard drive, network adapter and everything else. Of course, these are not physical devices, but they are made in such a way that operating systems consider them to be just that - real.

Several virtual computers can work simultaneously on one physical computer. Exactly how much depends on the hardware resources: the faster the processor, the larger the RAM, the more spacious the storage, the more. A typical average-performance home PC running Windows 10 can handle three to five lightweight operating systems simultaneously (for example, Windows XP, Android and Lubuntu + the main system). Or two or three relatively heavy ones (for example, the main Windows 10 + virtual Windows 7 and Mac OS X). As you already understand, virtual computer emulator applications allow you to install and run a variety of operating systems on them.

General purpose virtual machines (as opposed to specialized ones, such as the Java VM) use:

  • To run applications that the main system does not support.
  • To protect the system from potential harm from untested programs.
  • As an additional barrier against viruses when visiting dubious web resources.
  • To create an isolated environment for studying the activities of malware.
  • As a testing ground for debugging your own developments.
  • To master network construction technologies.
  • For double authorization on some gaming portals and much more.

And of course, virtual machines are widely used to distribute server work resources.

Today we will not touch on the industrial use of VMs, but will only consider what can be useful to home users of Windows OS.

Oracle Virtualbox

Let's look at the process of creating a new virtual machine and starting to install Windows 10 on it.

  • Click the “Create” button in the top panel.

  • In the first window of the VM creation wizard, we will indicate the name of the OS (it will be displayed in the list of guest systems), its type (Windows, Linux, etc.) and version. In our example, this is Windows 10 32 bit (you can install 64 bit, but it will require more resources). To move to the next step, click Next.

  • Next, we will indicate the size of the VM RAM. By default, Windows 10 x86 is allocated 1 GB, but you can increase this amount by moving the slider to the right. If your PC does not have a lot of RAM, do not give the VM more than 2-3 GB, otherwise the main system will slow down due to lack of memory.

  • Next we create a virtual hard disk. If you are installing the system for the first time, select the “Create new” option.

  • Leave the virtual disk type as default.

  • A storage format is an area on your computer's physical drive that is allocated to a VM. It can have a constant or dynamically expanding volume within the limits that you define further. To save space, we will choose a dynamic format.

  • Next we indicate the name of the volume (virtual disk C) and its size. The default is 32 GB.

  • After clicking the “Create” button in the last window, a new virtual machine will appear in the list. Its parameters are shown in the frame on the right.
  • To proceed to installing Windows, click the “Run” button in the top panel.

  • In the window that opens after this, the “Select boot disk” window will appear. Click on the folder icon and specify the path to the system distribution. This can be an image in .iso format or physical media (DVD, flash drive). After selecting your distribution, click Continue.

  • The further course of installing the OS into a virtual machine is no different from installing it on a physical computer.

Some VM and guest system settings

Clicking on the virtual machine window will capture the mouse cursor (i.e. it will only move within the virtual screen). To return the cursor to the main OS, press the Ctrl+Alt combination.

To access the full range of features of the guest OS, you need to install special add-ons. Go to the "Devices" menu, click "Mount Guest Additions Disk Image" and follow the further instructions.

To connect a folder to the guest system for exchanging files with the main one, click the “Shared Folders” item in the “Devices” menu. Click on the “folder+” icon in the window that opens and use the “path to folder” field to specify it in Explorer (it shows the directories of the main system).

If you want the setting to work permanently, check “Auto-connect” and “Create permanent folder”. The shared folder will be accessible from the virtual machine explorer as a network folder.

To change the order in which boot devices are polled (for example, to boot a virtual machine from a DVD), shut down the guest OS, open its settings (in the main Virtualbox window) and go to the first tab of the “System” section. In the "Load Order" list, select the desired media and press the arrow buttons to move it to the top.

VMware Workstation Pro

Some Hyper-V virtual machine options

To take a snapshot of a running guest OS, open the top menu of its Action window and click Checkpoint. Or press the combination Ctrl+N.

Access to the settings of an individual virtual machine is opened from its context menu in the list of the main manager window and hidden behind the “Settings” button.

Other features of the program are also very simple and can be mastered without much difficulty.