Koozali.org: home of the SME Server

phpvirtualbox-5.0 and VirtualBox-5.0

Offline DanB35

  • ****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: phpvirtualbox-5.0 and VirtualBox-5.0
« Reply #15 on: August 26, 2015, 06:34:57 PM »
Code: [Select]
[root@e-smith ~]# /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules                         [  OK  ]
Uninstalling old VirtualBox DKMS kernel modules            [  OK  ]
Trying to register the VirtualBox kernel modules using DKMS[  OK  ]
Starting VirtualBox kernel modules                         [  OK  ]
[root@e-smith ~]# /etc/init.d/vboxweb-service start
[root@e-smith ~]# /etc/init.d/vboxweb-service status
Checking for VBox Web Service ...running
[root@e-smith ~]# netstat -a | grep 18083
[root@e-smith ~]#

There was a significant delay before "OK" on the Uninstalling... and the Trying to register... steps.  The web interface is still responding as before.  /var/log/messages shows:

Code: [Select]
Aug 26 12:26:59 e-smith kernel: VBoxPciLinuxLinuxUnload
Aug 26 12:30:01 e-smith php: PHP Warning:  require_once(/usr/share/pear/www/horde/lib/Application.php): failed to open stream: No such file or directory in /usr/bin/horde-alarms on line 21
Aug 26 12:30:01 e-smith php: PHP Fatal error:  require_once(): Failed opening required '/usr/share/pear/www/horde/lib/Application.php' (include_path='.:/usr/share/pear-addons:/usr/share/pear') in /usr/bin/horde-alarms on line 21
Aug 26 12:30:40 e-smith kernel: vboxdrv: TSC mode is Invariant, tentative frequency 3399974920 Hz
Aug 26 12:30:40 e-smith kernel: VBoxNetFlt: Successfully started.
Aug 26 12:30:40 e-smith kernel: VBoxNetAdp: Successfully started.
Aug 26 12:30:40 e-smith kernel: VBoxPciLinuxInit
Aug 26 12:30:40 e-smith kernel: vboxpci: IOMMU not found (not compiled)
......

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: phpvirtualbox-5.0 and VirtualBox-5.0
« Reply #16 on: August 26, 2015, 07:49:53 PM »
do you have installed dkms as per the howto recommends ?
It seems that you have not recompiled virtualbox after the kernel upgrade

i'm attempting to reproduce the issue on another vm not upgraded to centos6.7
« Last Edit: August 26, 2015, 08:02:50 PM by stephdl »
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline DanB35

  • ****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: phpvirtualbox-5.0 and VirtualBox-5.0
« Reply #17 on: August 26, 2015, 08:09:48 PM »
Yes, I've installed dkms:
Code: [Select]
[root@e-smith ~]# rpm -qa | grep -i dkms
dkms-2.2.0.3-28.git.7c3e7c5.el6.noarch

I haven't upgraded it since I initially installed virtualbox, if that matters.  I haven't manually recompiled anything, but it's my understanding that this should not be necessary.
......

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: phpvirtualbox-5.0 and VirtualBox-5.0
« Reply #18 on: August 26, 2015, 10:10:14 PM »
what is the output of

nmap localhost -p 18083

here I have

Code: [Select]
[root@sme9dev4 ~]# nmap localhost -p 18083

Starting Nmap 6.25 ( http://nmap.org ) at 2015-08-26 22:05 CEST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00015s latency).
PORT      STATE  SERVICE
18083/tcp closed unknown

this is not good of course :p
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline DanB35

  • ****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: phpvirtualbox-5.0 and VirtualBox-5.0
« Reply #19 on: August 26, 2015, 10:29:37 PM »
Code: [Select]
[root@e-smith ~]# nmap localhost -p 18083

Starting Nmap 6.25 ( http://nmap.org ) at 2015-08-26 16:29 EDT
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000035s latency).
PORT      STATE  SERVICE
18083/tcp closed unknown

Nmap done: 1 IP address (1 host up) scanned in 0.09 seconds
[root@e-smith ~]#
......

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: phpvirtualbox-5.0 and VirtualBox-5.0
« Reply #20 on: August 26, 2015, 10:32:21 PM »
I have a workaround

Code: [Select]
/etc/init.d/vboxweb-service restartthen verify
Code: [Select]
[root@sme9dev4 ~]# nmap localhost -p 18083

Starting Nmap 6.25 ( http://nmap.org ) at 2015-08-26 22:28 CEST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00012s latency).
PORT      STATE SERVICE
18083/tcp open  unknown

you should be able to use phpvirtualbox, refresh the page if needed (ctrl+F5)
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline DanB35

  • ****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: phpvirtualbox-5.0 and VirtualBox-5.0
« Reply #21 on: August 26, 2015, 10:34:33 PM »
Confirmed.
Code: [Select]
[root@e-smith ~]# /etc/init.d/vboxweb-service restart
Stopping VirtualBox web service                            [  OK  ]
Starting VirtualBox web service                            [  OK  ]
[root@e-smith ~]# nmap localhost -p 18083

Starting Nmap 6.25 ( http://nmap.org ) at 2015-08-26 16:33 EDT
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000042s latency).
PORT      STATE SERVICE
18083/tcp open  unknown

Nmap done: 1 IP address (1 host up) scanned in 0.05 seconds
[root@e-smith ~]#

The phpvirtualbox page now loads without error.
......

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: phpvirtualbox-5.0 and VirtualBox-5.0
« Reply #22 on: August 26, 2015, 10:35:49 PM »
I need to move the vboxweb-service to S99vboxweb-service
mv /etc/rc.d/rc7.d/S86vboxweb-service /etc/rc.d/rc7.d/S99vboxweb-service

please don't do that and  wait the next smeserver-phpvirtualbox
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: phpvirtualbox-5.0 and VirtualBox-5.0
« Reply #23 on: August 26, 2015, 11:40:43 PM »
/home/build/exchange/smeserver-virtualbox-5.0-5.0.0/smeserver-virtualbox-5.0-5.0.0-3.el5.sme.noarch.rpm
/home/build/exchange/smeserver-virtualbox-5.0-5.0.0/smeserver-virtualbox-5.0-5.0.0-3.el5.sme.src.rpm
/home/build/exchange/smeserver-virtualbox-5.0-5.0.0/smeserver-virtualbox-5.0-5.0.0-3.el6.sme.noarch.rpm
/home/build/exchange/smeserver-virtualbox-5.0-5.0.0/smeserver-virtualbox-5.0-5.0.0-3.el6.sme.src.rpm

released
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline DanB35

  • ****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: phpvirtualbox-5.0 and VirtualBox-5.0
« Reply #24 on: August 27, 2015, 02:43:49 PM »
That doesn't seem to have resolved it.
Code: [Select]
[root@e-smith ~]# rpm -qa | grep -i virtualbox
VirtualBox-5.0-5.0.2_102096_el6-1.x86_64
smeserver-phpvirtualbox-5.0-5.0.0-1.el6.sme.noarch
phpvirtualbox-5.0-5.0.2-1.el6.sme.noarch
smeserver-virtualbox-5.0-5.0.0-3.el6.sme.noarch
[root@e-smith ~]# nmap localhost -p 18083

Starting Nmap 6.25 ( http://nmap.org ) at 2015-08-27 08:42 EDT
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000035s latency).
PORT      STATE  SERVICE
18083/tcp closed unknown

Nmap done: 1 IP address (1 host up) scanned in 0.09 seconds
[root@e-smith ~]# /etc/init.d/vboxweb-service restart
Stopping VirtualBox web service                            [  OK  ]
Starting VirtualBox web service                            [  OK  ]
[root@e-smith ~]# nmap localhost -p 18083

Starting Nmap 6.25 ( http://nmap.org ) at 2015-08-27 08:42 EDT
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000039s latency).
PORT      STATE SERVICE
18083/tcp open  unknown

Nmap done: 1 IP address (1 host up) scanned in 0.05 seconds
[root@e-smith ~]#

Installed the update, did post-upgrade and reboot, and was still unable to get to the phpvirtualbox page.  After restarting the vboxweb service, it's up again.
......

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: phpvirtualbox-5.0 and VirtualBox-5.0
« Reply #25 on: August 27, 2015, 05:17:46 PM »
please what is the output of ll /etc/rc.d/rc7.d/S99*
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline DanB35

  • ****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: phpvirtualbox-5.0 and VirtualBox-5.0
« Reply #26 on: August 27, 2015, 06:04:47 PM »
Code: [Select]
[root@e-smith ~]# ll /etc/rc.d/rc7.d/S99*
lrwxrwxrwx 1 root root 32 Apr 16 06:40 /etc/rc.d/rc7.d/S99fail2ban -> /etc/rc.d/init.d/e-smith-service
lrwxrwxrwx 1 root root 32 Aug 23 07:08 /etc/rc.d/rc7.d/S99lm_sensors -> /etc/rc.d/init.d/e-smith-service
lrwxrwxrwx 1 root root 32 Feb 10  2015 /etc/rc.d/rc7.d/S99local -> /etc/rc.d/init.d/e-smith-service
lrwxrwxrwx 1 root root 32 Jul 29  2014 /etc/rc.d/rc7.d/S99mysql.init -> /etc/rc.d/init.d/e-smith-service
lrwxrwxrwx 1 root root 32 Aug 23 07:08 /etc/rc.d/rc7.d/S99sme9admind -> /etc/rc.d/init.d/e-smith-service
lrwxrwxrwx 1 root root 32 Aug 27 08:24 /etc/rc.d/rc7.d/S99vboxweb-service -> /etc/rc.d/init.d/vboxweb-service
[root@e-smith ~]#
......

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: phpvirtualbox-5.0 and VirtualBox-5.0
« Reply #27 on: August 27, 2015, 06:16:11 PM »
I have just tested here on a fresh install of sme9-x64 and it works as expected, but since the service is the last to start, the opened port can be delayed a bit (at least 30 seconds after a ssh connexion)
I use : watch 'nmap localhost -p 18083' to see when the port is opened. It seems that after a reconfiguration it is a bit more longer than a simple reboot.

after that can you show us

Code: [Select]
[root@sme9dev64-4 ~]# config show vboxweb-service
vboxweb-service=service
    TCPPort=18083
    access=localhost
    status=enabled
[root@sme9dev64-4 ~]# config show phpvirtualbox
phpvirtualbox=service
    Group=
    Name=phpvirtualbox
    User=
    status=enabled
    webauth=enabled
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline DanB35

  • ****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: phpvirtualbox-5.0 and VirtualBox-5.0
« Reply #28 on: August 27, 2015, 06:27:28 PM »
So, just to make sure I'm understanding you correctly, you'd like me to do signal-event post-upgrade; signal-event reboot, and after the reboot finishes, watch 'nmap...'?  And after that comes up open, the two config show commands you give?
......

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: phpvirtualbox-5.0 and VirtualBox-5.0
« Reply #29 on: August 27, 2015, 08:01:02 PM »
the command watch is just here to look in direct the port with nmap, normally after a reboot or a reconfigure the port will need a bit of time to rise up....if after one minute the port is not opened, it is not normal.

concerning the config command it is just to see if you have not tricked something
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!