VirtualBox Plugin for unRAID v5 and v6


theone

Recommended Posts

I believe the answer is yes.  I put the files in /mnt/appdisk/lighttpd/phpvirtualbox-4.3-0 and then put that same path into the webserver gui.

 

Based on your screen shot it is clear that my webserver is not actually running because i never see the button change to "stop"  I think it is my php config.  Heck to be honest i can't even be 100% sure it is running no less configured right.  You can't use the search term "php" on this forum, you get way too many hits from random scripts and urls etc :o

 

I'm done mucking about with it tonight though and might not touch it again till the weekend.  I'll have to think on it.  I might just change to installing VB onto my win7 machine.  My only purpose for even doing it is to learn and test and it doesn't have to be on my unraid box for me to learn the intricacies of using VB.

Link to comment
I believe the answer is yes.  I put the files in /mnt/appdisk/lighttpd/phpvirtualbox-4.3-0 and then put that same path into the webserver gui.

 

Based on your screen shot it is clear that my webserver is not actually running because i never see the button change to "stop"  I think it is my php config.  Heck to be honest i can't even be 100% sure it is running no less configured right.  You can't use the search term "php" on this forum, you get way too many hits from random scripts and urls etc :o

 

I'm done mucking about with it tonight though and might not touch it again till the weekend.  I'll have to think on it.  I might just change to installing VB onto my win7 machine.  My only purpose for even doing it is to learn and test and it doesn't have to be on my unraid box for me to learn the intricacies of using VB.

 

jumperalex, It took me a while to get it all sorted out to work on my end also - I initially went thru the pain of piecing information from several posts and threads to get to the end result - also just got it to work so that i could do the same and play around with the virtual environment from within unraid.

 

but no matter what there's a plethora of experienced and novice users to help each other out and what ever you need to get it to work, just recommend you keep posting your status updates and roadblocks so that everyone can assist.

 

Also wanted to clarify do you have lighttpd from unmenu and SF web server installed?

Link to comment

thanks i appreciate it.

 

So right now I'm in the middle of building a fedora VM from the ISO on my win7-host, while doing a handbrake transcode ... its ummm.... slow haha but showing me how robust it all is.

 

As for unRaid I removed the lighttpd and php packages from unmenu and then installed SF-Core and SF-Webserver only.  My understanding is that installs lighttpd (i can clearly see it does) and php together, but I'm clearly having problems on that last bit.

Link to comment

Does the SF webserver actually say it is running? Did you modify the plugin to load the correct sqlite package? (See here.) What other plugins do you have running? Please check that there is none that installs the older openssl package version 0.9.x. You need openssl-solibs-1.0.1c-i486-3.txz.

Link to comment

Q: Does the SF webserver actually say it is running?

A: The icon showed up in the Settings tab, I told it where my web root directory was, set port to 8084, and enabled it.

I did not turn on php error logging which might have given me some clues, but I got annoyed and start my win-7 install.  Which went well after a fashion and I now have a Fedora 20 VM (woot!).  Gonna try CentOS next and then start banging around trying to break it, errr learn how it all works ;-)  I really need to learn more about LMV.  I also probably need a bigger SSD :o

 

Q: Did you modify the plugin to load the correct sqlite package? (See here.)

A: I did not.  I had no idea.  I will look at that link and get cracking.

 

Q: What other plugins do you have running? Please check that there is none that installs the older openssl package version 0.9.x. You need openssl-solibs-1.0.1c-i486-3.txz.

A: unMenu, plex, screen, apcupsd, openSSH, bpmon (or whatever it is called), and maybe one or two other unMenu packages, but the important one I'm sure then is openSSH because it does in fact install openSSL.  I will check to see what version I have.  It has an update feature I haven't checked in a while so it might even be ready to install 1.0.1c if it hasn't already.

 

Thanks for your help.

 

Link to comment

Hey everyone. Been trying to get this going for a couple days now but it just doesn't seem to work. I believe the plugin is running and active, but I'm not sure of the web server is working. When I click the "Start vboxwebserv" button it says its starting but nothing changes after the page refreshes. The log says this though.

 

"Dec 20 14:11:32 Tank01 rc.virtualbox[15137]: /opt/VirtualBox/VBoxManage setproperty websrvauthlibrary null

Dec 20 14:11:32 Tank01 rc.virtualbox[15139]: vboxwebsrv service started"

 

If I try to go to the page 10.x.x.x:8084 nothing comes up. Just the Chrome Oops page. Clicking the Web Server button and enabling that will not start either. I've attached a few screenshots. Any idea what I'm doing wrong? Lastly, I read that the error I'm getting in the second jpg could be causing problems. How can I resolve that?

 

Using 5.0.4

 

Thanks

vbox1.JPG.5070d096995568d3fba6aaf96411b6ad.JPG

vbox2.JPG.0021dfcc5ad0d70e48486cf87b3702b4.JPG

Link to comment

Your webserver is not running as the status says "Stopped". You propably have another plugin installed, that installs an older ssl version as is needed by the SF webserver. Or you didn't edit the plugin file to download the correct sqlite package. If you did everything correctly the status should state "Running".

Link to comment

Your webserver is not running as the status says "Stopped". You propably have another plugin installed, that installs an older ssl version as is needed by the SF webserver. Or you didn't edit the plugin file to download the correct sqlite package. If you did everything correctly the status should state "Running".

 

Is it possible to safely remove any existing web server plugins so I can start over? Any idea how I would do this?

 

EDIT: Something I just noticed after a reboot. In the Web Server section before selecting Enabled I see this.

 

"Warning: parse_ini_file(/var/local/emhttp/simpleFeatures.web.server.ini): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/simpleFeatures.webServer/WEBsettings.php on line 11"

 

Thanks

Link to comment

Hello,

 

I can't find a solution. I just deleted packages and reinstall after a reboot. All running fine but when I try to turn on a VM I get a Zombie process.

 

/etc/rc.d/rc.virtualbox start_vm 210518bd-b025-4a3b-bf07-9dfd6e9dd3d1

Starting Virtual Machine: 210518bd-b025-4a3b-bf07-9dfd6e9dd3d1 ...

 

20888 root      20  0  2792 1380 1060 S    0  0.0  0:00.01 rc.virtualbox     

20893 root      20  0 17228 7956 3304 S    0  0.1  0:00.01 VBoxManage       

20899 root      20  0  9288 3724 1956 S    0  0.0  0:00.00 VBoxXPCOMIPCD     

20907 root      20  0 19896 7864 4272 S    0  0.1  0:00.02 VBoxSVC           

20924 root      20  0    0    0    0 Z    0  0.0  0:00.00 VBoxHeadl

 

 

Its the same with a real VM (windows or linux) or a dummy VM I have. All those VM worked fine in 5.02 with VB.

 

:'(

 

ufff, couple hours late but a lot of problems with unraid in the reboot.

 

first didn´t reboot (with no active pids on the array), power down didnt work (via terminal or unmenu script), shutdown too.

 

Then I did a full switch off  :-[ and on. After restart only SMB flash was mounted, no disks, no shares, no unraid main page, only unmenu and terminal.

 

I did only one thing: empty file config/plugins/virtualbox/vms_sessions.cfg (that file only have one line with my win7 sessions).

 

After that (still no powerdown works) so I use reboot -n -f and ok.

 

After restart unraid s working again, no errors but still can't start VMs inside plugin.

 

--------------------------

 

I can´t use phpvirtualbox without virtualbox running due I have no SF web server running and I use a small ubuntu_server VM to run phpvirtualbox. I know its not a clean solution but I don´t know other plugin than SF Webserver. With the possible SF rewritten I´ll back with the plugin.

 

--------------------------

 

I attach my last syslog.

 

Thanks

Link to comment

@jumperalex:

You don't need to install SOAP. You have to enable it. Edit the php.ini file in /boot/config/simpleFeatures/ search for the line ;extension=soap.so and remove the ; in front of it.

Disable and reenable the webserver. That's it.

 

@Indy1204:

I think you need to install the SF base plugin. Having only the webserver one will not work.

Link to comment

Maybe the problem is here?

 

VBoxSVC.log                                                                                                                                          2178/2178              100%
VirtualBox XPCOM Server 4.3.4 r91027 linux.x86 (Nov 29 2013 16:39:43) release log
00:00:00.000527 main     Log opened 2013-12-22T16:58:21.164162000Z
00:00:00.000529 main     Build Type: release
00:00:00.000533 main     OS Product: Linux
00:00:00.000535 main     OS Release: 3.9.11p-unRAID
00:00:00.000537 main     OS Version: #4 SMP Sat Nov 23 11:30:35 PST 2013
00:00:00.000624 main     Host RAM: 7929MB total, 7557MB available
00:00:00.000629 main     Executable: /opt/VirtualBox/VBoxSVC
00:00:00.000630 main     Process ID: 8426
00:00:00.000632 main     Package type: LINUX_32BITS_GENERIC
00:00:00.107160 nspr-2   Loading settings file "/root/.VirtualBox/VirtualBox.xml" with version "1.12-linux"
00:00:00.108385 nspr-2   Failed to open "/dev/vboxdrvu", errno=2, rc=VERR_VM_DRIVER_NOT_INSTALLED
00:00:00.108666 nspr-2   VDInit finished
00:00:00.110568 nspr-2   rtldrNativeLoad: dlopen('libasound.so.2', RTLD_NOW | RTLD_LOCAL) failed: libasound.so.2: cannot open shared object file: No such file or directory
00:00:00.111486 nspr-2   Loading settings file "/mnt/cache/Apps/virtualbox/Windows7-64/Windows7-64.vbox" with version "1.12-linux"
00:00:00.113283 nspr-2   Loading settings file "/mnt/cache/Apps/virtualbox/Ubuntu-server/Ubuntu-server.vbox" with version "1.12-linux"
00:00:00.115353 nspr-2   Loading settings file "/mnt/cache/Apps/virtualbox/Dummy/Dummy.vbox" with version "1.12-linux"
00:00:09.217285 main     ERROR [COM]: aRC=VBOX_E_OBJECT_IN_USE (0x80bb000c) aIID={05f2bbb6-a3a6-4fb9-9b49-6d0dda7142ac} aComponent={Medium} aText={Medium '/mnt/cache/Apps/virtu
albox/Windows7-64/Windows 7 64.vdi' cannot be closed because it is still attached to 1 virtual machines}, preserve=false
00:00:09.217496 main     ERROR [COM]: aRC=VBOX_E_OBJECT_IN_USE (0x80bb000c) aIID={05f2bbb6-a3a6-4fb9-9b49-6d0dda7142ac} aComponent={Medium} aText={Medium '/mnt/cache/Apps/virtu
albox/Ubuntu-server/Ubuntu-server.vdi' cannot be closed because it is still attached to 1 virtual machines}, preserve=false
00:00:09.218210 Watcher  ERROR [COM]: aRC=E_ACCESSDENIED (0x80070005) aIID={fafa4e17-1ee2-4905-a10e-fe7c18bf5554} aComponent={VirtualBox} aText={The object is not ready}, prese
rve=false


--------------------------------------------------

 

Hello,

 

I can't find a solution. I just deleted packages and reinstall after a reboot. All running fine but when I try to turn on a VM I get a Zombie process.

 

/etc/rc.d/rc.virtualbox start_vm 210518bd-b025-4a3b-bf07-9dfd6e9dd3d1

Starting Virtual Machine: 210518bd-b025-4a3b-bf07-9dfd6e9dd3d1 ...

 

20888 root      20  0  2792 1380 1060 S    0  0.0  0:00.01 rc.virtualbox     

20893 root      20  0 17228 7956 3304 S    0  0.1  0:00.01 VBoxManage       

20899 root      20  0  9288 3724 1956 S    0  0.0  0:00.00 VBoxXPCOMIPCD     

20907 root      20  0 19896 7864 4272 S    0  0.1  0:00.02 VBoxSVC           

20924 root      20  0    0    0    0 Z    0  0.0  0:00.00 VBoxHeadl

 

 

Its the same with a real VM (windows or linux) or a dummy VM I have. All those VM worked fine in 5.02 with VB.

 

:'(

 

ufff, couple hours late but a lot of problems with unraid in the reboot.

 

first didn´t reboot (with no active pids on the array), power down didnt work (via terminal or unmenu script), shutdown too.

 

Then I did a full switch off  :-[ and on. After restart only SMB flash was mounted, no disks, no shares, no unraid main page, only unmenu and terminal.

 

I did only one thing: empty file config/plugins/virtualbox/vms_sessions.cfg (that file only have one line with my win7 sessions).

 

After that (still no powerdown works) so I use reboot -n -f and ok.

 

After restart unraid s working again, no errors but still can't start VMs inside plugin.

 

--------------------------

 

I can´t use phpvirtualbox without virtualbox running due I have no SF web server running and I use a small ubuntu_server VM to run phpvirtualbox. I know its not a clean solution but I don´t know other plugin than SF Webserver. With the possible SF rewritten I´ll back with the plugin.

 

--------------------------

 

I attach my last syslog.

 

Thanks

Link to comment

Hi All

 

I seem to have run into a problem getting vboxwebsrv to start, when I hit the "start vboxwebsrv" button in the gui it seems to pause for a bit and then come back and the start button is still visible.

 

I am running a cache drive so I have changed the symbolic link to /mnt/cache/VMHDD/vbox.

 

I have also change the vboxwebsrv.log location to /mnt/cache/VMHDD/vboxwebsrv.log. I noticed there was no log fill in this location so I created one and nothing is written to it at all. I did have this plugin working a while back but removed it now I at trying to add it again.

 

In php I get an error:

 

Exception Object

(

    [message:protected] => Could not connect to host (http://192.168.1.33:18083/)

    [string:Exception:private] =>

    [code:protected] => 64

    [file:protected] => /mnt/cache/WebServer/lib/vboxconnector.php

    [line:protected] => 213

    [trace:Exception:private] => Array

 

Have you guys got any tips so I can see why vboxwebsrv is not starting?

 

Thanks

 

Lee

Link to comment

So VBoxSVC.log says

 

VirtualBox XPCOM Server 4.3.4 r91027 linux.x86 (Nov 29 2013 16:39:43) release log
00:00:00.001372 main     Log opened 2013-12-23T11:54:01.912949000Z
00:00:00.001377 main     Build Type: release
00:00:00.001386 main     OS Product: Linux
00:00:00.001391 main     OS Release: 3.9.11p-unRAID
00:00:00.001396 main     OS Version: #3 SMP Wed Oct 30 13:17:02 PDT 2013
00:00:00.001579 main     Host RAM: 2024MB total, 1564MB available
00:00:00.001592 main     Executable: /opt/VirtualBox/VBoxSVC
00:00:00.001595 main     Process ID: 8304
00:00:00.001598 main     Package type: LINUX_32BITS_GENERIC
00:00:00.119862 nspr-2   Loading settings file "/root/.VirtualBox/VirtualBox.xml" with version "1.12-linux"
00:00:00.129278 nspr-2   VDInit finished
00:00:08.077543 Watcher  ERROR [COM]: aRC=E_ACCESSDENIED (0x80070005) aIID={fafa4e17-1ee2-4905-a10e-fe7c18bf5554} aComponent={VirtualBox} aText={The object is not ready}, preserve=false

 

While in the syslog I only see two lines

 

Dec 23 12:53:46 Server rc.virtualbox[8220]: /opt/VirtualBox/VBoxManage setproperty websrvauthlibrary null
Dec 23 12:53:46 Server rc.virtualbox[8222]: vboxwebsrv service started

Link to comment

VboxSVC.log is below

 

VirtualBox XPCOM Server 4.3.4 r91027 linux.x86 (Nov 29 2013 16:39:43) release log

00:00:00.000900 main    Log opened 2013-12-23T08:03:42.048005000Z

00:00:00.000904 main    Build Type: release

00:00:00.000909 main    OS Product: Linux

00:00:00.000912 main    OS Release: 3.9.11p-unRAID

00:00:00.000914 main    OS Version: #4 SMP Sat Nov 23 11:30:35 PST 2013

00:00:00.001017 main    Host RAM: 7988MB total, 7777MB available

00:00:00.001025 main    Executable: /opt/VirtualBox/VBoxSVC

00:00:00.001027 main    Process ID: 6551

00:00:00.001029 main    Package type: LINUX_32BITS_GENERIC

00:00:00.116242 nspr-2  Loading settings file "/root/.VirtualBox/VirtualBox.xml" with version "1.12-linux"

00:00:00.118476 nspr-2  Failed to open "/dev/vboxdrvu", errno=2, rc=VERR_VM_DRIVER_NOT_INSTALLED

00:00:00.118984 nspr-2  VDInit finished

00:00:08.482317 Watcher  ERROR [COM]: aRC=E_ACCESSDENIED (0x80070005) aIID={fafa4e17-1ee2-4905-a10e-fe7c18bf5554} aComponent={VirtualBox} aText={The object is not ready}, preserve=false

Link to comment

@jumperalex:

You don't need to install SOAP. You have to enable it. Edit the php.ini file in /boot/config/simpleFeatures/ search for the line ;extension=soap.so and remove the ; in front of it.

Disable and reenable the webserver. That's it.

 

@Indy1204:

I think you need to install the SF base plugin. Having only the webserver one will not work.

 

Thanks. By base do you mean having all the other plg placed in the plugins folder? I took the zip file and just extracted them all in there. If there is something else would you mind linking to it for me?

 

Thanks again

Link to comment

If you installed all plugins from the zip you have the core plugin. So my assumption it is missing was wrong. Did you install the new unraid web gui before installing SF? (Please remove it, if you did - it is not compatible to SF.) To minimize interferences from other plugins I would recommend to test with a stock install without other plugins and only SF core, webserver and virtualbox. Also there are reported problems of virtualbox with 5.04 - I don't know if they are already fixed.

 

edit:

Just noticed there is a new web gui made by bonienl available that is made for 5.04 and has a webserver plugin. Maybe it is a better idea to try this than SF?

Link to comment

So VBoxSVC.log says

 

VirtualBox XPCOM Server 4.3.4 r91027 linux.x86 (Nov 29 2013 16:39:43) release log
00:00:00.001372 main     Log opened 2013-12-23T11:54:01.912949000Z
00:00:00.001377 main     Build Type: release
00:00:00.001386 main     OS Product: Linux
00:00:00.001391 main     OS Release: 3.9.11p-unRAID
00:00:00.001396 main     OS Version: #3 SMP Wed Oct 30 13:17:02 PDT 2013
00:00:00.001579 main     Host RAM: 2024MB total, 1564MB available
00:00:00.001592 main     Executable: /opt/VirtualBox/VBoxSVC
00:00:00.001595 main     Process ID: 8304
00:00:00.001598 main     Package type: LINUX_32BITS_GENERIC
00:00:00.119862 nspr-2   Loading settings file "/root/.VirtualBox/VirtualBox.xml" with version "1.12-linux"
00:00:00.129278 nspr-2   VDInit finished
00:00:08.077543 Watcher  ERROR [COM]: aRC=E_ACCESSDENIED (0x80070005) aIID={fafa4e17-1ee2-4905-a10e-fe7c18bf5554} aComponent={VirtualBox} aText={The object is not ready}, preserve=false

 

While in the syslog I only see two lines

 

Dec 23 12:53:46 Server rc.virtualbox[8220]: /opt/VirtualBox/VBoxManage setproperty websrvauthlibrary null
Dec 23 12:53:46 Server rc.virtualbox[8222]: vboxwebsrv service started

 

I'm using version 5.0.2

Suggestions?

Link to comment

I have manage to get SF web server install and on port 8090, got phpvirtualbox extracted to my root /www and configure the config.php and i thought i hit jack pot when the phpvirtualbox login pop up ( i left the login as admin admin) but i get the error "looks like there is no xml document" i;ve read the manuals but can seem to figure out why i get this. I will attach screen shots

error.jpg.fb55e53d042f89880dfa2bf9c0ead85d.jpg

php.jpg.7938a89b7fbf1c8975758b743822c79b.jpg

virtualbox.jpg.98a8bcd5075747cc0f1496dbc0005e30.jpg

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.