通过主机操作系统与VM对话
我这里有一个 Windows 分发服务器,它运行 ANT 任务来构建企业软件。我需要做的是让 ANT 任务复制并运行 VM 映像 (Linux),然后...通过主机操作系统(通过 ant 任务本身)与该 Linux VM 通信。我们需要能够向它发送文件和/或命令。
有没有切实可行的方法来解决这个问题?我知道我们已经有一种方法可以向同样运行 Windows 的虚拟机发送命令(即 Windows-Windows 交互)——但是有没有办法进行 Windows-Linux 交互呢?
I have here a Windows distribution server that runs an ANT task to build enterprise software. What I need to do is to have the ANT task copy and run a VM image (Linux), and then...talk to that Linux VM through the host operating system (through the ant task itself). We need to be able to send files and/or commands to it.
Is there a practical way to go about this? I know that we already have a way to send commands to VMs that are also running Windows (so windows-windows interaction) -- but is there a way to do a windows-linux interaction?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我已经实现了你想要的东西。当然,出于我自己的目的,然后通过谷歌搜索关键字“vmware”和“ant”发现了这个问题。
https://github.com/zhuravlik/ant-vix-tasks
这是任务集让 Ant 管理 VMWare VM。
它通过 VIX API 工作,因此 Linux 客户机应该受其支持。
不过,我没有使用 VMWare Server 对其进行测试。仅适用于工作站。
但 API 是通用的,所以它应该可以工作。
I've implemented the thing you wanted. Of course, for my own purposes, and then just found this question by googling on keywords "vmware" and "ant".
https://github.com/zhuravlik/ant-vix-tasks
This is the taskset for Ant to manage VMWare VMs.
It works via VIX API, so Linux guests should be supported by it.
I did not test it with VMWare Server, though. Only with Workstation.
But the API is common, so it should work.
使用 ssh 可能是最简单的。为此有一个 ant 任务。 Scp 任务 也可以复制文件
Using ssh is probably the simplest. There is an ant task for that. Scp task is also there to copy files
这取决于您需要做什么,但是:
可能有几十种选择。
It will depend on what you need to do, but:
There are probably dozens of options.