- To install the packages using zypper
- Download the package using the wget utility while your are a normal user in your home directory
- Unpack that zip file using unzip into your public_html directory.
- Rename that file to just phpvirtualbox
- Now rename the php file
- Edit that config.php file and put the name of the user which uses virtualbox and the corresponding line and do it like this.
var $username = 'jetchisel';
var $password = 'mypassword';
var $ location = 'http://127.0.0.1:18083';
var $consoleHost = 'IP ADDRESS OF YOUR COMPUTER';
- Start apache2, as root
- 12.1 and up use:
This should open port 80 for http, a simple nmap localhost before and after you run that command will tell you if the port is open or not. If if does not open it, you can use yast2 firewall to open the port manually as shown below.
- Start vboxwebsrv as a normal user.
- Check if vboxweb is indeed running.
grep vboxwebsrv < <(ps aux)
1000 3284 0.1 0.2 562672 6056 ? Sl 17:04 0:01 /usr/lib/virtualbox/vboxwebsrv -b
- Use pgrep to check the pid of vboxwebsrv.
pgrep -x vboxwebsrv -u "$EUID"
- On your browser put the following address, just don't put my nick in there :-) replace it with your own.
username = admin
password = admin
You can run this command rdesktop-vrdp -xl -z localhost:3389 to access your vm once it is running since all the vms that will start from this web interface is headless.The port 3389 is the default settings in vbox once you have done it on the settings, but you can always change it to whatever port you want.
The good thing is that there is a built in console button at the right end corner of the web interface which you can use to connect also :-) .
You can try to access phpvbox from within your lan provided that you have open http port on the firewall. You can stop the firewall completely as root run
- 12.1 and up use:
- Other versions use
Change the port as well
If you get an error that say's cannot connect to vboxwebsrv then you can run VBoxManage as a normal user. DO NOT run VBoxManage as root!!!
VBoxManage setproperty websrvauthlibrary default
VBoxManage setproperty websrvauthlibrary null
Check if vboxweb is running and if you have more than one vboxweb running you can kill that process as a normal user run pkill vboxwebsrv and restart apache2 as root run rcapache2 restart then start again from the beginning.
The end :-)
This guide only uses the user's home public_html directory for phpvbox and not in /srv/www/htdocs which is the default location of the document root files from apache2 in openSUSE. Messing with it means you have to be root, which means you should know what you are doing. If your just trying it out for the first time then this set up should be enough. This software is developing so expect some good changes, also keep in mind that future release may not work as expected from this guide and last but not least it may have some rpm packages in the future provided someone will package this for OpenSuSE.
Enjoy folks!
Kudos to Mr. Ian Moore the author of phpvirtualbox.
My reloaded phpvirtualbox howto.
http://jason.ferrer.com.ph/2013/09/phpvirtualbox-on-opensuse-reloaded.html
The documentation for linux configuration of phpvirtualbox you can find in this site.
http://code.google.com/p/phpvirtualbox/wiki/vboxwebServiceConfigLinux
Nice how-to ! congrats.
ReplyDeleteTo setup vboxwebservice follow this wiki:
http://phpvirtualbox.googlecode.com/svn-history/r105/wiki/vboxwebServiceConfigLinux.wiki
Thanks i hope you liked it :-)
ReplyDelete