Jump to content
theone

VirtualBox Plugin for unRAID v5 and v6

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.

Share this post


Link to post

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

Share this post


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.

 

 

Share this post


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).

 

 

Share this post


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

 

 

 

Share this post


Link to post

How do you install a new VM after installing the plugin? Everything seems to be running smoothly but I don't know what to do next.

 

I got to "http://tower:10183/" but that doesn't seem to do anything.

Share this post


Link to post

How do you install a new VM after installing the plugin? Everything seems to be running smoothly but I don't know what to do next.

 

I got to "http://tower:10183/" but that doesn't seem to do anything.

 

You have to install phpVirtualBox and WebServer - it is not part of this plugin.

 

Share this post


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] =>

)

Share this post


Link to post

Posted new plugin version 0.2.7 (you can update via the WEBUI)

Posted new WEBUI screenshot

 

Share this post


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

Share this post


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

 

Share this post


Link to post

New plugin version 0.3.

 

Startup sequence changed - virtualbox installed and started only after array mounted.

Share this post


Link to post

is there a way to limit memory size that VBOX can grab for its use?

I have a 8GB UNRAID then before vbox will have about 6GB free but after vbox running, all memory is used up.

 

Share this post


Link to post

When you set up a virtual machine using phpVirtualBox (not through the plugin) then you can specify the amount of memory that you allocate for that virtual machine.

 

Are you using phpVirtualBox?

 

Share this post


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

 

Share this post


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?

 

Share this post


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

 

Share this post


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.

Share this post


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

 

Share this post


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.

 

Share this post


Link to post

New version 0.4.1 - Fixed: Icon file deleted when upgrading plugin without restarting server

Share this post


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

 

Share this post


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

 

Share this post


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.