VirtualBox Plugin for unRAID v5 and v6


theone

778 posts in this topic Last Reply

Recommended Posts

According to the phpvirtualbox wiki, the error " The object functionality is limited" usually occurs when phpvirtualbox is started before virtualbox is available. If you stop (kill) vboxwebsrv & restart it, does the error still occur?

 

Since the plugin is not installing phpvirtualbox, if you have phpvirtualbox starting before the plugin fully loads virtualbox, that could be the issue.

Link to post
  • Replies 777
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Hello,   I am proud to present: VirtualBox plugin for unRAID v5 and v6   The plugin installs both VirtualBox package and the VirtualBox Extension package (it does not ins

Looks like issue with 5.1.20 extension pack.  I see a brief question something like do I agree to these terms or whatever with a y/n? along the bottom of the GUI before a message saying install failed

Posted Images

Nor know what to kill ?

 

hsi is what I see

 

root     12812     1  0 16:05 ?        00:00:00 /opt/VirtualBox/VBoxXPCOMIPCD
root     12956     1  0 16:05 ?        00:00:02 /opt/VirtualBox/VBoxSVC --auto-shutdown
root     13005     1  0 16:05 ?        00:00:04 /opt/VirtualBox/vboxwebsrv -b --verbose -H 127.0.0.1 -p 18083 --pidfile /var/run/vboxwebsrv/vboxwebsrv.pid --logrotate 0 --logsize 50000 --loginterval 604800

Link to post

Rebooted wit out the vbox plugin

 

doing install manually

 

 

installpkg vbox-4.2.6-unRAID-3.4.24.tgz

VBoxManage setproperty websrvauthlibrary null

vboxwebsrv -b -H 127.0.0.1 --logfile /mnt/cache/vbox/vboxlog >/dev/null

VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.2.6-82870.vbox-extpack

 

Still same issue :-(

 

 

And this have been working last week.

 

 

Link to post

I've just installed the plugin onto a dev box (no other plugins installed at this time).  Noticed upon first entry into virtualbox setting page, there is an error regarding vms_session.cfg not found.

 

Thank you overbyrn,

will be fixed in the next release (probably today).

 

 

Link to post

It works now , I installed everything from the command prompt again , BUT I deleted everything in /boot/custom/vbox/ first, rhen rebooted

 

then.....

 

installpkg vbox-4.2.6-unRAID-3.4.24.tgz

VBoxManage setproperty websrvauthlibrary null

vboxwebsrv -b -H 127.0.0.1 --logfile /mnt/cache/vbox/vboxlog >/dev/null

VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.2.6-82870.vbox-extpack

 

Now to play with the plugin !!

 

//Peter

 

 

 

Link to post

I have everything installed but when I go to login with phpvb, I get this

 

Exception Object

(

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

    [string:Exception:private] =>

    [code:protected] => 64

    [file:protected] => /mnt/cache/apps/webserver/lib/ajax.php

    [line:protected] => 128

    [trace:Exception:private] => Array

        (

        )

 

    [previous:Exception:private] =>

)

Link to post

This is a fantastic plugin -- I love being able to manage everything from the unraid GUI.

 

One question -- does the plugin save the state of the VM during a powerdown/restart of Unraid?  I know in the past I had issues with VM's after they weren't saved or quit gracefully when I was forced to reboot my server.

 

I've done this myself by adding the following line to /etc/rc.d/rc.local_shutdown

 

VBoxManage controlvm <vm name> savestate

Link to post

When unRAID goes offline/shutsdown it runs the event handler:

/usr/local/emhttp/plugins/virtualbox/event/unmounting_disks

 

Which stops all needed components of the plugin to cleanly shutdown including savestate for all running VMs.

/etc/rc.d/rc.virtualbox stop

 

Link to post

trying to figure out why the install wont complete on my unraid - so i ran the rc. file manually and got the following:

 

root@Tower:/etc/rc.d# ./rc.virtualbox install
rc.virtualbox[16385]: Virtualbox package (v4.2.6) already installed - skipped installation
rc.virtualbox[16386]: Installing Virtualbox Extension package (v4.2.6)...
0%...
Progress state: NS_ERROR_FAILURE
VBoxManage: error: Failed to install "/boot/config/plugins/virtualbox/Oracle_VM_VirtualBox_Extension_Pack-4.2.6.vbox-extpack"
VBoxManage: error: The installer failed with exit code 1: VBoxExtPackHelperApp: error: The owner is not root: '/mnt/cache'
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ExtPackManager, interface IExtPackManager
VBoxManage: error: Context: "int handleExtPack(HandlerArg*)" at line 1112 of file VBoxManageMisc.cpp

 

/mnt/cache is owned by nobody:nobody......  it wants it owned by root?  and also where is it trying to install on /mnt/cache - there is no entry to specify on the web ui screen....

 

Myk

 

Link to post

It does not try to install on /mnt/cache. It installs under VirtualBox folder /opt/VirtualBox/ specifically /opt/VirtualBox/ExtensionPacks/Oracle_VM_VirtualBox_Extension_Pack/.

 

Are you trying to run: /etc/rc.d/rc.virtualbox install ?

 

What is the output for ls -las /mnt/cache?

What is the output for ls -las /opt/VirtualBox?

What is the output for ls -las /opt/VirtualBox/ExtensionPacks?

 

What do you see in the WEBUI?

 

Link to post

ok, i have lampp installed already for my newznab and its installed in /opt already - which is a symlink to /mnt/cache/.opt so virtualbox is going to /mnt/cache/.opt as well....

 

how can I have both?  as /mnt/cache is owned by nobody?

 

root@Tower:/opt# ls -lsa /mnt/cache
total 4201098
      1 drwxrwxrwx 18 nobody users        536 2013-02-12 07:47 ./
      0 drwxr-xr-x 17 root   root           0 2013-02-12 02:15 ../
      1 drwxrwxrwx 14 nobody users        648 2013-02-09 17:26 .FlashBackup/
      0 drwxrwxrwx  5 nobody users        160 2013-01-31 16:33 .couchpotato/
      1 drwxrwxrwx  8 nobody users        528 2012-03-04 18:29 .di-4.31/
      0 drwx------  3 nobody users        464 2013-02-12 02:19 .dropbox/
   2695 -rw-r--r--  1 root   root     2752877 2013-02-12 06:42 .locatedb
      0 drwxr-xr-x  5 root   root         216 2013-02-01 17:52 .opt/
      1 drwxrwxrwx 18 nobody users        984 2013-01-14 15:59 .sabnzbd/
      0 drwxrwxrwx  5 nobody users        312 2013-02-12 10:17 .sickbeard/
      1 drwxrwxrwx  6 nobody users        520 2013-02-12 02:17 .subsonic/
      0 drwxrwxrwx  2 root   root          48 2013-02-12 02:47 .test/
4198400 -rw-rw-rw-  1 nobody users 4294967296 2013-02-07 22:17 .unraid-swapfile
      0 drwxrwxrwx  2 root   root         112 2013-02-12 03:22 .virtualbox/
      0 drwxrwxrwx  8 nobody users        368 2013-02-09 22:53 .webroot/
      0 drwxrwxrwx  3 nobody users         72 2013-02-12 02:23 RecycleBin/
      0 drwxrwxrwx  3 nobody users         72 2013-02-12 07:42 Sort\ Thru/
      0 drwxrwxrwx  3 nobody users         80 2013-02-12 07:47 TV/
root@Tower:/opt#

 

the .virtualbox is where I have my .ova file I want to run in VB

 

Thanks

Myk

 

Link to post

Excelent work!!

 

This plugin increase quality level of unraid.update system, buttons layout, etc... Great. I have no issues at all.

 

Maybe more user friendly for veginners about a complete install with optional webserver and phpvirtualbox but really excellent work.

Link to post

ok, i have lampp installed already for my newznab and its installed in /opt already - which is a symlink to /mnt/cache/.opt so virtualbox is going to /mnt/cache/.opt as well....

 

how can I have both?  as /mnt/cache is owned by nobody?

 

the .virtualbox is where I have my .ova file I want to run in VB

 

Thanks

Myk

 

Can you try running as user nobody:

sudo -u nobody VBoxManage extpack install /boot/config/plugins/virtualbox/Oracle_VM_VirtualBox_Extension_Pack-4.2.6.vbox-extpack

 

Link to post

Excelent work!!

 

This plugin increase quality level of unraid.update system, buttons layout, etc... Great. I have no issues at all.

 

Maybe more user friendly for veginners about a complete install with optional webserver and phpvirtualbox but really excellent work.

I thought about it... To give option of installing phpVirtualBox if SimpleFeatures webserver is detected...

Maybe in the future  :).

 

I hope phpVirtualBox is not going to be discontinued according to the author's post on the google code website.

 

Link to post

ok, i have lampp installed already for my newznab and its installed in /opt already - which is a symlink to /mnt/cache/.opt so virtualbox is going to /mnt/cache/.opt as well....

 

how can I have both?  as /mnt/cache is owned by nobody?

 

the .virtualbox is where I have my .ova file I want to run in VB

 

Thanks

Myk

 

Can you try running as user nobody:

sudo -u nobody VBoxManage extpack install /boot/config/plugins/virtualbox/Oracle_VM_VirtualBox_Extension_Pack-4.2.6.vbox-extpack

 

root@Tower:~# sudo -u nobody VBoxManage extpack install /boot/config/plugins/virtualbox/Oracle_VM_VirtualBox_Extension_Pack-4.2.6.vb
ox-extpack
VBoxManage: error: Failed to initialize COM because the global settings directory '/root/.VirtualBox' is not accessible!

 

/root/.VirtualBox is owned by root - isnt that where some logs are being kept?

 

Myk

 

Link to post

log file in /root/.Virtualbox

 

VirtualBox XPCOM Server 4.2.6 r82870 linux.x86 (Dec 19 2012 15:42:02) release log
00:00:00.000300 main     Log opened 2013-02-12T21:47:21.846729000Z
00:00:00.000304 main     OS Product: Linux
00:00:00.000305 main     OS Release: 3.4.26-unRAID
00:00:00.000306 main     OS Version: #2 SMP Mon Jan 28 17:00:22 PST 2013
00:00:00.000328 main     Host RAM: 1728MB total, 296MB available
00:00:00.000331 main     Executable: /mnt/cache/.opt/VirtualBox/VBoxSVC
00:00:00.000332 main     Process ID: 20034
00:00:00.000333 main     Package type: LINUX_32BITS_GENERIC
00:00:00.323190 nspr-2   Successfully initialised host USB using sysfs
00:00:00.324769 nspr-2   VDInit finished
00:00:05.417858 Watcher  ERROR [COM]: aRC=E_ACCESSDENIED (0x80070005) aIID={3b2f08eb-b810-4715-bee0-bb06b9880ad2} aComponent={VirtualBox} aText={The object is not ready}, preserve=false

 

Myk

 

Link to post

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.