Jump to content
XPEnology Community

Virtualbox and phpVirtualbox on XPEnology


seba

Recommended Posts

Thx seba for your work,

I get this error after entering admin/password (http://ip/phpvirtualbox):

 

Could not connect to host (http://127.0.0.1:18083)

 

What should I check?

(i have enable web station on dsm 5 upd- 5 on nanoboot 5.0.3.1)

 

Reason you get that message is because vboxwebsrv is not running, jagwaugh described possible reasons. Also you can find log file in /var/log/vbox.log, there you should find reason why vboxwebsrv is not running.

Link to comment
Share on other sites

Hi,

 

First of all, thanks Seba for your hard work.

 

I successfully installed package on my Proliant. Everything is working fine.

I'm trying to run Mavericks into VirtualBox. I have a little problem when trying to access VM over RDP : there's a big mouse lag.

I read the problem could be fixed using "absolute pointing device" when running "VBoxManage".

 

I tried to run "VBoxManage" under Putty but it says "not found".

 

Any suggestions? Soorry, i'm a total noob...

 

++

 

Virtual box is located in /opt/Virtualbox directory, you need to invoke VBoxManage from there.

Link to comment
Share on other sites

Hi,

 

First of all, thanks Seba for your hard work.

 

I successfully installed package on my Proliant. Everything is working fine.

I'm trying to run Mavericks into VirtualBox. I have a little problem when trying to access VM over RDP : there's a big mouse lag.

I read the problem could be fixed using "absolute pointing device" when running "VBoxManage".

 

I tried to run "VBoxManage" under Putty but it says "not found".

 

Any suggestions? Soorry, i'm a total noob...

 

++

 

Try this settings on VBox:

General -> Input -> Mouse: USB Tablet

USB -> enable all

Edited by Guest
Link to comment
Share on other sites

is the VirtualBox extension package installed with this package? I intend to use VirtualBox Remote Display Protocol (VRDP).

It is. You can verify it in phpVirtualBox, in show log for one of VMs.

 

 Oracle VM VirtualBox Extension Pack (Version: 4.3.12 r93733; VRDE Module: VBoxVRDP)

Link to comment
Share on other sites

The problem now is to be able to configure php virtualbox for access from wan ..

The router router refuses to let me access /phpvirualbox.

 

someone is successful?

 

For this I manually set up router to port forward to my nas box.

 

which port should I enable?

Link to comment
Share on other sites

From wan you need to forward any free port on your router to port 80 (or 443 if you are accessing nas over https) on your nas box. If your router is supported you can use nas for setup (control panel->connectivity->external access->router configuration)

 

Sent from my Nexus 7 using Tapatalk HD

Link to comment
Share on other sites

From wan you need to forward any free port on your router to port 80 (or 443 if you are accessing nas over https) on your nas box. If your router is supported you can use nas for setup (control panel->connectivity->external access->router configuration)

 

Sent from my Nexus 7 using Tapatalk HD

 

thanks it works! :grin:

Edited by Guest
Link to comment
Share on other sites

FYI,

 

Few days ago I did an upgrade to latest version of DSM 4528 and it appears that broke vbox instalation. If you get message in phpvbox that you can't connect, one like this:

 

Could not connect to host (http://127.0.0.1:18083)

 

check if directory /opt/VirtualBox exists. If not do this:

mkdir /opt

cp -pR /var/packages/virtualbox/target/opt/VirtualBox /opt/VirtualBox

/var/packages/virtualbox/scripts/start-stop-status start

 

this should fix install and start vboxweb service. In phpvbox you will have to set "Default Machine Folder" (Preferences->General) to location you had before and re-import machines.

Link to comment
Share on other sites

  • 2 weeks later...

hello

I have problems with starting the virtual machine

I set up a virtual machine and also created from the beginning nas

I get an error!

does not start any virtual machine what can I do?

The virtual machine 'test' Has terminated unexpectedly During startup with exit code 1

Exception Object
(
   [message:protected] => The virtual machine 'h' has terminated unexpectedly during startup with exit code 1
   [string:Exception:private] => 
   [code:protected] => 0
   [file:protected] => /volume1/web/phpvirtualbox/lib/vboxconnector.php
   [line:protected] => 2382
   [trace:Exception:private] => Array
       (
           [0] => Array
               (
                   [file] => /volume1/web/phpvirtualbox/lib/vboxconnector.php
                   [line] => 928
                   [function] => remote_progressGet
                   [class] => vboxconnector
                   [type] => ->
                   [args] => Array
                       (
                           [0] => Array
                               (
                                   [progress] => 8f083d77af58c9e5-0000000000000420
                                   [_persist] => Array
                                       (
                                           [vboxHandle] => 8f083d77af58c9e5-000000000000041e
                                       )

                                   [fn] => progressGet
                               )

                       )

               )

           [1] => Array
               (
                   [file] => /volume1/web/phpvirtualbox/lib/ajax.php
                   [line] => 309
                   [function] => __call
                   [class] => vboxconnector
                   [type] => ->
                   [args] => Array
                       (
                           [0] => progressGet
                           [1] => Array
                               (
                                   [0] => Array
                                       (
                                           [progress] => 8f083d77af58c9e5-0000000000000420
                                           [_persist] => Array
                                               (
                                                   [vboxHandle] => 8f083d77af58c9e5-000000000000041e
                                               )

                                           [fn] => progressGet
                                       )

                                   [1] => Array
                                       (
                                           [0] => Array
                                               (
                                                   [data] => Array
                                                       (
                                                           [responseData] => Array
                                                               (
                                                                   [progress] => 8f083d77af58c9e5-0000000000000420
                                                                   [info] => Array
                                                                       (
                                                                           [completed] => 1
                                                                           [canceled] => 
                                                                           [description] => Starting VM
                                                                           [operationDescription] => Creating process for virtual machine "h" (headless)
                                                                           [timeRemaining] => Array
                                                                               (
                                                                               )

                                                                           [timeElapsed] => Array
                                                                               (
                                                                                   [days] => 16391
                                                                                   [hours] => 9
                                                                                   [minutes] => 26
                                                                                   [seconds] => 22
                                                                               )

                                                                           [percent] => 0
                                                                       )

                                                               )

                                                           [success] => 1
                                                           [key] => 720f4c5f2f9c111d81c1aa4a7f53b5bc
                                                       )

                                                   [errors] => Array
                                                       (
                                                       )

                                                   [persist] => Array
                                                       (
                                                       )

                                                   [messages] => Array
                                                       (
                                                       )

                                               )

                                       )

                               )

                       )

               )

           [2] => Array
               (
                   [file] => /volume1/web/phpvirtualbox/lib/ajax.php
                   [line] => 309
                   [function] => progressGet
                   [class] => vboxconnector
                   [type] => ->
                   [args] => Array
                       (
                           [0] => Array
                               (
                                   [progress] => 8f083d77af58c9e5-0000000000000420
                                   [_persist] => Array
                                       (
                                           [vboxHandle] => 8f083d77af58c9e5-000000000000041e
                                       )

                                   [fn] => progressGet
                               )

                           [1] => Array
                               (
                                   [0] => Array
                                       (
                                           [data] => Array
                                               (
                                                   [responseData] => Array
                                                       (
                                                           [progress] => 8f083d77af58c9e5-0000000000000420
                                                           [info] => Array
                                                               (
                                                                   [completed] => 1
                                                                   [canceled] => 
                                                                   [description] => Starting VM
                                                                   [operationDescription] => Creating process for virtual machine "h" (headless)
                                                                   [timeRemaining] => Array
                                                                       (
                                                                       )

                                                                   [timeElapsed] => Array
                                                                       (
                                                                           [days] => 16391
                                                                           [hours] => 9
                                                                           [minutes] => 26
                                                                           [seconds] => 22
                                                                       )

                                                                   [percent] => 0
                                                               )

                                                       )

                                                   [success] => 1
                                                   [key] => 720f4c5f2f9c111d81c1aa4a7f53b5bc
                                               )

                                           [errors] => Array
                                               (
                                               )

                                           [persist] => Array
                                               (
                                               )

                                           [messages] => Array
                                               (
                                               )

                                       )

                               )

                       )

               )

       )

   [previous:Exception:private] => 
)

Link to comment
Share on other sites

This worked really nicely for me until I rebooted the server, now I get the phpVirtualBox login screen, and can log in with admin/admin, but after that get an error:

 

Exception Object
(
   [message:protected] => Could not connect to host (http://127.0.0.1:18083)
   [string:Exception:private] => 
   [code:protected] => 64
   [file:protected] => /volume1/web/phpvirtualbox/lib/ajax.php
   [line:protected] => 128
   [trace:Exception:private] => Array
       (
       )

   [previous:Exception:private] => 
)

 

As per a few post up from here I checked for /opt/VirtualBox, and it existed, but for good measure I deleted it, then recreated as per the instructions above.

 

Now when I try to start the package I get the following errors on the terminal:

 

/opt # cp -pR /var/packages/virtualbox/target/opt/VirtualBox /opt/VirtualBox
/opt # /var/packages/virtualbox/scripts/start-stop-status start
Starting VirtualBox kernel modules ...done.
Starting VirtualBox web serviceVBoxManage: error: Failed to create the VirtualBox object!
VBoxManage: error: Start tag expected, '<' not found.
VBoxManage: error: Location: '/root/.config/VirtualBox/VirtualBox.xml', line 1 (0), column 1.
VBoxManage: error: /home/vbox/tinderbox/4.3-lnx64-rel/src/VBox/Main/src-server/VirtualBoxImpl.cpp[531] (nsresult VirtualBox::init())
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component VirtualBox, interface IVirtualBox
...fail!
...fail!
VBoxManage: error: Failed to create the VirtualBox object!
VBoxManage: error: Start tag expected, '<' not found.
VBoxManage: error: Location: '/root/.config/VirtualBox/VirtualBox.xml', line 1 (0), column 1.
VBoxManage: error: /home/vbox/tinderbox/4.3-lnx64-rel/src/VBox/Main/src-server/VirtualBoxImpl.cpp[531] (nsresult VirtualBox::init())
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component VirtualBox, interface IVirtualBox

 

Doing a "cat /root/.config/VirtualBox/VirtualBox.xml" reveals an empty file...

 

Any ideas what is going on?

Link to comment
Share on other sites

It seems my VM's were being created in the wrong location...

 

It seems that the installation defaults to creating the VM's in the /root directory, NOT on a created volume.

This seems to have filled my "/dev/md0" which then not only stopped the VM from being able to operate, but also stopped me from being able to log into DSM (see viewtopic.php?f=2&t=4596 ).

 

Performing a "mv /root/VirtualBox\ VMs/ /volume2/" now seems to have solved all my problems :smile:

Link to comment
Share on other sites

Cheers but I have no choice in the matter...

 

From my pc I navigate to "http://192.168.22.10/phpvirtualbox/", or indeed the name of my server rather than the IP - it makes no difference.

 

Then I am presented with phpVirtualBox error box;

 

An error occurred communicating with your vboxwebsrv. No more requests will be sent by phpVirtualBox until the error is corrected and this page is refreshed. The details of this connection error should be displayed in a subsequent dialog box.

 

The subsequent dialog box says:

 

Could not connect to host (http://127.0.0.1:18083)

 

Clicking the 'details' option on the dialog shows:

 

Exception Object
(
   [message:protected] => Could not connect to host (http://127.0.0.1:18083)
   [string:Exception:private] => 
   [code:protected] => 64
   [file:protected] => /volume1/web/phpvirtualbox/lib/vboxconnector.php
   [line:protected] => 210
   [trace:Exception:private] => Array
       (
           [0] => Array
               (
                   [file] => /volume1/web/phpvirtualbox/lib/vboxconnector.php
                   [line] => 3100
                   [function] => connect
                   [class] => vboxconnector
                   [type] => ->
                   [args] => Array
                       (
                       )

               )

           [1] => Array
               (
                   [file] => /volume1/web/phpvirtualbox/lib/vboxconnector.php
                   [line] => 928
                   [function] => remote_vboxGetGuestOSTypes
                   [class] => vboxconnector
                   [type] => ->
                   [args] => Array
                       (
                           [0] => Array
                               (
                                   [fn] => vboxGetGuestOSTypes
                               )

                       )

               )

           [2] => Array
               (
                   [file] => /volume1/web/phpvirtualbox/lib/ajax.php
                   [line] => 309
                   [function] => __call
                   [class] => vboxconnector
                   [type] => ->
                   [args] => Array
                       (
                           [0] => vboxGetGuestOSTypes
                           [1] => Array
                               (
                                   [0] => Array
                                       (
                                           [fn] => vboxGetGuestOSTypes
                                       )

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

                                                       )

                                                   [errors] => Array
                                                       (
                                                       )

                                                   [persist] => Array
                                                       (
                                                       )

                                                   [messages] => Array
                                                       (
                                                       )

                                               )

                                       )

                               )

                       )

               )

           [3] => Array
               (
                   [file] => /volume1/web/phpvirtualbox/lib/ajax.php
                   [line] => 309
                   [function] => vboxGetGuestOSTypes
                   [class] => vboxconnector
                   [type] => ->
                   [args] => Array
                       (
                           [0] => Array
                               (
                                   [fn] => vboxGetGuestOSTypes
                               )

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

                                               )

                                           [errors] => Array
                                               (
                                               )

                                           [persist] => Array
                                               (
                                               )

                                           [messages] => Array
                                               (
                                               )

                                       )

                               )

                       )

               )

       )

   [previous:Exception:private] => 
)


Location:http://127.0.0.1:18083

 

:sad:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

×
×
  • Create New...