在虚拟机内部设置开发环境 [英] Setting up a development environment INSIDE a virtual machine

查看:60
本文介绍了在虚拟机内部设置开发环境的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在这里出现问题。我使用三种不同的机器进行开发。我的伴侣正在使用两个。我们必须在所有五台计算机上执行相同的怪胎设置程序才能上班。

Heres the problem. I use around three different machines for development. My partner is using two. We have to go through the same freaking set up procedure on all five machines to get to work.

在此处使用php项目,因此:
安装并配置,PDT,PHP调试器和某些版本的XAMPP。
然后可能会安装svn客户端和任何其他工具。

Working with a php project here, so: Install and configure, PDT, a php debugger, and some version of XAMPP. Then possible install an svn client, and any other tools.

同样,要对五台计算机中的每台计算机进行安装。

Again, to each of the five machines.

相反,如果我们在与生产服务器具有相同堆栈,相同版本的虚拟机中完成了所有这些操作,该怎么办?然后,我们每个人都可以获取VM映像的副本,在五台计算机上的每台计算机上运行该映像,并在该VM中进行所有开发。

What if, instead, we did all of this once, in a virtual machine that is set up with the same stack, same versions, as the production server. Then each of us could grab a copy of the VM image, run that image on each of the five machines and do all of our development in that VM. Put Eclipse, apache, mysql, the works, all in that vm.

此方法的唯一缺点是性能,请把我的问题纠正一下。这真的是一个大问题吗?在这五款中最慢的机器是搭载Intel Atom 1.6 ghz处理器的Samsung NC10。

The only negative of this approach, and please correct me on the only part, is performance. Is it really that big of an issue though? The slowest machine out of the five is a Samsung NC10 powered by an Intel Atom 1.6 ghz processor.

您是否认为这是可能的并且实际可用?还是我疯了?

Do you think this is possible and practically usable? Or am I crazy?

推荐答案

我使用VM进行开发(在笔记本电脑上运行)并且从未遇到性能问题。您可以采用的另一种方法是在所需状态下对驱动器进行映像。在需要时,使用Acronis或Ghost重新镜像每台计算机。在任何现代PC上还原映像只需大约5-10分钟。

I use a VM for development (running on my laptop) and have never had performance problems. Another approach that you could take would be to image the drive in the state that you want. Use Acronis or Ghost to re-image each machine when you need to. Only takes about 5-10 minutes to restore an image on any modern PC.

这篇关于在虚拟机内部设置开发环境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆