通过对虚拟磁盘进行碎片整理来提高VMware VM性能

Have you noticed your VMware virtual machines sees like they’re sluggish and slow to respond?  Here’s how you can quickly defragment your virtual disks to make them fast as they were originally.

您是否注意到您的VMware虚拟机看上去很呆滞且响应速度很慢? 您可以通过以下方法快速对虚拟磁盘进行碎片整理,以使其恢复到原来的速度。

Just like a hard drive on a normal computer, the virtual hard drive on a virtual machine can become defragmented over time.  In fact, if your virtual disk is setup to dynamically expand over time, then fragmentation can become a serious problem, especially if your hard drive is low on free space.  You may notice your virtual machines running slower or being less responsive, and VMware itself may even notify you that your virtual disk is too fragmented.

就像普通计算机上的硬盘驱动器一样,虚拟机上的虚拟硬盘驱动器会随着时间的推移而进行碎片整理。 实际上,如果将虚拟磁盘设置为随时间动态扩展,则碎片会成为一个严重的问题,尤其是在硬盘驱动器的可用空间不足的情况下。 您可能会注意到您的虚拟机运行速度较慢或响应速度较慢,VMware甚至可能通知您您的虚拟磁盘碎片过多。

Here’s what you’ll need to do.  First, while your virtual machine is running, run the default disk defragmenter as normal inside the virtual machine.  This may take some time if you haven’t done it in a while, and may also slow your whole computer down while it’s running.

这是您需要做的。 首先,在虚拟机运行时,在虚拟机内正常运行默认磁盘碎片整理程序。 如果您有一段时间没有这样做,可能会花费一些时间,并且可能在整个计算机运行时使其速度变慢。

image

Once the virtual machine’s OS has finished defragmenting, shut down the virtual machine.  Then, open your VMware virtual disk properties.  To do this in VMware Workstation, double-click on the Hard Disk info on the virtual machine’s main page.

虚拟机的操作系统完成碎片整理后,请关闭虚拟机。 然后,打开您的VMware虚拟磁盘属性。 要在VMware Workstation中执行此操作,请双击虚拟机主页上的“硬盘信息”。

sshot-2010-10-07-1-15-12-08

Alternately, if you’re using VMware Player, right-click on the virtual machine’s name and select Virtual Machine Settings.

或者,如果您使用的是VMware Player,请右键单击虚拟机的名称,然后选择“ 虚拟机设置”

image

Then select the Hard Disk entry from the Hardware tab if it’s not already selected.  If your virtual machine has multiple virtual disks, you may wish to repeat these steps on each virtual disk.

如果尚未选择,请从“ 硬件”选项卡中选择“硬盘”条目。 如果您的虚拟机具有多个虚拟磁盘,则可能希望在每个虚拟磁盘上重复这些步骤。

image

Click the Utilities button

单击实用程序按钮

image

VMware will start defragmenting your virtual disk.  This may take a while depending on your virtual machine’s size and how often you defragment it.

VMware将开始对虚拟磁盘进行碎片整理。 这可能需要一段时间,具体取决于您的虚拟机的大小以及对其进行碎片整理的频率。

image

Once it’s done, you’ll be notified that the defragment is completed.

完成后,将通知您碎片整理已完成。

image

To improve performance even more, you should also regularly defragment your host computer’s hard drive.  This is not much of a problem in Windows 7 and Vista since they automatically keep your hard drive defragmented, but if you’re using XP, you might want to setup automatic disk defragmenting.  Alternately, if you’d like more defragmenting control, you can always run the defrag command in an elevated command prompt for a wide range of analysis and defrag options.

为了进一步提高性能,您还应该定期整理主机硬盘的碎片。 在Windows 7和Vista中,这并不是什么大问题,因为它们会自动对硬盘驱动器进行碎片整理,但是如果您使用的是XP,则可能需要设置自动磁盘碎片整理 。 或者,如果您希望进行更多的碎片整理控制,则始终可以在提升的命令提示符下运行defrag命令,以进行各种分析和碎片整理选项。

image

Most of us don’t think much about defragmenting virtual machines, but it can seriously improve your virtual machines’ performance.  We’re big fans of the free VMware Player, and if you have more advanced needs, VMware Workstation is a great option as well.  The great thing is, no matter which one you’re using, you can still keep your virtual machines running at top speed with a quick defrag.  If you’d like more info about VMware desktop virtualization products, check out some of our article below:

我们大多数人对虚拟机进行碎片整理的想法并不多,但是它可以严重改善虚拟机的性能。 我们是免费VMware Player的忠实拥护者,如果您有更高级的需求,VMware Workstation也是一个不错的选择。 很棒的事情是,无论使用哪一个,都可以通过快速碎片整理使虚拟机保持最高速度运行。 如果您想了解有关VMware桌面虚拟化产品的更多信息,请查看下面的一些文章:

Run XP Mode on Windows 7 Without Hardware Virtualization with VMware Player

使用VMware Player在没有硬件虚拟化的Windows 7上运行XP模式

为Windows 7家庭版和Vista创建XP模式 (Create an XP Mode for Windows 7 Home Versions & Vista)

Run Ubuntu in Windows 7 or Windows in Ubuntu with VMware Player

在Windows 7上运行的Ubuntu在Ubuntu的Windows与VMware播放器

翻译自: https://www.howtogeek.com/howto/31303/improve-vmware-vm-performance-by-defragmenting-virtual-disks/

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值