Menu

Cannot connect to vboxwebsrv on OS X 10.11 installation

jpstaub
2016-05-04
2019-10-09
  • jpstaub

    jpstaub - 2016-05-04
    Error logging in or connecting to vboxwebsrv
    NOTE: This is different than an Invalid username or password error.
    This typically indicates that the username and / or password is incorrect in config.php. These must be set to the system username / password of the user that administers your VirtualBox virtual machines.
    

    What does, "These must be set to the system username / password of the user that administers your VirtualBox virtual machines," mean for an OS X 10.11 installation?

    I can use VirtualBox. I can start, stop and modify virtual machines. But putting my user account username/password information into config.php does not produce favorable results. All that's returned is the following:

    Exception Object
    (
        [message:protected] => Error logging in to vboxwebsrv.
        [string:Exception:private] => 
        [code:protected] => 64
        [file:protected] => /Library/WebServer/Documents/phpvirtualbox/endpoints/api.php
        [line:protected] => 134
        [trace:Exception:private] => Array
            (
            )
    
        [previous:Exception:private] => 
    )
    

    vboxwebsrv says the following:

    00:21:35.684817 SQW01    Processing connection from IP=127.0.0.1 socket=8 (0 out of 1 threads idle)
    00:21:35.735633 SQW01    Access for user 'my_login_name' denied
    

    How do I modify systems settings so that phpvirtualbox logs in to vboxwebsrv?

     
  • jpstaub

    jpstaub - 2016-05-04

    In my case the problem definitely has something to do with "username/password."

    "VBoxManage setproperty," is available so I used that to turn off authentication for the vboxwebsrv. The command is as follows:

    $ VBoxManage setproperty websrvauthlibrary null
    

    vboxwebsrv was started with:

    $ vboxwebsrv
    

    End result was normal operation:

    SQW01    External authentication library is 'null'
    SQPmp    Request 2 on socket 8 queued for processing (1 items on Q)
    SQW01    Processing connection from IP=127.0.0.1 socket=8 (0 out of 1 threads idle)
    SQPmp    Request 3 on socket 11 queued for processing (1 items on Q)
    

    Prior to modifying VBox properties a failed attempt looked like this:

    SQW01    External authentication library is 'VBoxAuth'
    SQW01    Access for user 'my_login_name' denied
    main     requested termination, cleaning up
    

    How does one go about modifying the authentication library 'VBoxAuth' so that vboxwebsrv takes those entries into account?

     
  • Paul Bichis

    Paul Bichis - 2019-10-09

    Hello,

    Same scenario on Mageia 6, x86_64
    It is something related to the librariers. (dunno whom or which)
    I have a HP ProLiant DL380 G7 that does the same (VBoxAuth does not work, but unll auth works)
    But on an Asus X550CC laptop, VBoxAuth works just fine.
    (same .rpm packages)

    [root@s1hp ~]# rpm -qa 'virtualbox'
    phpvirtualbox-vboxtool-5.2-0.mga6
    virtualbox-kernel-4.9.35-desktop-1.mga6-5.1.22-20.mga6
    virtualbox-5.1.22-1.mga6
    virtualbox-doc-5.1.22-1.mga6
    phpvirtualbox-5.2-0.mga6
    [root@s1hp ~]#

    [root@asus_yatebts ~]# rpm -qa 'virtualbox'
    virtualbox-kernel-4.9.35-desktop-1.mga6-5.1.22-20.mga6
    phpvirtualbox-5.2-0.mga6
    virtualbox-5.1.22-1.mga6
    virtualbox-kernel-4.14.137-desktop-1.mga6-6.0.10-2.mga6
    phpvirtualbox-vboxtool-5.2-0.mga6
    virtualbox-doc-5.1.22-1.mga6
    [root@asus_yatebts ~]#

     
  • Smart Guide

    Smart Guide - 2019-10-09

    Hi,

    Please note that this site is not monitored by phpvirtualbox developers. Please report all issues to Github here: https://github.com/phpvirtualbox/phpvirtualbox/issues

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.