Koozali.org: home of the SME Server

Obsolete Releases => SME 8.x Contribs => Topic started by: stephdl on October 19, 2013, 11:22:59 PM

Title: [Announce] New contrib phpvirtualbox
Post by: stephdl on October 19, 2013, 11:22:59 PM
Ola, i need some feedbacks on this new contribs : "phpvirtualbox"

The purpose original was to install this marvellous package for me, but i wondered  that it could be used for other, so i worked a bit (hard) this saturday :p

i hope you have noticed that the contrib is in my development area, be conscious :p

http://mirror.de-labrusse.fr/Sme-Server/development/phpvirtualbox/

In first you have to be sure that you are fully updated

Code: [Select]
yum update
signal-event post-upgrade; signal-event reboot

wget http://mirror.de-labrusse.fr/Sme-Server/development/phpvirtualbox/smeserver-virtualbox-4.3.0-3.noarch.rpm
wget http://mirror.de-labrusse.fr/Sme-Server/development/phpvirtualbox/smeserver-phpvirtualbox-4.3.0-3.noarch.rpm
wget http://mirror.de-labrusse.fr/Sme-Server/development/phpvirtualbox/phpvirtualbox-4.3.0-3.noarch.rpm

install epel for sme8 http://wiki.contribs.org/Epel
install virtualbox http://wiki.contribs.org/VirtualBox_Repository

Code: [Select]
signal-event yum-modify
yum install --enablerepo=epel,virtualbox dkms  smeserver-virtualbox-4.3.0-3.noarch.rpm smeserver-phpvirtualbox-4.3.0-3.noarch.rpm phpvirtualbox-4.3.0-3.noarch.rpm VirtualBox-4.3
signal-event post-upgrade; signal-event reboot

then you can play with virtualbox with these credentials  :  admin/admin
http://sme-ip/phpvirtualbox

I have followed this tutorial on the wiki
http://wiki.contribs.org/VirtualBox_4.0_on_SME_Server_v8_beta_6

so the known issues for now are

the user of virtualbox is root you can see : /etc/default/virtualbox
the authentification to vboxwebsrv is null you can see : vboxmanage setproperty websrvauthlibrary null
the config.php is not templated


once logged you have to change the admin/admin
you have to create a folder where you want to keep your vm and change it in settings(by default /root/VirtualBox VMs)
Title: Re: [Announce] New contrib phpvirtualbox
Post by: stephdl on October 20, 2013, 05:06:21 PM
minor patch to force the https_only

yum update
signal-event post-upgrade; signal-event reboot

wget http://mirror.de-labrusse.fr/Sme-Server/development/phpvirtualbox/smeserver-virtualbox-4.3.0-3.noarch.rpm
wget http://mirror.de-labrusse.fr/Sme-Server/development/phpvirtualbox/smeserver-phpvirtualbox-4.3.0-4.noarch.rpm
wget http://mirror.de-labrusse.fr/Sme-Server/development/phpvirtualbox/phpvirtualbox-4.3.0-3.noarch.rpm


install epel for sme8 http://wiki.contribs.org/Epel
install virtualbox http://wiki.contribs.org/VirtualBox_Repository


signal-event yum-modify
yum install --enablerepo=epel,virtualbox dkms  smeserver-virtualbox-4.3.0-3.noarch.rpm smeserver-phpvirtualbox-4.3.0-3.noarch.rpm phpvirtualbox-4.3.0-3.noarch.rpm VirtualBox-4.3
signal-event post-upgrade; signal-event reboot
Title: Re: [Announce] New contrib phpvirtualbox
Post by: stephdl on October 26, 2013, 12:36:49 AM
New version in http://mirror.de-labrusse.fr/Sme-Server/development/phpvirtualbox/

now the sme admin can log to the contrib, for sme user or sme group you need  to use db command

Code: [Select]
config setprop phpvirtualbox User "toto tata titi tutu"
config setprop phpvirtualbox Group "toto tata titi tutu"
signal-event console-save

you have to install the bridgeinterface contribs if you want to play with real ip to your local network

https://wiki.contribs.org/BridgeInterface

Currently i need some feedbacks, you can use another virtualbox to test it. I have noticed if you want to have a bridged network in a VM environment which is already another virtualbox, curiously you can't have a workable bridged interface. In this case to test it you could take a real bare metal computer.
Title: Re: [Announce] New contrib phpvirtualbox
Post by: stephdl on March 20, 2014, 09:55:41 PM
smeserver-phpvirtualbox and smeserver-virtualbox are now available in stephdl_repository, please see http://wiki.contribs.org/Phpvirtualbox

major ameliorations :

-the web authentication is a bug resolved  in phpvirtualbox, available now in smeserver-phpvirtualbox
-now you can choose group or user with two ways
Code: [Select]
config setprop phpvirtualbox User user1,user2,user3
config setprop phpvirtualbox User "user1 user2 user3"
-a script test if the vboxdrv needs to be compiled at the startup
-the admin user is hardcoded, you can not forbid him to be granted.

to install stephdl-repo : http://wiki.contribs.org/Stephdl
Title: Re: [Announce] New contrib phpvirtualbox
Post by: vpurger on March 23, 2014, 03:38:55 PM
Related to problems with kernel-PAE (i386),  in this case it is necessary to use the kernel-pae-devel instead kernel-devel.
Title: Re: [Announce] New contrib phpvirtualbox
Post by: stephdl on March 23, 2014, 06:31:41 PM
can you give the right command line please  ?
Title: Re: [Announce] New contrib phpvirtualbox
Post by: vpurger on March 24, 2014, 08:00:28 AM
yum install --enablerepo=epel dkms kernel-PAE-devel