<p>I'm currently experimenting with build script, and since I have an ASP.net Web Part under source control, my build script should do that at the end:</p>

<ol>
<li>Grab the "naked" Windows 2003 IIS VMWare or Virtual PC Image from the Network</li>
<li>Boot it up</li>
<li>Copy the Files from the Build Folder to the Server</li>
<li>Install it</li>
<li>Do whatever else is needed</li>
</ol>

<p>I have never tried automating a Virtual Machine, but I saw that both VMWare and Virtual Server offer automation facilities. While I cannot use Virtual Server (Windows XP Home :-(), Virtual PC works.</p>

<p>Does anyone here have experience with either VMWare Server or Virtual PC 2007 SP1 in terms of automation?</p>

<p>Which one is better suited (I run windows, so the Platform-independence of VMWare does not count) and easier to automate?</p>

[{'answer_id': 4706, 'author': 'Chris Miller', 'author_id': 206, 'author_profile': 'https://Stackoverflow.com/users/206', 'pm_score': 5, 'selected': True, 'text': '<p>With VMWare, there is the <a href="http://www.vmware.com/support/developer/vix-api/" rel="noreferrer">Virtual Machine Automation APIs (VIX API)</a>.  You can find the reference guide <a href="http://pubs.vmware.com/vix-api/ReferenceGuide/" rel="noreferrer">here</a>.  It works with VMWare Server and WorkStation, but AFAIK it\'s not available for ESX Server.</p>\n\n<p>From the main page for VIX:</p>\n\n<blockquote>\n  <p>The VIX API allows you to write\n  scripts and programs that automate\n  virtual machine operations. The API is\n  high-level, easy to use, and practical\n  for both script writers and\n  application programmers. It runs on\n  VMware Server and Workstation\n  products, both Windows and Linux.\n  Bindings are provided for C, Perl, and\n  COM (Visual Basic, VBscript, C#).</p>\n</blockquote>\n'}, {'answer_id': 5543, 'author': 'Joel Lucsy', 'author_id': 645, 'author_profile': 'https://Stackoverflow.com/users/645', 'pm_score': 2, 'selected': False, 'text': "<p>VirtualBox also has API's for automating their VM's.</p>\n"}, {'answer_id': 115997, 'author': 'warren', 'author_id': 4418, 'author_profile': 'https://Stackoverflow.com/users/4418', 'pm_score': 2, 'selected': False, 'text': "<p>To follow-up to @Chris, ESX is extremely scriptable. A client I've been working with recently has built a web service that launches a VMware script to create the VM they need, then start the VM with a custom boot ISO. That ISO includes all the kickstart or unattend.txt info it needs to do a totally unassisted OS build.</p>\n"}, {'answer_id': 970988, 'author': 'msh', 'author_id': 108098, 'author_profile': 'https://Stackoverflow.com/users/108098', 'pm_score': 2, 'selected': False, 'text': '<p>I agree with Chris. \nVirtual Machine Automation APIs is a very good possibility for automating of virtual machine operations.\nVIX API Version 1.6.2 can be used for automating of ESX guest operations as well.</p>\n'}, {'answer_id': 1065080, 'author': 'dB.', 'author_id': 123094, 'author_profile': 'https://Stackoverflow.com/users/123094', 'pm_score': 3, 'selected': False, 'text': '<p>Use <a href="https://github.com/dblock/vmwaretasks" rel="nofollow noreferrer">https://github.com/dblock/vmwaretasks</a> rather than the raw VixCOM API if you\'re going to do this in C#.</p>\n'}]
['https://Stackoverflow.com/questions/4684', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/91/']