All posts filed under: VirtualBox

Managing VirtualBox using PowerShell – Part 1: Introduction to COM objects

The VirtualBox is a nice piece of work by the people at Sun and the community around it. I started using this especially because it lets me run x64 OS for my SharePoint 2010 demo virtual machines. VMWare Workstation can also do this but I found VirtualBox to be an easier one to use. I love VirtualBox’s seamless mode too.    VirtualBox supports COM API and also has a command-line tool called vboxmanage.exe. However, automating using the command-line requires lot of text parsing, unnecessary coding and that is not fun. So, I started experimenting a bit with VirtualBox COM API and found that it is rather easy to program that in PowerShell. I wrote a few scripts to complement my existing OS VM / SharePoint deployment automation. I will start sharing those scripts here. The end goal is to generate a PowerShell wrapper that can be used even from a remote machine to manage VirtualBox virtual machines.    VirtualBox COM Objects    When you install VirtualBox on a Windows computer, you will find three COM objects in the …