How can I create virtual machines as part of a build process using MSBuild and MS Virtual Server and/or Hyper-V Server Virtualization?

妖精的绣舞 提交于 2019-12-02 18:21:46

Checkout Powershell Management library for Hyper-V on CodePlex. Some features:

Finding a VM
Connecting to a VM
Discovering and manipulating Machine states
Backing up, exporting and snapshotting VMs
Adding and removing VMs, configuring motherboard settings.
Manipulating Disk controllers, drives and disk images
Manipluating Network Interface Cards
Working with VHD files

You can actually script a fair number of tasks in MS Virtual Server:

http://www.microsoft.com/technet/scriptcenter/scripts/vs/default.mspx?mfr=true

http://msdn.microsoft.com/en-us/library/aa368876(VS.85).aspx

Also Virtual PC guy has got a ton of stuff on his blog about scripting Virtual Server/PC and now Hyper-V here:

http://blogs.msdn.com/virtual_pc_guy/default.aspx

VMware has similar capabilities:

http://www.vmware.com/support/developer/scripting-API/

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!