构建自动化、VMWare 服务器 2.0、最终构建器
我在 VMWare Server 2.0 虚拟机中有一个数据库。我在 VM 的 IIS (7) 中也有一个 Web 应用程序。
现在我想从主机执行虚拟机中的一些数据库脚本。 另外,我在虚拟机中有一个 VB 脚本,我想从主机运行它。
我该如何设置这个。如果这对我有帮助,我可以购买 Final Builder。
由于我希望从主机自动执行上述操作,因此我想知道如何执行虚拟机中的数据库和 VB 脚本,但从主机执行它们,以便更新数据库和VM中的IIS(vb脚本)。
谢谢。
I have a database in a VMWare Server 2.0 Virtual machine. I also have a web application in the IIS (7) in the VM.
Now I want to execute some database scripts that are in the VM, from the Host machine.
Also I have a VB script in the VM that I want to run from the Host machine.
How do I go about setting this up. I can buy Final builder if that will help me.
Since I am looking to automate the above from the Host machine, I was wondering what I would have to do to execute the database and the VB scripts that are in the VM, but execute them from the Host machine, so that these update the database and IIS (vb script thing) in the VM.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
最简单的方法是使用可从主机访问的网络连接来配置虚拟机,然后通过网络连接运行脚本,就像您拥有物理机而不是虚拟机一样。如果您的目标是使虚拟机与现有网络和服务器隔离,那么您只需在主机和来宾之间配置一个专用网络并使用它。通过这种方法,您不需要任何额外的软件。
The easiest approach is to configure the VM with a network connection that is reachable from the host machine, and run the scripts across the network connection the same as you would if you had a physical machine instead of a virtual machine. If your goal is to keep the VM isolated from your existing network and servers, then you need merely configure a private network between the host and the guest, and use that. With this approach, you don't need any extra software.
我建议将主机共享附加为网络驱动器,然后使用 vmrun。举个例子:
当然,要安装VmWare Tools。
I'd suggest to attach a host share as a network drive and then use vmrun. Here is an example:
Surely, the VmWare Tools are to be installed.