VirtualBox Plugin for unRAID v5 and v6


theone

Recommended Posts

First, I want to thank the author of this excellent plugin. I found it pretty easy to get a Windows 7 VM running within VirtualBox on my unraid server. I can use Remote Desktop or Teamviewer to connect to the VM, but I can't figure out how to connect with UltraVNC. If anyone is using UltraVNC to connect to their Virtualbox Windows VM, I'd be interested in learning how you made it work.

I use RDP to connect both directly to the Windows VM and to the VRDP console that VBOX provides.  For instance to connect to my "Online" VM I can use N54L:5003 as the computer name in a Windows RDP connection dialog since I have the "Online" VRDP port setting to 5003 and it is installed on my unRAID server named N54L (which is on my N54L).  I have the authorization setup to default which lets anything through so I can use ANY userid to connect.  I like it better than VNC because I'm already using RDP to connect directly to Windows VMs on my N54L and other ESXi Windows guests.  It is a smoother experience then the VNC clients I have one of which is Ultra but is a couple of years old now.
Link to comment

I use RDP to connect both directly to the Windows VM and to the VRDP console that VBOX provides.  For instance to connect to my "Online" VM I can use N54L:5003 as the computer name in a Windows RDP connection dialog since I have the "Online" VRDP port setting to 5003 and it is installed on my unRAID server named N54L (which is on my N54L).  I have the authorization setup to default which lets anything through so I can use ANY userid to connect.  I like it better than VNC because I'm already using RDP to connect directly to Windows VMs on my N54L and other ESXi Windows guests.  It is a smoother experience then the VNC clients I have one of which is Ultra but is a couple of years old now.

 

Thank you for pointing me in this direction. I still can't get UltraVNC working, so the VRDP console in VBOX is a good solution. The cursor seems to really lag through. I must not have the guest additions installed properly. I see the guest addition iso on /boot/config/plugins/virtualbox, but there must be another step to install it.

 

Update: Got guest additions installed now and that has resolved the lagging cursor problem.

Link to comment

Had the same problem.

http://vbox.a1aina.com/files/vbox-4.3.4-unRAID-3.9.11p.tgz is missing doinst.sh inside /install folder

I added the one from vbox-4.3.2-unRAID-3.9.11p to the archive and the setting page now looks right and I can startup my VM's fine.

 

Hey,

 

I cant seem to get it to work, i tried adding the doinst.sh to the tgz archive but with no succes. Could you maybe upload your file so I could use it aswell?

 

Thanks in advance!

Link to comment

New plugin version posted 0.5.3:

 

0.5.3    - Added changelog history

          - Enabled changing of Mount and Startup options also when virtualbox is running - They impact only during plugin start

          - Only if VirtualBox installed give option to update from local or online versions if exist otherwise download options

          - Changed "vboxmanage" to correct case "VBoxManage" and added full path "/opt/Virtualbox/VBoxManage"

          - Added to log confirmation that installation of packages completed correctly.

          - If "VirtualBox LOCAL version different than INSTALLED version" then function changed to "update" instead of "install"

          - Duplicated all "logger" output also to regular output "echo"

          - Added --timeout=60 on all wget commands

          - Minor UI Change

 

Link to comment

 

Thanks theone,

 

Is it neccessary a reboot after update/reinstall?

 

Still I cant turn on VMs. Log says starting vm but not really

 

Regards

 

New plugin version posted 0.5.3:

 

0.5.3    - Added changelog history

          - Enabled changing of Mount and Startup options also when virtualbox is running - They impact only during plugin start

          - Only if VirtualBox installed give option to update from local or online versions if exist otherwise download options

          - Changed "vboxmanage" to correct case "VBoxManage" and added full path "/opt/Virtualbox/VBoxManage"

          - Added to log confirmation that installation of packages completed correctly.

          - If "VirtualBox LOCAL version different than INSTALLED version" then function changed to "update" instead of "install"

          - Duplicated all "logger" output also to regular output "echo"

          - Added --timeout=60 on all wget commands

          - Minor UI Change

408721359.254400.jpg.5fdd792c54c829f481294060132639a2.jpg

Link to comment

 

sure. No error.

 

Dec 15 12:26:19 unraid kernel: mdcmd (191): spindown 6
Dec 15 14:31:51 unraid kernel: mdcmd (192): spindown 1
Dec 15 14:31:52 unraid kernel: mdcmd (193): spindown 2
Dec 15 14:31:53 unraid kernel: mdcmd (194): spindown 4
Dec 15 14:32:24 unraid kernel: mdcmd (195): spindown 0
Dec 15 14:32:24 unraid kernel: mdcmd (196): spindown 3
Dec 15 14:43:16 unraid rc.virtualbox[7973]: /opt/VirtualBox/VBoxManage setproperty websrvauthlibrary null
Dec 15 14:43:16 unraid rc.virtualbox[7975]: vboxwebsrv service started
Dec 15 14:43:45 unraid rc.virtualbox[8102]: Starting Virtual Machine: 210518bd-b025-4a3b-bf07-9dfd6e9dd3d1 ...

 

no extra info after that.

 

I´m rebooting now. I´ll edit in a few minutes.

Link to comment

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

 

 

syslog-2013-12-15.txt.zip

Captura_de_pantalla_2013-12-15_a_las_16_29_01.jpg.056e33b8cf5c98674a73d8a887ce8c59.jpg

Link to comment

I keep getting the following error when I try to make a virtual machine

00:21:23.993448 Medium::Task ERROR [COM]: aRC=VBOX_E_FILE_ERROR (0x80bb0004) aIID={05f2bbb6-a3a6-4fb9-9b49-6d0dda7142ac} aComponent={Medium} aText={Could not create the medium storage unit '/root/VirtualBox VMs/ubuntu/ubuntu.vdi'.
00:21:23.993464 Medium::Task VDI: disk would overflow creating image '/root/VirtualBox VMs/ubuntu/ubuntu.vdi' (VERR_DISK_FULL)}, preserve=false

 

I'm getting this in the log but it seems like it's trying to save it to my ram and not to the actual cache drive :(

Dec 17 14:23:07 Tower rc.virtualbox[28156]: Symbolically linked /mnt/cache/vbox to /root/.VirtualBox

 

uweLqy1.png

Link to comment

A few notes along the way as I try to do this:

 

Virtualbox Extensions: while the instructions here say they are included, your instructions here ==> http://vbox.a1aina.com/install.php say they need to be downloaded.  I missed the clue in the OP and then got confused when i looked at your a1aina page, all coupled with the fact that my UnRaid gui showed it was install all conspired to make me confused

 

lighttpd: AFAIK Simplefeatures is not an option for 5.0 so I went the unmenu route.  I had to dig around to figure out how to configure and actually start lighttpd.  I did figure it out though so for posterity and to save other's time (assuming I did in fact do it right) once you install via unmenu, you have to:

 

  -- copy the default config from here  /usr/doc/lighttpd-1.4.19/lighttpd.conf to somewhere on your flashdrive.  I choose /boot/packages because that is where the rest of lighttpd is installed by unmenu

  -- then make the following changes

server.document-root = "/mnt/appdisk/lighttpd/virtualbox"  <==== this needs to be a location you created. 
server.port          = 8084                                <==== I only choose this because theone did
dir-listing.activate = "enable"                            <==== to be honest I can't validate this but that is the info I found in UnRaid forums

I made no other changes to lighttpd.conf

 

The command to start lighttpd is:

/usr/sbin/lighttpd start -f /boot/packages/lighttpd.conf

which you should copy to your GO script

 

phpVirtualbox: has moved from http://code.google.com/p/phpvirtualbox/ to http://sourceforge.net/projects/phpvirtualbox/files/?source=navbar

 

I grabbed version 4.3.0 of phpVirtualBox. The only changes I made was to rename config.php-example to config.php aqnd nothing else.

[shadow=red,left][glow=red,2,300]

And now we get to my problem. [/glow][/shadow]

 

I can't seem to get the web server running.  I click on the Start Vboxwebsrv button and I see

/etc/rc.d/rc.virtualbox start_vboxwebsrv
/opt/VirtualBox/VBoxManage setproperty websrvauthlibrary null
vboxwebsrv service started

But when I go to tower:8084 and click on the folder I put phpVirtualBox in, "phpvirtualbox-4.3-0" all I see is an empty page (attached).  I believe lighttpd is installed correctly because it is serving up the directory of /mnt/appdisk/virtualbox and I can see the "phpvirtualbox-4.3-0" folder.  When I click on that, and get the blank page, the browser tab is named "phpVirtualBox" so I've done something at least partly right re: copying the phpVirtualBox files from the zip i downloaded.

 

I've also attached a copy of my webgui page and syslog.

 

For completness the location I set for the logfile does exist and I typed it correctly (compare to my screen shot):

root@Tower:~# cd /mnt/appdisk/virtualbox/
root@Tower:/mnt/appdisk/virtualbox#

but there are no files in there.

 

The location for the symbolic link:

root@Tower:/mnt/appdisk/virtualbox# cd /mnt/appdisk/vbox
root@Tower:/mnt/appdisk/vbox#

similarly exists and there are indeed files in there.

 

Any help is greatly appreciated.

 

empty_phpVirtualBox.jpg.de7344a03d3b5421f884a244b190000d.jpg

virtualbox_config.jpg.04f5f5cb5fe70ed6e8a88266f15eb95c.jpg

syslog-2013-12-17.zip

Link to comment

Does the unmenu lighttpd install php? If it is only the webserver that gets installed, this is not sufficient to run phpvirtualbox. You also have to install php, make sure lighttpd calls php correctly (mod_fastcgi is installed as a server module) and in php enable the soap extension.

Link to comment

peter_sm is correct (though only partly). I'm using it myself that way.

 

It doesn't run out of the box however. The SF webserver plugin has to be modified and the soap extension has to be enabled, too. Also the SF webserver plugin might clash with certain plugins and stops working if they are installed.

 

So it depends a little bit on luck, what plugins you use and ones personal linux skills and/or edurance in reading long forum threads to make it work. ;)

Link to comment

Yeah I'm just not inclined to install Simple Features Base in order to get SF webserver.  Too many problems in the past so now I'm afraid of the fire ;-)

 

However you are surely right about php not being installed.  I was not aware that I needed that as well.  I'm pretty sure php is available via unmenu and I will take a run at it tonight.  Thank you very much.

 

FWIW, that detail should probably be part of the instructions even if it is something along the lines of, "install SF web server to get lighttpd and php installed, otherwise you will have to install each yourself."

 

I'm also planning to update my main post as I go along with these little gems as well my attempts to run a CentOS-VM with PMS, utorrent, and handbrake, as well as a Win7-VM that will be a clone of my PC (fingers crossed on that one haha).  All as a way to get ready for the future of UnRaid-NG or whatever Ironicbadger ends up calling it :)

 

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.