构建专用的 Visual Studio 2010 虚拟机,哪条路径阻力最小?
我想问一下在 VirtualBox 或 VMware 中构建过虚拟化 VS2010 环境的人,哪一个能够开箱即用,无需太多调整?或者两者都需要解决方法才能让东西正常工作?
I'd like to ask anybody who has built a virtualized VS2010 environment in VirtualBox or VMware, which one was able to work out of the box without too much tweaking? Or both need workarounds to get stuff working?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
只要安装为来宾操作系统提供的相应工具和驱动程序,两者都可以
如果您使用的是 VMWare Workstation,则可以通过在主机 PC 上安装 Visual Studio 来充分利用该环境,并使用来宾虚拟机进行调试,如果您的应用程序崩溃,您实际上可以回退到崩溃之前,并使用崩溃之前相同的堆和堆栈单步执行代码!
基本上,我建议使用 VMWare Workstation。它非常便宜(假设您通过编程获得报酬),并且具有许多您会喜欢的很棒的功能。然而,如果您是一名业余爱好者/学生程序员,您可能会发现 VirtualBox 比免费的 VMWare Player 功能更强大一些。
就性能而言,自 2005/2006 年起,Intel 和 AMD 都分别推出了带有硬件虚拟化的芯片。这称为 VT-x 或 AMD-V,通常必须在旧机器的 BIOS 中启用。
基本上,这意味着您的 BIOS 处理该芯片上的内存和 I/O 虚拟化,同时安装专业驱动程序(例如 VMWare Tools)以提高图形和鼠标性能 - 这实际上意味着生成的 VM 具有接近本机的性能,并且开销最小。
希望有帮助!
Both are fine as long as you install the respective tools and drivers provided for the guest OS
If you're using VMWare Workstation, you can leverage even more out of the environment by installing Visual Studio on the Host PC, and using the Guest VM for debugging, if your application crashes you can actually rewind back to before the crash and step through your code with the same heap and stack before it crashed!
Basically, I suggest going with VMWare Workstation. It's pretty cheap (assuming you get paid to program) and has many, many awesome features that you'll come to love. If you're a hobbyist/student programmer however, you'll likely find VirtualBox to be a little more functional than the free VMWare Player.
As far as performance goes, Intel and AMD both have shipped chips with hardware virtualization since 2005/2006 respectively. This is called VT-x or AMD-V, and often has to be enabled in the bios on older machines.
Basically this means that your BIOS handles Memory and I/O virtualization on this chip, while specialist drivers (e.g. VMWare Tools) are installed to improve graphics and mouse performance - effectively this means the resulting VM has near native performance with minimal overhead.
Hope that helps!
您可以毫无问题地使用 VS2010/Windows 虚拟化环境。
我曾经使用过这样的组合,并且没有遇到任何问题。 VMWare 和 VirtualBox 多年来都很稳定,Windows 操作系统虚拟化也能正常运行。
显然,您可能会遇到性能损失,因为虚拟化操作系统比主机操作系统对资源的访问有更多瓶颈,但目前 Intel 和 AMD 的 CPU 具有高级虚拟化指令扩展,可以加速虚拟化操作。
所以... 继续吧!
You can work with a VS2010/Windows virtualized environment with no problems.
I've worked with such combination and I had no problems. Both VMWare and VirtualBox are stable so far since years and Windows OS virtualization works properly.
Obviously, you can have performance loss, because a virtualized OS has more bottle necked access to resources than a host one, but current CPUs from Intel and AMD have advanced virtualization instruction extensions which accelerates virtualization operations.
So... Just go ahead!
我不知道你的要求,但使用 Win 7 也有一个很好的选择。
您可以创建一个 vhd 文件并在该 vhd 文件上启动。
再执行几个步骤,您就可以创建一个包含您需要的所有内容的基本 vhd 文件,将其标记为只读,并根据需要创建任意数量的差异磁盘。
这种方法的缺点是:
但至少,性能会比虚拟化软件好得多。
I don't know your requirement but there is also a great alternative using Win 7.
You can create a vhd file and boot on the vhd file.
A few steps more, you can create a base vhd file with everything you need, mark it as readonly and create as many differential disk as you want.
The drawback of this method are these ones :
but at least, the performance will be greatly better than a virtualization software.