设置用于开发的虚拟机的最佳方法(关于性能)

发布于 2024-08-26 05:58:51 字数 836 浏览 7 评论 0原文

我正在尝试设置一个干净的虚拟机,我将在我的许多开发人员中使用。希望我会多次、长时间地使用它,所以我想正确设置它并设置它,以便性能尽可能好。我搜索了要做的事情列表,但奇怪的是只找到了较旧的帖子,而这里却没有。

我的要求是:

  • 我的主机是Vista 32b,来宾是Windows2008 64b,使用Vmware Workstation。
  • VM 还应该能够在 Vmware ESX 上运行,
  • 我无法迁移到其他产品(VirtualBox 等),但欢迎了解有关每个产品性能的信息以供参考。无论如何,我想大多数建议都适用于其他操作系统和其他虚拟机产品。
  • 我需要与 LAN 的网络连接
  • 开发/测试时,来宾将运行多个 java 进程、数据库并执行一些文件 I/O

    到目前为止我发现的是:

    1. HOWTO:充分利用虚拟 PC 的性能 :这是一篇旧文章,关于 Virtual PC,但我想大多数内容仍然适用(并且也适用于 vmware)。
    2. 我想禁用所有不必要的服务会有所不同,但是 中提到的服务1 似乎太少了,我总是专门禁用 Windows 搜索。我应该禁用其他任何服务吗?

I am trying to set up a clean vm I will use in many of my devs. Hopefully I will use it many times and for a long time, so I want to get it right and set it up so performance is as good as possible. I have searched for a list of things to do, but strangely found only older posts, and none here.

My requirements are:

  • My host is Vista 32b, and guest is Windows2008 64b, using Vmware Workstation.
  • The VM should also be able to run on a Vmware ESX
  • I cannot move to other products (VirtualBox etc), but info about performance of each one is welcomed for reference. Anyway I guess most advices would apply to other OSs and other VM products.
  • I need network connectivity to my LAN
  • When developing/testing, guest will run several java processes, a DB and perform some file I/O

    What I have found so far is:

    1. HOWTO: Squeeze Every Last Drop of Performance Out of Your Virtual PCs: it's and old post, and about Virtual PC, but I guess most things still apply (and also apply to vmware).
    2. I guess it makes a difference to disable all unnecessary services, but the ones mentioned in 1 seem like too few, I specifically always disable Windows Search. Any other service I should disable?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

与之呼应 2024-09-02 05:58:51

您可以尝试通过 vLite 运行 CD/DVD 以删​​除不需要的垃圾。我不能 100% 确定是否支持 Windows 2008 服务器,但您可以尝试一下。我已经使用 nLite 成功地将 XP 缩减到大约 200MB,仅包含测试软件所需的最低限度。您也许可以使用 vLite 执行类似于 Windows 2008 的操作。

You can try to run the CD/DVD through vLite to remove unwanted crap. I'm not 100% sure if Windows 2008 server is supported but you could give it a try. I've successfully stripped down XP with nLite to about 200MB with only the bare minimum I need for testing software. You might be able to do something similar to Windows 2008 with vLite.

筱武穆 2024-09-02 05:58:51

我的主机是 Vista 32b,访客是
Windows2008 64b,

第一个错误。说真的,为什么不在 Vista 上运行 64 位呢?这将为您的 VM 提供良好的内存空间来使用,而现在即使可以使用 VmWare,它也会在 Windows 层中经历非常令人讨厌的 API。

那为什么要使用 Vista 作为主机呢?为什么不直接加载 2008 R2 主机,将其配置为工作站模式(哎呀,如果您安装了服务器默认省略的所有内容,您甚至可以获得我们友好的 AERO)并对此感到满意?

我想这会有所不同
禁用所有不必要的服务,

嗯,认真的吗?我在物理域控制器上运行了几个 Hyper-V 托管服务器,无需任何重新配置​​,并且性能足够好(即很棒)。帮助我没有典型的工作站瓶颈(即一个超载的硬盘)。我从来没有找到理由禁用任何服务来挤出最后的性能。

Guest 会运行许多 java 进程,一个
DB 并执行大量文件 I/O

好吧,为此获取适当的硬件。即一个硬件 RAID 控制器和大量驱动器 - 根据您的需要。 DB 对 IO 敏感。非常敏感。

My host is Vista 32b, and guest is
Windows2008 64b,

First mistake. Seriously, why not running 64 bit even on Vista? This would give your VM a good memory space to work with, while now even if it is possible with VmWare it goes through really nasty API's in the Windows layer.

That said, why use Vista as host? Why not directly load a 2008 R2 host, configure it into workstation mode (heck, you even get our friendly AERO if you install all the things the server leaves out per default) and be happy with it?

I guess it makes a difference to
disable all unnecessary services,

Hm, seriously? I run a couple of Hyper-V hosting servers on top of physical domain controllers without any reconfiguration and with good enough (i.e. great) perforamnce. Helps I dont ahve the typical workstation bottleneck (i.e. one overloaded hard disc). I never found a reason to disable any service for squeezing the last performance out.

Guest will run many java processes, a
DB and perform lots of file I/O

Well, get proper hardware for that. I.e. a hardware RAID controller, and a LOT of drives - in accordance with your needs. DB is IO sensitive. VERY sensitive.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文