Hello,
heres a manual to add PHPVirtualbox to Zentyal Server
then you are able to manage your VirtualBox VM`s in a browser
First we add the Virtualbox repository & key
see (
https://www.virtualbox.org/wiki/Linux_Downloads)
open a terminal and do:
sudo -s
echo "deb http://download.virtualbox.org/virtualbox/debian lucid contrib non-free" >> /etc/apt/sources.list
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | apt-key add -
apt-get update && apt-get upgrade
Virtualbox
I use the version 4.1 - found there
https://www.virtualbox.org/wiki/Downloadsapt-get install virtualbox-4.1 && apt-get install dkms
optional (remove old Packages)
apt-get autoremove
exit
Now install the VirtualBox extension pack
https://www.virtualbox.org/wiki/Downloadscd ~/Downloads
(Points you in your Username/Downloads Folder)
wget http://download.virtualbox.org/virtualbox/4.1.20/Oracle_VM_VirtualBox_Extension_Pack-4.1.20-80170.vbox-extpack
sudo VBoxManage extpack install ./Oracle_VM_VirtualBox_Extension_Pack-4.1.20-80170.vbox-extpack
Now install PHPVirtualBox
http://code.google.com/p/phpvirtualbox/downloads/listwget http://phpvirtualbox.googlecode.com/files/phpvirtualbox-4.1-8.zip
sudo unzip -q phpvirtualbox-4.1-8.zip -d /var/www/
sudo mv /var/www/phpvirtualbox-4.1-8/ /var/www/phpvirtualbox
Now, copy & edit the PHPVirtualBox config file
sudo cp /var/www/phpvirtualbox/config.php-example /var/www/phpvirtualbox/config.php
My Username: Gandalf
My Password: gollum
Remember: My Username have the permissions to run the VirtualBox VM - Normally its your Zentyal login & password
sudo nano /var/www/phpvirtualbox/config.php
search following lines and replace with your username & password
/* Username / Password for system user that runs VirtualBox */
var $username = 'Gandalf';
var $password = 'gollum';
Optional:
/* Console tab keyboard layout. Currently Oracle's RDP client only supports EN $
var $consoleKeyboardLayout = 'DE';
and replace with your needs, default is EN
save & exit with strg&x + y
now configure the vboxwebsrv autostart with a initscript
download it
wget http://phpvirtualbox.googlecode.com/files/vboxwebsrv
now edit the downloaded for vboxwebsrv and replace the username with yours
for me it looks like this
nano vboxwebsrv
NAME=vboxwebsrv
SCRIPTNAME=/etc/init.d/$NAME
USER=Gandalf
save & exit with strg&x + y
now move the script to the right place and give the permissions
sudo mv ./vboxwebsrv /etc/init.d/
sudo chown root:root /etc/init.d/vboxwebsrv
sudo chmod +x /etc/init.d/vboxwebsrv
update init (autostart)
sudo update-rc.d vboxwebsrv defaults
now you can access PHPVirtualBox in your browser
http://yourserver/phpvirtualboxusername: admin
password: admin
Change it after first login
File - change passwort
now you can enable the remote display
i connect with linux with rdesktop
sudo apt-get install rdesktop
simple connect on a shell with
rdesktop yourserverip:remotedesktopport
dont forget to open the rdp port in the zentyal firewall settings
Programm versions:
Zentyal Core version 2.2.7
virtualbox-4.1-8-
Oracle_VM_VirtualBox_Extension_Pack-4.1.20-80170.vbox-extpack
phpvirtualbox-4.1-8.zip
References:
http://www.heise.de/open/artikel/Toolbox-Virtualbox-im-Browser-mit-phpVirtualbox-1668019.htmlhttps://www.virtualbox.org/wiki/Linux_Downloadshttp://code.google.com/p/phpvirtualbox/downloads/listhttps://www.virtualbox.org/wiki/Licensing_FAQthat's it, thanks for the attention