Windows 虚拟 PC 开发设置?

发布于 2024-07-26 22:15:26 字数 445 浏览 5 评论 0原文

在开发 PC HD 损坏后,我正在考虑让我的开发环境完全基于虚拟 PC。

核心项目是: - XP Pro 32 - IIS - VS2003 - VS2008 - SQL Server 2005 - Office 2003

主要源将驻留在 SVN 中的服务器上,仅在 VPC 上有一个 clocal 副本。 这适用于基于 Windows 的 Web 和桌面开发。

假设主机具有不错的性能并提供硬件虚拟化,这种设置是否存在任何已知的问题,即主要优点和缺点。 有任何性能问题或其他问题导致这是一个好主意还是坏主意?

我想走这条路,这样我就可以创建一个完整的备份 VPC,如果发生故障,可以将其放在新 PC 上,并根据异地工作等需要进行替换或复制到笔记本电脑。 Win7这看起来也可能会更好。

在我们走这条路之前,想得到一些反馈......

After having had a dev PC HD corrupt, I'm considering the idea of making my development environment be fully Virtual PC based.

The core items would be:
- XP Pro 32
- IIS
- VS2003
- VS2008
- SQL Server 2005
- Office 2003

Primary source would reside on a server in SVN with only a clocal copy on the VPC.
This would be for Windows based web and desktop development.

Assuming that the host machine has decent performance and provides for hardware virtualization, are there any known gotchas with such a setup, ie main pros and cons. Any performance issues or other issues that make this a good or bad idea?

I'd like to go this route so I can create a full backup VPC that can be put on a new PC if one fails and is repalced or copied to a laptop as needed for offsite work, etc. With the new Virtual PC features of Win7 this seems like it may be even better goign forward too.

Would like to get some feedback on this before we go down that road...

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

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

发布评论

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

评论(5

ペ泪落弦音 2024-08-02 22:15:26

我不推荐 Virtual PC,因为与 VMWare 相比,其性能相当令人失望。

我在 VMWare WorkstationVMWare Fusion 在 Mac 上运行了很长一段时间,而且运行得很好。 感觉就像您在专用机器上运行一样。

我的建议是:

  • 使用 64 位操作系统作为主机操作系统(Vista x64、Windows 7 64 位、Mac OS X Leopord)
  • 物理机上至少有 6GB RAM
  • 为 32 位虚拟机分配 3GB RAM ,或更多(对于 64 位来宾操作系统)
  • 为来宾操作系统预分配磁盘空间(无自动增长)

另一个优点是,您可以将 VM 从基于 Windows 的 VMWare Workstation 迁移到基于 Mac 的 VMWare Fusion(并且反之亦然)没有任何问题。

I wouldn't recommend Virtual PC because the performance is pretty disappointing compared to VMWare.

I've used a virtual development machine inside VMWare Workstation and VMWare Fusion on Mac for quite a while, and it works very well. It feels as if you're running on a dedicated machine.

My recommendations are:

  • Use a 64-bit OS as your host OS (Vista x64, Windows 7 64-bit, Mac OS X Leopord)
  • Have at least 6GB of RAM on your physical machine
  • Allocate 3GB of RAM to your VM for 32-bit, or more for a 64-bit guest OS
  • Pre-allocate the diskspace for your guest OS (no auto-grow)

Another advantage is that you can take your VM from a Windows-based VMWare Workstation to a Mac-based VMWare Fusion (and the other way around) without any problems.

梦情居士 2024-08-02 22:15:26

我已经在 MS Virtual PC 和 Virtualbox 中运行多个虚拟开发环境两年了。 我主要做 ASP.NET 应用程序,一些解决方案相对较大并且使用大型数据库,我也在虚拟机内运行这些数据库。

我的观察基于此:

  • 由于您提到的原因,这是一个好主意并且效果很好。 大胆试试吧!
  • VM 的 768 兆内存就足够了,但越多越好。
  • 拥有多核 CPU。
  • 为来宾操作系统安装虚拟机添加。 (这基本上就像为“虚拟”硬件安装正确的驱动程序,并且对于性能而言似乎比硬件虚拟化支持更重要)。
  • 如果可能,请打开 VM 磁盘映像
    一个独立的物理磁盘
    主机操作系统。
  • 使用虚拟盒。 它是免费的,并且正在迅速发展。 可能已经是最好的了。
  • 如果能满足以上几点,性能就不是问题了。 多个 Visual Studio 实例、IIS、SQL、Office 都可以正常工作。
  • 当同一来宾操作系统是域/AD 的成员时,运行该来宾操作系统的多个副本是很棘手的。 如果您需要执行此操作,您应该阅读 sysprep.exe 工具。 基本上,您不能只制作虚拟磁盘的副本,您需要采取一些特殊的预防措施。

Virtual PC 非常方便,我入门时也用它,但我不得不说,virtualbox 现在似乎已经超越了它。 一开始有点粗糙,但最后几个版本确实做到了这一点。
Virtualbox 是完全免费的,并且它具有比 VPC2007 更好的功能 - 让我转向的主要因素是对高分辨率的支持。 Virtualbox 在我的 1920x1080 上全屏运行没有问题。

它还可以运行虚拟 PC 映像,因此切换只需安装 virtualbox 并将我现有的虚拟 PC 磁盘添加到其中即可。
另一个好处是,我可以像在旧电脑上一样轻松地在新 Mac 上运行虚拟映像。

恕我直言,商业选择(不再)物有所值。

I have been running multiple virtual development environments in MS Virtual PC and Virtualbox for 2 years now. I am doing mostly asp.net applications, some of the solutions are relatively large and use large databases which I also run inside the VM.

My observations based on this:

  • It is a good idea for exactly the reasons you mention and it works fine. Go for it!
  • 768 megs of ram for the VM is enough, but more is better.
  • Have a Multi-core CPU.
  • Install the virtual machine additions for the guest OS. (This is basically like installing the proper drivers for your "virtual" hardware, and seems to be more important for performance than having hardware virtualisation support).
  • If possible, have the VM disk image on
    a separate physical disk from the
    host OS.
  • Use Virtualbox. It's free, and being developed rapidly. It might already be the best.
  • If you can satisfy the above, performance is no issue. Multiple Visual studio instances, IIS, SQL, Office, works just fine.
  • Running multiple copies of the same guest OS when it is a member of a domain/AD is tricky. If you need to do this you should read up on the sysprep.exe tool. Basically you can't just make a copy of the virtual disk, you need to take some special precautions.

Virtual PC is very convenient and it was what I used for starters, but I have to say that virtualbox seems to have overtaken it now. It was a bit rough in the beginning but the last few versions have really gotten there.
Virtualbox is fully free, and it has better features than VPC2007 - the main one that made me switch was the support for high resolutions. Virtualbox runs fullscreen on my 1920x1080 no problem.

It can also run virtual PC images, so switching was just a matter of installing virtualbox and adding my existing virtual PC disks to it.
An added benefit is that I can run the virtual images just as easily on my new mac as on the old pc.

The commercial options are not (anymore) worth what they cost, IMHO.

一笑百媚生 2024-08-02 22:15:26

您可能需要考虑的一件事是虚拟机内缺乏对多个监视器的支持。 我真的很喜欢使用多台显示器,一台用于我的源,其余的用于所有其他显示器。 据我所知,这在 Virtual PC 中是不可能的。 除此之外,我想不出有什么可以阻止你,这也是我一直在考虑的事情。

问候,

塞巴斯蒂安

One thing you might have to consider is the lack of support for multiple monitors within the VM. I really like using multiple monitors, one for my source, the rest for all the rest. As far as I know, this is not possible in Virtual PC. Aside from that I can't think of anything that should hold you back, it's something I have been considering as well.

Regards,

Sebastiaan

落墨 2024-08-02 22:15:26

Sun 的 VirtualBox 也是一个不错的选择。 我是在具有虚拟化 Ubuntu 开发环境的 Vista 笔记本电脑上写这篇文章的。

Virtual Box 的一大优点是拥有一种无缝模式,在这种模式下,来宾操作系统应用程序窗口仅显示为主机系统上的窗口,并具有单一的公共背景(您有 2 个状态栏 - 一个用于 Windows,一个用于 Linux) 。

Z 顺序不会插值(即所有来宾窗口出现在主机窗口系统中的同一 Z 平面上,并在该平面内具有自己的 Z 顺序),这可能会有点奇怪,但您会习惯的。

如果您需要跨多个环境进行构建,它特别有用。 VirtualBox 正在变得越来越好,我现在拥有一个 OpenSolaris 环境和一个 FreeBSD 环境。

它是免费的,就像啤酒一样,很方便。

VirtualBox from Sun is also a good choice. I am writing this from a Vista laptop with a virtualised Ubuntu dev environment.

One thing that Virtual Box is great for is having a seamless mode in which the guest OS application windows are presented as just windows on the host system, with a single common background (you get 2 status bars - one for Windows and one for Linux).

The Z-orders don't interpolate (ie all guest windows appear on the same Z plane in the host Window system, with their own Z-order within that plane) which can make it a bit odd, but you get used to it.

It is particularly useful if you need to build across many environments. VirtualBox is getting better and I now have an OpenSolaris environment and a FreeBSD one as well.

It is free as in beer which can be handy.

只涨不跌 2024-08-02 22:15:26

实际上,我在 Windows 来宾虚拟机中的 Ubuntu 主机下运行了三个开发环境(以及许多测试环境)——这对于保持事物分离以及能够将测试环境恢复到已知点非常有用。 它也很方便,因为备份是主机上的简单目录副本,您不必担心恢复设置或重新安装应用程序。 等等。

就性能和可用性而言,我更喜欢 VMWare 而不是 Virtual PC(请记住,这是我的观点)。 您不需要 VMWare Workstation 产品来创建虚拟机 - 请查看 EasyVMX 此处 了解更多信息创建简单虚拟机的方法。

但您会错过的一件事是 VMWare 工具,它仅随 Workstation 产品提供,而不随播放器提供。 但 VMWare 可以在此处下载 - 我不确定尽管它是从 VMWare 官方下载的,但您可能只有在拥有付费产品的情况下才能使用它的合法性。

我实际上有 Workstation 的许可证,它只是一个早期版本,我更喜欢最新的 Player。

I actually run three development environments (and many test environments) under Ubuntu host in Windows guest virtual machines - it's very good for keeping things separated and for being able to restore test environments to a known point. It's also handy since the backup is a simple directory copy on the host and you don't have to worry about recovering settings or re-installing applications. etc.

I prefer VMWare over Virtual PC for both performance and usability (keep in mind that's my opinion). You don't need the VMWare Workstation product to create a VM - check out EasyVMX here for a way to create easy VMs.

The one thing you'll miss though is VMWare tools which only comes with the Workstation product, not the player. But VMWare has this for download here - I'm unsure of the legality of this even though it's an official download from VMWare, you may only be able to use it if you have the paid product.

I actually have a license for Workstation, it's just an earlier version and I prefer the latest Player.

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