虚拟机(Virtual Machine)的速度和性能取决于主机的规格,例如RAM、处理器等。但有时,尽管拥有强大的计算机,但虚拟机(Virtual Machine)运行缓慢。在本文中,我们将描述一些可以帮助您提高虚拟机(Virtual Machine)运行速度的方法。
为什么我的虚拟机(Machine)运行缓慢?
在描述使 VM 更快的方法之前,让我们看看 VM 速度慢的一些原因。
- 主机系统容量。
- 其他正在运行的应用程序。
1]主机系统容量
这是虚拟机(Machine)速度所依赖的主要因素之一。如果你想让你的虚拟机(Machine)顺利运行,你应该有一个强大的主机系统。CPU、RAM和磁盘空间是决定主机系统功能强大的三个主要因素。
虚拟机(Virtual Machine)需要大量的处理能力。因此,主机系统必须具有多核中央处理器。多核CPU可以更好、更流畅地运行虚拟机(Virtual Machine)。
RAM是决定虚拟机(Machine)速度的另一个重要因素。如果您想体验更流畅的虚拟机(Machine)速度,您的系统应该有足够的RAM。VM的最低RAM要求为 16 GB。但是,在某些情况下,8 GB RAM可能会很好。(GB RAM)但是,如果您有 4 GB RAM,即使您关闭了所有其他程序,您在运行 VM 时也会遇到性能问题。
磁盘(Disk)空间是影响虚拟机(Virtual Machine)速度的另一个因素。为了让虚拟机运行更流畅,你应该分配足够的空磁盘空间。为此,您的主机系统应该在磁盘上有足够的空闲空间。
2]主机上运行的其他应用程序
当 VM 在主机上运行时,它会使用其CPU、RAM和磁盘空间。因此,如果您在主机上打开了许多应用程序或软件,您将面临虚拟机(Virtual Machine)的性能问题。为获得 VM 的最佳性能,建议关闭主机上所有正在运行的应用程序或软件。
如何加速VirtualBox 虚拟机(VirtualBox Virtual Machine)
以下方法将帮助您使您的虚拟机(Virtual Machine)运行得更快。
- 安装 VirtualBox 来宾添加。
- 为 VM 分配更多内存。
- 为 VM 分配更多 CPU。
- 增加显存。
1]安装VirtualBox来宾(Install VirtualBox Guest)添加
这是使 VM 运行得更快的最重要的一步。来宾(Guest) 添加(Additions)包含虚拟机平稳运行所需的特殊驱动程序。
以下是安装VB Guest Additions 的步骤:
- 在VirtualBox上启动虚拟机(Virtual Machine)。
- 转到“Devices > Insert Guest Additions CD image”。
- 打开这台电脑。
- 双击“ CD Drive (D): VirtualBox Guest Additions ”打开它。
- 安装“ VBoxWindowsAdditions-amd64。” 如果您的主机系统架构不支持此文件,您将收到错误消息。在这种情况下,请尝试安装其他Guest Additions。
安装完成后,重新启动虚拟机(Virtual Machine)。
阅读(Read):VirtualBox 显示黑屏并且不引导客户操作系统(VirtualBox displays a black screen and not booting guest OS)。
2]为VM分配更多RAM
就像物理计算机一样,VM 的性能也取决于为其分配了多少RAM 。分配给 VM 的内存越多,获得的体验就越流畅。
要增加 VM 中的内存量,请执行以下步骤:
- 启动VirtualBox并选择Virtual Machine。
- 现在,单击设置(Settings)并从左侧选择“系统”。(System)
- 在“主板(Motherboard)”选项卡下,移动滑块以增加RAM。
- 单击确定以保存设置。
请不要越过滑块上的绿色标记,因为它会对您的主机系统健康产生负面影响。如果没有帮助,您应该增加主机上的物理RAM 。
3]为VM分配更多CPU
主机CPU处理运行 VM 所需的所有计算。因此(Hence),如果虚拟机(Virtual Machine)使用更多的CPU,它将运行得更快更流畅。
按照下面列出的步骤为 VM分配更多CPU :(CPUs)
- 启动VirtualBox并选择要为其分配更多CPU(CPUs)的 VM 。
- 单击(Click)设置(Settings),然后选择左侧的系统。(System)
- 在“处理器(Processor)”选项卡下,移动滑块以增加VM的CPU数量。(CPUs)
- 单击确定以保存设置。
请将滑块保持在绿色标记下方。
4]增加显存
如果尽管您的系统上有一个重型显卡(graphics card),您仍然遇到虚拟机速度缓慢的问题,请考虑增加显存。除此之外,启用 3D 加速。
我们列出了以下步骤来执行此操作:
- 在VirtualBox中选择虚拟机(Virtual Machine),然后单击设置。
- 单击左侧的“显示”。(Display)
- 移动“屏幕(Screen)”选项卡下的滑块以增加视频内存。
- 选中“加速(Acceleration)”部分中的复选框以启用 3D 加速。
- 单击确定以保存设置。
希望这篇文章能帮助您加速虚拟机(Machine)。
相关帖子(Related posts):
How to speed up a VirtualBox Virtual Machine and make it run faster
The speed and performance of a Virtual Machine depend on the specifications of the host machine like RAM, processor, etc. But sometimes, despite having a powerful computer, the Virtual Machine runs slow. In this article, we will describe some methods that will help you make your Virtual Machine run faster.
Why is my Virtual Machine running slow?
Before describing the methods to make a VM faster, let’s see some of the reasons for a slow VM.
- Host system capacity.
- Other running apps.
1] Host system capacity
This is one of the major factors on which the speed of a Virtual Machine depends. If you want your Virtual Machine to run smoothly, you should have a powerful host system. CPU, RAM, and disk space are the three major factors that determine how powerful your host system is.
Virtual Machines require a lot of processing power. Therefore, it is mandatory for a host system to have a multicore central processing unit. A multicore CPU can operate the Virtual Machine better and smoother.
RAM is another important factor that determines the speed of a Virtual Machine. Your system should have enough RAM if you want to experience a smoother speed of a Virtual Machine. The minimum RAM requirement for a VM is 16 GB. However, 8 GB RAM can be good in some situations. But, if you have 4 GB RAM, you will face performance issues while running the VM, even if you have closed all other programs.
Disk space is another factor that affects the speed of the Virtual Machine. To make VM run smoother, you should allocate enough empty disk space. For this, your host system should have plenty of empty space on the disk.
2] Other apps running on the host machine
When a VM runs on a host computer, it uses its CPU, RAM, and disk space. Therefore, if you have opened many apps or software on your host computer, you will face performance issues in Virtual Machine. For optimum performance of VM, it is recommended to close all the running apps or software on the host machine.
How to speed up a VirtualBox Virtual Machine
The following methods will help you make your Virtual Machine run faster.
- Install VirtualBox Guest Additions.
- Allocate more memory to VM.
- Allocate more CPU to VM.
- Increase the video memory.
1] Install VirtualBox Guest Additions
This is the most important step to make a VM run faster. The Guest Additions contain special drivers that a Virtual Machine requires to run smoothly.
Following are the steps to install VB Guest Additions:
- Launch Virtual Machine on VirtualBox.
- Go to ‘Devices > Insert Guest Additions CD image.’
- Open This PC.
- Double click on the ‘CD Drive (D): VirtualBox Guest Additions‘ to open it.
- Install ‘VBoxWindowsAdditions-amd64.’ If your host system architecture does not support this file, you will get an error. In this case, try installing the other Guest Additions.
After the installation gets completed, reboot the Virtual Machine.
Read: VirtualBox displays a black screen and not booting guest OS.
2] Allocate more RAM to VM
Just like the physical computer, the performance of a VM also depends on how much RAM is allocated to it. The more memory you allocate to the VM, the smoother experience you will get.
To increase the amount of memory in VM, follow the below-listed steps:
- Launch VirtualBox and select the Virtual Machine.
- Now, click on the Settings and select ‘System‘ from the left side.
- Under the ‘Motherboard‘ tab, move the slider to increase the RAM.
- Click OK to save the settings.
Please do not cross the green mark on the slider as it can have a negative impact on your host system health. If it does not help, you should increase the physical RAM on your host computer.
3] Allocate more CPU to VM
The host machine CPU handles all the calculations required to run a VM. Hence, if the Virtual Machine uses more CPU, it will run faster and smoother.
Follow the below-listed steps to allocate more CPUs to VM:
- Launch VirtualBox and select the VM to which you want to allocate more CPUs.
- Click on the Settings and select System on the left side.
- Under the ‘Processor‘ tab, move the slider to increase the number of CPUs for the VM.
- Click OK to save the settings.
Please keep the slider under the green mark.
4] Increase the video memory
If despite having a heavy-duty graphics card on your system, you still experience the slow speed of VM, consider increasing the video memory. In addition to this, enable 3D acceleration.
We have listed the steps below to do this:
- Select Virtual Machine in VirtualBox and click on Settings.
- Click on the ‘Display‘ on the left side.
- Move the slider under the ‘Screen‘ tab to increase the video memory.
- Select the checkbox in the ‘Acceleration‘ section to enable 3D acceleration.
- Click OK to save the settings.
Hope this article helped you speed up the Virtual Machine.
Related posts: