VirtualBox Plugin for unRAID v5 and v6


theone

Recommended Posts

ok - i'm probably being really dim and i'm so close it hurts but i cannot seem to get past "An error occurred communicating with your vboxwebsrv."

 

If I run " ps aux | grep vboxweb " I get this:

 

root     32550  0.0  0.0   2448   584 pts/0    S+   22:40   0:00 grep vboxweb

 

So then I try to run " netstat -an | grep 18083 " but it gives me nothing. This leads me to the conclusion that the vboxwebsrv is running but not listening? There are no other plugins installed on the system and it's RC15a.

 

I've modified config.php in the phpmyadmin folder to match the user running vbox (which is root) and modified the IP address / port to every permutation I can think of (ie: 127.0.0.1, 10.0.0.2, localhost) but still I get this blasted error and no logs to help me.

 

I've attached screenies of my settings page and my config.php file for phpmyadmin. I fixed the soap error by commenting out the relavent line in SF web server (which i had to modify as the sqllite package was broken).

 

My syslog can be found here: https://dl.dropboxusercontent.com/u/6775695/syslog-2013-06-23.zip

 

I've spent the last 3 hours getting nowhere and would really appreciate some assistance.

 

 

-- Probably not that useful but the error message I get from phpmyadmin is this:

 

Exception Object
(
    [message:protected] => Could not connect to host
    [string:Exception:private] => 
    [code:protected] => 32
    [file:protected] => /mnt/user/cache/webserver/lib/vboxconnector.php
    [line:protected] => 111
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /mnt/user/cache/webserver/lib/vboxconnector.php
                    [line] => 1379
                    [function] => __vboxwebsrvConnect
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [1] => Array
                (
                    [file] => /mnt/user/cache/webserver/lib/vboxconnector.php
                    [line] => 218
                    [function] => getHostDetailsCached
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [fn] => getHostDetails
                                )

                            [1] => Array
                                (
                                    [data] => 
                                    [errors] => Array
                                        (
                                        )

                                    [persist] => Array
                                        (
                                        )

                                )

                        )

                )

            [2] => Array
                (
                    [file] => /mnt/user/cache/webserver/lib/ajax.php
                    [line] => 93
                    [function] => __call
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => getHostDetails
                            [1] => Array
                                (
                                    [0] => Array
                                        (
                                            [fn] => getHostDetails
                                        )

                                    [1] => Array
                                        (
                                            [0] => Array
                                                (
                                                    [data] => 
                                                    [errors] => Array
                                                        (
                                                        )

                                                    [persist] => Array
                                                        (
                                                        )

                                                )

                                        )

                                )

                        )

                )

            [3] => Array
                (
                    [file] => /mnt/user/cache/webserver/lib/ajax.php
                    [line] => 93
                    [function] => getHostDetails
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [fn] => getHostDetails
                                )

                            [1] => Array
                                (
                                    [0] => Array
                                        (
                                            [data] => 
                                            [errors] => Array
                                                (
                                                )

                                            [persist] => Array
                                                (
                                                )

                                        )

                                )

                        )

                )

        )

    [previous:Exception:private] => 
)

config.zip

vboxsettings.PNG.207d02b18b6bebb9f40e0f8caea8e085.PNG

Link to comment

So I've got one step further than the previous post, my .log location wasn't valid. I just put /mnt/user/cache/vbox/logs instead of a filename (that might be a little clearer as most plugins just need the file location, not filename!  :P)

 

I do however have another joyous error to replace it. This time I have " Method 'ps1:ISystemProperties getMaxVDISize' not implemented " ...

 

vboxerror.PNG

 

Where do I start with this one? The phpmyadmin website isn't terribly helpful on this one.

 

Cheers

 

 

ok - i'm probably being really dim and i'm so close it hurts but i cannot seem to get past "An error occurred communicating with your vboxwebsrv."

 

If I run " ps aux | grep vboxweb " I get this:

 

root     32550  0.0  0.0   2448   584 pts/0    S+   22:40   0:00 grep vboxweb

 

So then I try to run " netstat -an | grep 18083 " but it gives me nothing. This leads me to the conclusion that the vboxwebsrv is running but not listening? There are no other plugins installed on the system and it's RC15a.

 

I've modified config.php in the phpmyadmin folder to match the user running vbox (which is root) and modified the IP address / port to every permutation I can think of (ie: 127.0.0.1, 10.0.0.2, localhost) but still I get this blasted error and no logs to help me.

 

I've attached screenies of my settings page and my config.php file for phpmyadmin. I fixed the soap error by commenting out the relavent line in SF web server (which i had to modify as the sqllite package was broken).

 

My syslog can be found here: https://dl.dropboxusercontent.com/u/6775695/syslog-2013-06-23.zip

 

I've spent the last 3 hours getting nowhere and would really appreciate some assistance.

 

 

-- Probably not that useful but the error message I get from phpmyadmin is this:

 

Exception Object
(
    [message:protected] => Could not connect to host
    [string:Exception:private] => 
    [code:protected] => 32
    [file:protected] => /mnt/user/cache/webserver/lib/vboxconnector.php
    [line:protected] => 111
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /mnt/user/cache/webserver/lib/vboxconnector.php
                    [line] => 1379
                    [function] => __vboxwebsrvConnect
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [1] => Array
                (
                    [file] => /mnt/user/cache/webserver/lib/vboxconnector.php
                    [line] => 218
                    [function] => getHostDetailsCached
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [fn] => getHostDetails
                                )

                            [1] => Array
                                (
                                    [data] => 
                                    [errors] => Array
                                        (
                                        )

                                    [persist] => Array
                                        (
                                        )

                                )

                        )

                )

            [2] => Array
                (
                    [file] => /mnt/user/cache/webserver/lib/ajax.php
                    [line] => 93
                    [function] => __call
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => getHostDetails
                            [1] => Array
                                (
                                    [0] => Array
                                        (
                                            [fn] => getHostDetails
                                        )

                                    [1] => Array
                                        (
                                            [0] => Array
                                                (
                                                    [data] => 
                                                    [errors] => Array
                                                        (
                                                        )

                                                    [persist] => Array
                                                        (
                                                        )

                                                )

                                        )

                                )

                        )

                )

            [3] => Array
                (
                    [file] => /mnt/user/cache/webserver/lib/ajax.php
                    [line] => 93
                    [function] => getHostDetails
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [fn] => getHostDetails
                                )

                            [1] => Array
                                (
                                    [0] => Array
                                        (
                                            [data] => 
                                            [errors] => Array
                                                (
                                                )

                                            [persist] => Array
                                                (
                                                )

                                        )

                                )

                        )

                )

        )

    [previous:Exception:private] => 
)

vboxwebsrv.zip

vboxerror.PNG.7c58106ef047a6de63d4d55bc2edd72f.PNG

Link to comment

ironicbadger, which phpvirtualbox file did you download? The error "Method 'ns1:xxxxxxxxxxx' not implemented: method name or namespace not recognized" is listed under common errors as using a version of phpVirtualBox that is incompatible with your version of VirtualBox. I see you are running VirtualBox 4.2.14, which means you should have installed this VirtualBox 4.2.x Compatible --- 4.2-4 release version.

 

I also noticed you are using "/mnt/user/cache/vbox/logs"... Did you setup a share named cache? To access my cache drive, I use "/mnt/cache/" as only my user shares are under "/mnt/user/".

 

When you run "ps aux | grep vboxweb" you should also see a result similar to this if vboxwebserver is running:

root     12345  0.0  0.1  12345 12345 ?        Sl   Jun19   0:08 /opt/VirtualBox/vboxwebsrv -b --verbose -H 127.0.0.1 -p 18083 --pidfile /var/run/vboxwebsrv/vboxwebsrv.pid --logrotate 0 --logsize 50000 --loginterval 604800 --logfile /var/log/vboxwebsrv.log

 

You keep mentioning phpmyadmin in your posts, but seem to be talking about phpvirtualbox... confuses things a little & when troubleshooting it helps to be as clear as possible.

Link to comment

I checked the phpvirtualbox site for the issue you are reporting "The object functionality is limited". On the web page for phpvirtualbox, click "File" on the top menu then "Preferences". Under the "General" tab, try setting the location for "Default Machine Folder" to the location where your VMs are stored. This can also be done on the command line with the command "VBoxManage setproperty machinefolder /mnt/cache/vms" (replace /mnt/cache/vms with the location of your VMs). This seems to fix the problem & lasts through a reboot (according to the phpvirtualbox issues page).

 

If the above does not work, others have reported that stopping then restarting vboxwebsrv seems to resolve the problem (at least temporarily).

Link to comment

Hi lainie

 

I checked this as I thought I had previously updated modified this and it i had, I have attached the image showing this. I can confirm stopping and restarting doesnt resolve the issue. I have also noticed that the there is a VirtualBox.xml-prev, is this normal? I didnt created the file and when I rename it to VirtualBox.xml and delete the previous .xml-prev and then start vboxwebserv there is another VirtualBox.xml-prev.

 

Is there any other logs I can get to post so you guys can give me a hand? Or do you have any other tips?

 

Thanks

 

Lee

 

I checked the phpvirtualbox site for the issue you are reporting "The object functionality is limited". On the web page for phpvirtualbox, click "File" on the top menu then "Preferences". Under the "General" tab, try setting the location for "Default Machine Folder" to the location where your VMs are stored. This can also be done on the command line with the command "VBoxManage setproperty machinefolder /mnt/cache/vms" (replace /mnt/cache/vms with the location of your VMs). This seems to fix the problem & lasts through a reboot (according to the phpvirtualbox issues page).

 

If the above does not work, others have reported that stopping then restarting vboxwebsrv seems to resolve the problem (at least temporarily).

Link to comment

Figured out what it was, seems the iso I had mounted for the windows 7 vm was located on the array but when restarting unraid it couldnt access the iso so using VBoxManage list vms found the vm but when I did a VBoxManage showvminfo on that vm it was listed as inaccessible and there was a mention of an iso, so I just removed the iso after the OS install and rebooted all was good then.

Link to comment

Everything seems to have installed correctly and I can see the VM running in the Preview window. When I try to connect console I get this error.

 

        Disconnect reason: E: TCP: SECURITY_ERROR Error #2048

 

I am testing with a Zorin OS iso.

 

 

 

 

 

Link to comment

Everything seems to have installed correctly and I can see the VM running in the Preview window. When I try to connect console I get this error.

 

        Disconnect reason: E: TCP: SECURITY_ERROR Error #2048

 

I am testing with a Zorin OS iso.

 

I remember having an issue like this myself but cannot remmeber how I resolved it. Are you able to RDP to the vm from a windows machine?

 

 

Link to comment

Everything seems to have installed correctly and I can see the VM running in the Preview window. When I try to connect console I get this error.

 

        Disconnect reason: E: TCP: SECURITY_ERROR Error #2048

 

I am testing with a Zorin OS iso.

 

I remember having an issue like this myself but cannot remmeber how I resolved it. Are you able to RDP to the vm from a windows machine?

 

Yes I can RDP for a Win7 machine. Cursor display is off by about 4 inches. I was able to complete the Zorin OS install.

Link to comment

Everything seems to have installed correctly and I can see the VM running in the Preview window. When I try to connect console I get this error.

 

        Disconnect reason: E: TCP: SECURITY_ERROR Error #2048

 

I am testing with a Zorin OS iso.

 

I remember having an issue like this myself but cannot remmeber how I resolved it. Are you able to RDP to the vm from a windows machine?

 

Yes I can RDP for a Win7 machine. Cursor display is off by about 4 inches. I was able to complete the Zorin OS install.

 

to be honest I may have just deleted the vm in virtualbox (not the image just the vm) and created it again. Have you tried this?

 

 

Link to comment

I guess I dont really have to have console from the web gui. I did so google fu on the cursor problems.

It seem you have to install the guest additions to the guest vm. Will try that tomorrow.

 

You can download the guest additions (need to install manually inside the VM) via the Plugin WEBUI.

 

Link to comment

Everything seems to have installed correctly and I can see the VM running in the Preview window. When I try to connect console I get this error.

 

        Disconnect reason: E: TCP: SECURITY_ERROR Error #2048

 

I am testing with a Zorin OS iso.

 

I remember having an issue like this myself but cannot remmeber how I resolved it. Are you able to RDP to the vm from a windows machine?

 

Yes I can RDP for a Win7 machine. Cursor display is off by about 4 inches. I was able to complete the Zorin OS install.

 

to be honest I may have just deleted the vm in virtualbox (not the image just the vm) and created it again. Have you tried this?

 

I deleted the two VMs I had created and made a fresh Win7 VM. Still cannot connect to console.. Works fine using RDP for my windoze box.  Fixed the double cursor issue by loading the guest additions from /opt.

 

I you are looking for a good use for VB. Have a look here. I playing around with FreePbx about a year ago, but did not want to run another dedicated PC. Very simple appliance install.

http://nerdvittles.com/?p=5844

 

 

 

 

Link to comment

Everything seems to have installed correctly and I can see the VM running in the Preview window. When I try to connect console I get this error.

 

        Disconnect reason: E: TCP: SECURITY_ERROR Error #2048

 

I am testing with a Zorin OS iso.

 

I just solved this by editing my phpVirtualBox config.php and enabling the $consoleHost variable and setting it to my unRaid IP.

Link to comment

Everything seems to have installed correctly and I can see the VM running in the Preview window. When I try to connect console I get this error.

 

        Disconnect reason: E: TCP: SECURITY_ERROR Error #2048

 

I am testing with a Zorin OS iso.

 

I just solved this by editing my phpVirtualBox config.php and enabling the $consoleHost variable and setting it to my unRaid IP.

 

this did not work for me. My config.php was lett at default.

// Host / ip to use for console connections

#var $consoleHost = '192.168.1.40';

 

I changed tihis to my URaid server IP 192.168.1.4 and it still does not work.

vboxwebserv was restarted after the change.

 

 

Link to comment

batt01

 

remove the # before var $consoleHost = '192.168.1.40';

 

the line should become

 

var $consoleHost = '192.168.1.40';

 

just be sure to have the right ip too

 

Thanks  a lot, it works now. I spent several hours trying to figure it out. I should have caught that.

One odd thing I had created three VMs, they are no longer in the list. Might be able to browe to the files.

 

Link to comment

Just upgraded from 4.7 to 5 rc16c. Great to see such great improvements with this plugin, many thanks to the creators! Compiling from source has its charms, but is kind of a hassle too ...

 

Wanted to leave a note to say that it appears there is some kind of incompatibility with the Simple Features plugin. When starting a VM the web GUI became unresponisive. At first restarting emhttp did the trick but continued problems made me delete most of the SF plgs (only core and webserver still in place for phpvirtualbox). Rebooted and so far so good.

 

I'm still gonna give it some time though before I start re-enabling some of the other SF plgs to find the culprit.

 

But I also got a question/suggestion. Maybe this one has been answered before but would it be possible to automatically shutdown a VM before reboot? Does anyone already got a solution for this in place or will I have to search for something myself?

Link to comment

But I also got a question/suggestion. Maybe this one has been answered before but would it be possible to automatically shutdown a VM before reboot? Does anyone already got a solution for this in place or will I have to search for something myself?

 

all running VMs will be automatically saved (savestate) when unRAID array is stopped/shutdown.

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.