构建自动化、VMWare 服务器 2.0、最终构建器

发布于 2024-08-06 02:01:48 字数 272 浏览 17 评论 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 技术交流群。

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

发布评论

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

评论(2

所有深爱都是秘密 2024-08-13 02:01:48

最简单的方法是使用可从主机访问的网络连接来配置虚拟机,然后通过网络连接运行脚本,就像您拥有物理机而不是虚拟机一样。如果您的目标是使虚拟机与现有网络和服务器隔离,那么您只需在主机和来宾之间配置一个专用网络并使用它。通过这种方法,您不需要任何额外的软件。

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.

痴骨ら 2024-08-13 02:01:48

我建议将主机共享附加为网络驱动器,然后使用 vmrun。举个例子:

    vmrun -T server -h https://hostname:8333/sdk -u root -p mypassword -gu administrator -gp guestpaswd 
  runProgramInGuest "[Vol1] win2008-1/win2008-1.vmx" -activeWindow "c:\windows\system32\cmd.exe"

当然,要安装VmWare Tools。

I'd suggest to attach a host share as a network drive and then use vmrun. Here is an example:

    vmrun -T server -h https://hostname:8333/sdk -u root -p mypassword -gu administrator -gp guestpaswd 
  runProgramInGuest "[Vol1] win2008-1/win2008-1.vmx" -activeWindow "c:\windows\system32\cmd.exe"

Surely, the VmWare Tools are to be installed.

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