In VMware virtual machines (VMware Workstation or VMware Server) we can run multiple guest OS at the same time, while running multiple VMS simultaneously in the same host OS is bound to severely affect the operating efficiency and performance of the host OS. So how do we optimize the virtual machines to achieve optimal resource utilization? In this article, we introduce 10 kinds of current practice.
1. Increase memory
In my view, increasing memory has a substantially higher performance for both the host OS and the guest OS, and the cost of memory is the cheapest compared to CPU and disk. By adding memory, we can allocate more memory to each virtual machine to prevent the host OS from swapping too much data and resources with the guest OS.
2. Upgrade CPU
Your CPU needs to be able to handle and work with the host OS and multiple guest OS operations, but for any application, a faster CPU will provide a higher rate of operation.
3, upgrade the disk
Upgrading to a faster disk speed can greatly improve virtual machine performance, and you may want to consider a RAID array to improve redundancy and performance (depending on the raid type you choose) when you replace a high-speed hard drive.
4, change the location of the page file storage
Windows automatically retains a small amount of hard disk space for storing Pagefile.sys paging files, and when the system does not have enough physical memory, the virtual memory paging file will be used as a temporary storage space for data and code. By placing virtual memory in a non-system partition, you can also improve the performance of the host OS, as well as the purpose of elevating guest OS performance.
We can change the paging file storage location by right-clicking the computer on the desktop and choosing Properties--click on "Advanced system Settings"--click "Settings" in the performance item on the Advanced tab, select the Advanced tab. The following figure:
5. Distribute virtual disk files to multiple physical hard drives
At any time, we can distribute data across a number of different physical disks for higher disk I/O performance. Of course, this design and thought also applies to VMware. For example, if you test or run SQL Server or Exchange server in your environment, you can store its applications, transaction logs, and database files in 3 different virtual disk files, and then distribute the 3 virtual disk files to 3 different physical hard disks. To obtain higher disk performance. Alternatively, we can use raid on the physical disk to enhance the performance of the virtual machine disk file read and write.
6. Disable the optical drive in VMware
Whenever we turn on, log on, and shut down a virtual machine, Windows and VMware try to read whether the optical drive is a disc, which can affect the performance of the virtual machine to some extent. In particular, VMware will try to read the CD-ROM of the host OS, which can also seriously affect performance, so disabling the CDROM of the virtual machine can also improve its capabilities.
We can uncheck the connected and connect at power-on in VM-> Settings (or ctrl-d). The following figure:
7, Full-screen mode operation virtual Machine
When we do a test, most of the operations are done in the Virtual machine window, and when we operate in a virtual machine in Full-screen mode, we get higher graphics processing performance. To switch the VMware virtual machine to Full-screen mode, you can press the Ctrl–alt–enter key directly and press Ctrl–alt to exit Full-screen mode.
8. Disable visual effects
There are some common visual effects in Windows that make Windows look cool, and the operation and transition of various interfaces is natural. However, in the virtual machine, these visual effects are not very applicable. These visual effects need to use too much CPU and GPU to process, which will slow down the virtual machine to the application processing and execution. As a result, fragmentation suggests that you disable "visual effects" in a virtual machine to achieve a slight performance boost.
The following steps for disabling visual effects in Windows are as follows: Right-click Computer to select Properties--click Advanced System Settings--Select settings in the Performance area--select adjust to best performance on the Visual Effects tab and confirm the. The following figure:
The final fragment also recommends that you disable the screensaver of the virtual machine because it is not necessary ...
9. Organize the virtual machine disk
Like other operating systems, disk files produce a lot of fragmentation after a long run, as are the Guest OS. When we add or delete files in a virtual machine, the virtual disk will also produce a lot of fragmentation over time. To keep the virtual machine disk performance, fragmentation recommends that you defragment the virtual machine disk regularly. I personally recommend using a collation tool such as Diskkeeper, and of course you can use the Disk Defragmenter that Windows brings with it. The following figure:
Keep in mind that the virtual machine operating system also needs to be maintained on a regular basis like the host OS.
10. Install VMware Tools
Installing VMware Tools in a Windows or Linux virtual machine will greatly enhance the performance of the virtual machine. First, we can use SVGA resolution rather than just standard VGA, which obviously enhances the virtual machine graphics and image processing performance. Second, the mouse can be synchronized between the host OS and the guest OS, and you no longer need to use Ctrl-alt to switch the mouse between the host OS and the guest OS, which makes the mouse's use performance and efficiency improved. Finally, you can implement copy, cut, and paste operations between the host OS and the guest OS. The steps to install VMware Tools are also very simple, and you only need to click VM-> Install VMware Tools in the VMware management interface. The following figure:
Summarize
We have outlined 10 ways to improve the performance of VMware Workstation and VMware Server, including software optimization and hardware enhancement and upgrading. With these 10 approaches, you are confident that you can optimize your virtual machines at any time and in a flexible manner, depending on your needs.