【发布时间】:2013-03-10 09:03:38
【问题描述】:
我正在使用 XenServer,我正在连接池,获取所有 VM 的列表。 现在我需要登录到虚拟机。 并在所有 VM 上执行一个 exe 文件。 有人知道吗?
谢谢!
connection = new Connection(url);
Session.loginWithPassword(connection, userName, Password, APIVersion.latest().toString());
Map<VM, VM.Record> vms = VM.getAllRecords(connection);
for (VM.Record record : vms.values()){
if (!record.isATemplate){
// now i need somehow to connect with the VM username and password
// now i need to run an exe file.
}
}
【问题讨论】:
标签: java virtual-machine