English 中文(简体)
How do you manage your Virtual Machines for isolated development?
原标题:

I m trying to establish a best practice for Virtual Machines for developers. Currently we work on Windows 7 with Visual Studio 2008. However, we need to experiment with VS2010 and to do this we create Win7 VM s and load what we want in there.

My technique is to create a new VM, in this case a Win7 VM, and once it s gone through all it s updates etc. take a copy of it for the next time I need the same type of VM. I used one copy to test in and then eventually abandon or delete it once I ve made it unstable enough and go back and make a copy of the original. However, I find that there were lots of small utilities and enhancements that I d made to the previous working VM that I had never installed in the virgin VM and have to install all of those again.

I m looking for a best practice in using VM s for software development.

最佳回答

VMWare has a great snapshot manager that lets you move non-destructively through a VM snapshots tree. You can take snapshot at point A and then advance the VM to point B (another snapshot), revert to A and advance to C (snapshot C). Then start a new sub-tree in a non-destructive manner at any of those points. You can also clone a VM and flatten multiple snapshots to a single snapshot as well as delete intermediate snapshots and prune branches on the tree.

It s very intelligent how it handles snapshots. I used Virtual Box when it only had linear destructive snapshot reversion -- I understand that VBox has improved but VMWare still has it beat for snapshot capabilities.

Also, if you re debugging in a VM, VMWare has extensions to record a VM s execution for debugging as well.

问题回答

Given that you aren t able to keep things ordered and have a list of enhacements (the ideal thing to do IMO), why not simply have two VMs, one where you work, and the other virgin . Then, when you or anybody else does an enhancement on your work VM, it has to be replicated on the virgin VM. Next time you or anybody else installs a new copy of the VM, after some iterations you ll have the perfect virgin version .





相关问题
How to speed up Visual Studio 2008? Add more resources?

I m using Visual Studio 2008 (with the latest service pack) I also have ReSharper 4.5 installed. ReSharper Code analysis/ scan is turned off. OS: Windows 7 Enterprise Edition It takes me a long time ...

Trouble with VS.PHP installing it s own Apache server

I tried installing VS.PHP some time ago. I was intent on seeing how it works with my current setup. I immediately encountered trouble: none of my sites wanted to render. On windows, I m using WAMP ...

Jquery and Intellisense in VS 2008 with hotfix and SP1

I followed Scott Guthrie s instructions as outlined at http://weblogs.asp.net/scottgu/archive/2008/11/21/jquery-intellisense-in-vs-2008.aspx but no avail: intellisense still doesn t work. Any tips?

Fixing "error C2065: undeclared identifier"

First off, I m completely out of my depth here. So the question might be the wrong one to ask, but here goes... As per the accepted answer to this question, I m trying to compile the bindings for the ...

View whitespace in VS2008

After Jeph most recent post: http://www.codinghorror.com/blog/archives/001310.html, I thought to myself it would be fun to see if any of my code has those trailing whitespaces. So I open Visual ...

热门标签