Tuesday, August 16, 2011

Oracle VM Virtualbox - Remote Administration

Been looking for a solution to remote manage Virtualbox vm's. After searching found the right solution :) phpVirtualBox - http://code.google.com/p/phpvirtualbox/

Easy to install & configure. Had few issues with console window being greyed out and to fix that had to install virtualbox extension pack.

Steps :-
1- Download install Xamp
2- Download and unzip phpVirtualbox in c:\Xamp\htdocs\ (I dumped mine in virtualbox folder)
3-Change config.php-example to config.php and edit following:-
  • /* Username / Password for system user that runs VirtualBox */
    • Here put in username for the user which is logged into Virtualbox Host Machine. Since I was on domain I tried putting username as "domain\ijaved". However, that does not work so just strip the domain keep username only. i.e. ijaved
      Put password in the password field.
  • /* SOAP URL of vboxwebsrv (not phpVirtualBox's URL) */
    • Here you put the ip address of the VirtualBox host server. You have to run VboxWebSrv.exe on that server in able to connect to the server.
  • // Host / ip to use for console connections
    • Here give the ip address of the VirtualBox host server.
Install VirtualBox extension pack on the VirtualBox host server to make sure you can use the console. Restart both VirtualBox host and Xamp server just to make sure.. mine didnt work without restart.

Now you should point to the Xamp server ip address with /virtualbox (should be same folder name you used to unzip)

Default username and password is admin / admin. You can change it if you want in the config.php file.

You should be able to see your host and virtual machines once you log in.

I haven't tried multiple server configuration yet. But when I do I will let you guys know.

JI

No comments:

Post a Comment