简体   繁体   English

实验室管理版本定义恢复到快照,但虚拟机已停止

[英]Lab Management build definition restores to a snapshot but the VM is stopped

I'm trying to work out an automated Build-Deploy-Test workflow using Lab Management/VS 2010 and everything is working ok... except for one small thing. 我正在尝试使用Lab Management / VS 2010制定一个自动化的“构建-部署-测试”工作流,并且一切正常,除了一件小事。

In my build definition, within the process>environment I set a snapshot that I want the environment to be reverted to before deploying, and this works fine, but when the snapshot is reverted to, the environment is stopped but not restarted. 在我的构建定义中,在process> environment中,我设置了一个快照,该快照希望在部署之前将环境还原到该快照,并且可以正常工作,但是当将快照还原为快照时,该环境将停止,但不会重新启动。

What results is that the build waits indefinitely for the workflow capability to be available on the environment. 结果是该构建无限期地等待工作流功能在环境中可用。

A temporary fix is to just watch and wait for the enivonment to be stopped, and then to start it manually and everything will proceed as expected... but this is hardly ideal. 临时的解决方法是只观察并等待该事件停止,然后手动启动它,一切都会按预期进行...但是这并不理想。

This is happening to everyone on my team, and none of us have come across a solution. 我们团队中的每个人都在发生这种情况,我们都没有一个解决方案。 Has anyone else seen this and solved it? 还有其他人看到并解决了吗?

You'll want to take the "Initial Snapshot" when the VM is actually turned on. 当虚拟机实际打开时,您将需要获取“初始快照”。 You can do that, or you can customize the Lab default build process template and include a StartEnvironment workflow activity after the restore snapshot phase. 您可以执行此操作,也可以自定义Lab默认的构建过程模板,并在还原快照阶段之后包含StartEnvironment工作流活动。

My suggestion would be to just take the snapshot when the VMs are turned on though. 我的建议是在打开虚拟机时仅拍摄快照。 That's the way I have always ended up doing it. 那就是我一直都这样做的方式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM