phpVirtualBox

rhglass
Posts: 7
Joined: Thu Mar 07, 2013 1:16 pm

phpVirtualBox

Postby rhglass » Sun Apr 05, 2015 12:38 am

after many years try to get phpvirtualbox working on my server, I finally I got this working this weekend, so now the time to create the one-click install for it, I have made a start with this, I have got the phpvirtualbox install but before that I have manually install virtualbox on the server first by

wget http://download.virtualbox.org/virtualb ... x86_64.rpm

sudo yum install VirtualBox-4.3-4.3.2_90405_fedora18-1.x86_64.rpm

I will create a package for this next, then install the phpvirtualbox once that is done you need to create a user

create a user : vbox
password : pass

this user don't need admin rights

after that you need to start the server
/usr/bin/vboxwebsrv -b --logfile /dev/null >/dev/null?

now it should work log on by using admin and the password is admin

I have found that the remote desktop is gray out and I need to install the Oracle_VM_VirtualBox_Extension_Pack for this option to work

so I found out how to install this look at this webpage

http://www.unixmen.com/install-oracle-v ... ss-server/

wget http://download.virtualbox.org/virtualb ... ox-extpack

sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.3.12-93733.vbox-extpack

I have run this on my server and got the following error
[root@localhost ~]# wget http://download.virtualbox.org/virtualb ... ox-extpack
--2015-04-05 07:39:14-- http://download.virtualbox.org/virtualb ... ox-extpack
Resolving download.virtualbox.org (download.virtualbox.org)... 137.254.120.26
Connecting to download.virtualbox.org (download.virtualbox.org)|137.254.120.26|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://dlc-cdn.sun.com/virtualbox/4.3.1 ... ox-extpack [following]
--2015-04-05 07:39:14-- http://dlc-cdn.sun.com/virtualbox/4.3.1 ... ox-extpack
Resolving dlc-cdn.sun.com (dlc-cdn.sun.com)... 213.104.143.184, 213.104.143.193
Connecting to dlc-cdn.sun.com (dlc-cdn.sun.com)|213.104.143.184|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10441011 (10.0M) [application/x-virtualbox-vbox-extpack]
Saving to: ‘Oracle_VM_VirtualBox_Extension_Pack-4.3.12-93733.vbox-extpack’

100%[======================================>] 10,441,011 506KB/s in 20s

2015-04-05 07:39:35 (507 KB/s) - ‘Oracle_VM_VirtualBox_Extension_Pack-4.3.12-93733.vbox-extpack’ saved [10441011/10441011]

# sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.3.12-93733.vbox-extpack
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (3.10.5-201.fc19.x86_64) or it failed to
load. Please recompile the kernel module and install it by

sudo /etc/init.d/vboxdrv setup

You will not be able to start VMs until this problem is fixed.
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Successfully installed "Oracle VM VirtualBox Extension Pack".

after that I run the
# sudo /etc/init.d/vboxdrv setup

Stopping VirtualBox kernel modules [ OK ]
Recompiling VirtualBox kernel modules [FAILED]
(Look at /var/log/vbox-install.log to find out what went wrong)

then I have checked phpvirtualbox and the remote desktop it now working

I am very please with it but am a bit stuck now

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: phpVirtualBox

Postby bigfoot65 » Sun Apr 05, 2015 5:08 pm

I am working on the app.

Once I have it ready to test, I will post back here.

There are some pieces that need to be connected yet.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: phpVirtualBox

Postby bigfoot65 » Wed Apr 08, 2015 2:22 pm

We have hit a wall with packaging VirtualBox as a one-click application.

Per Install VirtualBox on Redhat, CentOS, Fedora, VirtualBox uses vboxdrv kernel module to control and allocate physical memory for execution of guest operating systems. Without this module, you can still use the VirtualBox to create and configure virtual machines, but they will not work. So, to make VirtualBox fully functional you will need to update your system first, then install some additional modules like DKMS, kernel-headers and kernel-devel and some dependency packages.

BTW this is a good tutorial BTW for installing it manually.

This is a show stopper for Amahi applications. Based on what I see here, we can only safely package phpVirtualBox. VirtualBox itself will have to be installed manually by users.

Unfortunately making a one-click install of VirtualBox comes with risks that Amahi cannot accept. It violates our policy that has served us well for so many years. It could potentially crash the HDA and render it unusable and/or not recoverable without reinstall.

I feel it would be best to document the install process of VirtualBox in the wiki and point users to it in the phpVirtualBox app. We can put a note in the app that would direct users to the wiki if needed.

Sorry, but I am afraid we must halt building the VirtualBox application until such time it can be installed without such heavy modification of the OS. For now I will leave it in place, but remove it as a dependency for phpVirtualBox.
This is an email traffic between myself and rhglass. We prefer to keep dialogue in the open vs emails hence the need to post this here.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: phpVirtualBox

Postby bigfoot65 » Wed Apr 08, 2015 2:26 pm

We got so close but so far, is the problem with the installing of Virtualbox or Oracle_VM_VirtualBox_Extension pack it a shame but would not want to anything that would make the Amahi server unusable. the only thing the Virtualbox Extension pack is the remote desktop option, I have not recompiled my linux Kernel but did install the Extension but the option for rdp is now working but not tested yet

thanks for your help but we have phpvirtualbox working after all these years
The reply from rhglass.

To answer the question, it's VirtualBox that is a problem for Amahi as a one-click application. Adding the extension pack would most likely not be an issue unless it requires special compilation.

We feel it's best to document the VirtualBox install in the wiki and users can use the phpVirtualBox application for the web front end if so desired.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

rhglass
Posts: 7
Joined: Thu Mar 07, 2013 1:16 pm

Re: phpVirtualBox new version

Postby rhglass » Sat Jan 30, 2016 11:25 am

So we have a new virtual box version 5 and the phpvirtualbox has been upgraded too,I have made a start of look at this again would like to get this working after many years of trying, if anyone can help please let me know

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: phpVirtualBox

Postby bigfoot65 » Sat Jan 30, 2016 3:58 pm

Don't think Virtualbox will work well as a one-click install. Due to file size and manual configuration that is needed makes it difficult to make as an Amahi app.

The web app is doable but would need to be inline with a wiki documented version of the Virtualbox software install.

Happy to assist as needed.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 10 guests