VirtualBox compiled for unRAID


Recommended Posts

I'm trying to compile this, but one thing is not same as in the guide as installed stock unraid

 

 

http://lime-technology.com/wiki/index.php/Installing_VirtualBox_in_unRAID

 

on one line is stated

 

mv /usr/src/linux /usr/src/linux_original

 

but on my system it's looks like this (rc12a)

 

root@tower:~# cd /usr/src/
root@tower:/usr/src# ls
linux-3.4.26-unRAID/  slackbuilds/
root@tower:/usr/src#

 

 

so I can't make this

 

mv /usr/src/linux /usr/src/linux_original

if [ ! -d "$P/headers" ]; then
   mkdir -p $P/headers
   tar -C $P/headers -zxvf $P/packages/linux-2.6.32.9.tar.gz
   cp -rf /usr/src/linux_original/* $P/headers/linux-2.6.32.9/
   cp -f /usr/src/linux_original/.config $P/headers/linux-2.6.32.9/
fi

ln -sf $P/headers/linux-2.6.32.9 /usr/src/linux
[ -e "/usr/include/linux" ] && mv /usr/include/linux /usr/include/linux_original
[ -e "/usr/include/asm-generic" ] && mv /usr/include/asm-generic /usr/include/asm-generic_original
[ -e "/usr/include/asm" ] && mv /usr/include/asm /usr/include/asm_original
ln -sf /usr/src/linux/include/asm-generic /usr/include/asm-generic
ln -sf /usr/src/linux/include/linux /usr/include/linux
ln -sf /usr/src/linux/arch/x86/include/asm /usr/include/asm

cd /usr/src/linux && make oldconfig && make

 

so I don't get any further-- anyone that can help me ;.)

 

 

 

 

 

//Peter

Link to comment
  • Replies 256
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

The instructions were originally created for unRAID 4.x. In many unRAID 4 versions the kernel location is "/usr/src/linux". In unRAID 5.x, the kernel location started including the kernel version in the path name (for example, unRAID 5RC10's kernel location is "/usr/src/linux-3.4.24-unRAID").

 

For unRAID 5RC12, I would change the command to

mv /usr/src/linux-3.4.26-unRAID /usr/src/linux_original

 

Also - It looks like you are trying to use the scripts for unRAID 4.7 (as I see kernel 2.6.32.9 referenced in several places). I usually use the instructions instead of the scripts because if something messes up, I am able to tell which step did not  respond as I expected.

 

Hope this helps. Let us know if you run into anything else & need assistance.

Link to comment
  • 1 month later...
  • 1 month later...

Thanks for writing this, I'm looking forward to getting it installed and trying it out.

 

Just found an issue with the plugin though. You are grepping for "Most current version" to get the version number, but on http://vbox.a1aina.com/ you've left in those words for 4.2.14, so the plugin isn't getting it right in order to build the filenames for download.

Link to comment
  • 1 month later...

I'm able to view the site & download files. It is possible that the host reached its bandwidth capacity; advanced statistics were not turned on (now on) so hard to tell. Let me know if the problem reoccurs & I will see if I need to add more bandwidth or change hosts. For now it is working.

Link to comment

So I got Virtualbox and phpvirtualbox installed on unraid V5 Final with simplefeatures webserver - at first i got the SOAP Extensions not enabled on php - fixed that by editing the php.ini in /boot/config/simplefeatures folder and removed ";" from ";extension=soap" line, but now when i got to virtualbox web console i get a logon screen - enter admin admin now instead of a Soap Extension error i get no XML document - is there something that i missed or do i not have everything installed correctly - I have all the install and logging for vbox going to my cache drive.

Link to comment

kontu, I've not tried to use pass through as my hardware does not support it. I'd probably be using ESXi if I had the option. However, in my searching just now, I came across this page on the subject relating to VirtualBox: http://www.virtualbox.org/manual/ch09.html#pcipassthrough. Numbers 5 & 6 in the list mention that you Linux version must be compiled, recognize & use IOMMU support. Since I do not have hardware capable of this, you will likely need to compile your own headers & package VirtualBox to use this (passthrough) feature.

 

I am not positive this is the issue, but perhaps the link will point you in the right direction. If you decide to try to compile VirtualBox for yourself, a wiki page, http://lime-technology.com/wiki/index.php?title=Installing_VirtualBox_in_unRAID, explains how to do so. If you solve the issue, please post to let others that might be interested in using passthrough know. Perhaps someone else here will be able to offer further assistance. Good luck!

Link to comment

advices that some ppl might need.

i am no pro in this stuffs, but i got it work

 

i have these installed:

unraid 5.0

simple features 1.0.11

VirtualBox v4.2.16

VirtualBox Extension v4.2.16

VirtualBox Guest Additions v4.2.16

VirtualBox Plugin  v0.5.2

 

config edited: \\tower\flash\config\simpleFeatures\php.ini

enabled "extension=soap.so"

 

config edited: \\tower\www\phpvirtualbox\config.php

var $noAuth = true;

 

manually started vboxwebsrv using telnet

vboxwebsrv -b -H [server ip address] --logfile /dev/null >/dev/null

 

when u create virtual disk, remember to point to //mnt/user OR //mnt/disk

or vm will crash for no reason.

Link to comment

kontu, I've not tried to use pass through as my hardware does not support it. I'd probably be using ESXi if I had the option. However, in my searching just now, I came across this page on the subject relating to VirtualBox: http://www.virtualbox.org/manual/ch09.html#pcipassthrough. Numbers 5 & 6 in the list mention that you Linux version must be compiled, recognize & use IOMMU support. Since I do not have hardware capable of this, you will likely need to compile your own headers & package VirtualBox to use this (passthrough) feature.

 

I am not positive this is the issue, but perhaps the link will point you in the right direction. If you decide to try to compile VirtualBox for yourself, a wiki page, http://lime-technology.com/wiki/index.php?title=Installing_VirtualBox_in_unRAID, explains how to do so. If you solve the issue, please post to let others that might be interested in using passthrough know. Perhaps someone else here will be able to offer further assistance. Good luck!

 

Thanks laine, I'll do some more digging on that and see if I can accomplish anything with it.

Link to comment

I am trying to load up php but I can not find the php.ini file listed where others have it.

There is nothing in the  /boot/config/simplefeatures folder except for stats and webserver.

In simple features settings for webserver it shows as running now after modifing the .plg file for webserver.

So close here.

 

Link to comment

Due to Google Code's recent changes (click here for info on GoogleCode's policy change), the PHPVirtualBox project has been moved to SourceForge.

 

PHPVirtualBox common errors & issues: http://sourceforge.net/p/phpvirtualbox/wiki/Common%20phpVirtualBox%20Errors%20and%20Issues/

 

PHPVirtualBox wiki page: http://sourceforge.net/p/phpvirtualbox/wiki/Home/

 

PHPVirtualBox forums (for issues not covered in their wiki): http://sourceforge.net/p/phpvirtualbox/discussion/

 

 

Link to comment
  • 1 month later...

There is a new VirtualBox version 4.3:

http://www.oracle.com/us/corporate/press/2033376

 

But phpvirtualbox doesn't seem to be compatible yet (as of 4.3 RC1):

http://sourceforge.net/p/phpvirtualbox/discussion/general/thread/e0ae6638/

 

Just to update:

There seems to be a phpvirtualbox 4.3 which is supposed to support the VirtualBox 4.3.x releases.

 

Will test once lainie compiles the new 4.3 version.

 

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.