× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

Re: Help and questions on Virtualbox install for 6.6.0

funglenn
Luminary

Help and questions on Virtualbox install for 6.6.0

Looking to install Virtualbox 6.6.0  and this is going to seem like a dumb questions, sorry, new and learning.
Once it is installed, how do you it up? is it all done via command line? is there a gui that runs? i can not see how this would actually work ontop of the Base readynas OS.
As I write this i just figured out--that is why people need the video out enabled on the box isn't it? anyway to run this if i do not have a way to get keyboard, monitor mouse to where my Readynas is?

Also would the VM have full access to the ReadyNAS shares?  My crazy plan is to attempt to use a VM running fulltime to use a windows based backup program to backup to amazon S3 from the readnas shares. I think my 516 has the HP to do it, if I only use Tiny7 or something like that.


trying to build/use the great work of JMehring and CMassey:

I figured on a clean install in need the below updated to use ReadyNASOS_V6.6.0_WW_src.zip for me and will be using 5.1.14 as the latest build.
I know this is Debian 8 (for 6.6.0 and newer) and that means I need a Jessie install vs a Wheesy right?

But what is linux-30.101-040 reference?   

thanks
------------------------------------------------------

    ## Extract and copy kernel files
    mkdir tmp
    mv ReadyNASOS_V6.6.0_WW_src.zip tmp
    cd tmp
    unzip ReadyNASOS_V6.6.0_WW_src.zip
    cp -rp linux-3.0.101-0.40 /data/.apps
    ln -s /data/.apps/linux-3.0.101-0.40 /usr/src/linux-3.0.101-0.40

    ## Installation kernel files (NOTE: I did this step a few times before I got it working so let me know if this doesn't work)
    apt-get update
    apt-get install build-essential
    apt-get install vim git lm-sensors telnet
    export KERN_DIR=/usr/src/linux-3.0.101-0.40
    cd /usr/src/linux-3.0.101-0.40
    cp /data/VirtualBox/tmp/linux-3.0.101-0.40/arch/x86/configs/defconfig.x86_64 /usr/src/linux-3.0.101-0.40/.config
    # ** Check kernel install options and modules
    make menuconfig
    make ARCH=x86_64
    make modules_install ARCH=x86_64
    apt-get install libqt4-opengl libvpx1



   ## Installation of VirtualBox
    cd /data/VirtualBox/
    dpkg -i virtualbox-4.3_4.3.20-96996~Debian~wheezy_amd64.deb
    apt-get -f install
    /etc/init.d/vboxdrv setup
    modprobe vboxdrv
    modinfo misc/vboxdrv.ko

    ## Upgrade VirtualBox Extension Pack
    VBoxManage extpack uninstall "Oracle VM VirtualBox Extension Pack"
    VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.3.20-96996.vbox-extpack

thanks

Message 1 of 25

Accepted Solutions
funglenn
Luminary

Re: Help and questions on Virtualbox install for 6.6.0

Thank you all!  it works. This is the commands I used, with

VBoxHeadless --startvm <uuid|name> --vrde on   

to run the script.

 

 


unzip ReadyNASOS_V6.6.0_WW_src.zip
cp -rp linux-4.1.30-x86_64 /data/.apps
ln -s /data/.apps/linux-4.1.30-x86_64 /usr/src/linux-4.1.30-x86_64

apt-get update
apt-get install build-essential
apt-get install vim git lm-sensors telnet
apt-get install bc

apt-get install libqt4-opengl libvpx1

apt-get install -f
export KERN_DIR=/usr/src/linux-4.30-x86_64
cd /usr/src/linux-4.1.30-x86_64
cp /data/VirtualBox/tmp/linux-4.1.30-x86_64/arch/x86/configs/defconfig.x86 /usr/src/linux-4.1.30-x86_64/.config

# ** Check kernel install options and modules
make ARCH=x86_64 oldconfig && make ARCH=x86_64

## Installation of VirtualBox
cd /data/VirtualBox/
dpkg -i virtualbox-4.3_4.3.20-96996~Debian~wheezy_amd64.deb
apt-get -f install
/etc/init.d/vboxdrv setup
modprobe vboxdrv

cd
## Upgrade VirtualBox Extension Pack
VBoxManage extpack uninstall "Oracle VM VirtualBox Extension Pack"
VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.3.20-96996.vbox-extpack

 

View solution in original post

Message 21 of 25

All Replies
mdgm-ntgr
NETGEAR Employee Retired

Re: Help and questions on Virtualbox install for 6.6.0

Can you send in your logs (see the Sending Logs link in my sig)?

 

The Linux-3.0.101 reference is to the kernel we used at the time. We now use a 4.1 kernel.

 

VirtualBox is managed from the command line

I believe there is a PHP front end that you may be able to install if you'd rather use a GUI.

Message 2 of 25
funglenn
Luminary

Re: Help and questions on Virtualbox install for 6.6.0

mdgm,

 

thank you. do you have any other details about the PHP front end? also does that mean i would still need a monitor hooked up to the NAS or would the PHP also push everything to a browser window somewhere else?

 

Do not know if my logs will help yet--i have not modified my box and have a standard 6.6.0 load.  However if it helps discussion and helps to get me partipcular answers for my installation, i will be glad to do it.

 

You said the 6.6.0 uses the 4.1 kernel -- that is all still under Debian 8 platform yes?

 

Thanks!

Message 3 of 25
mdgm-ntgr
NETGEAR Employee Retired

Re: Help and questions on Virtualbox install for 6.6.0

You don't need a monitor hooked up to your NAS. Hooking up a monitor and keyboard would enable you to enter the shell commands via that but it would have the same support implications as using SSH.

 

At the very least the date in bios_ver.log from the logs would be a help.

 

The kernel and the core OS are two different things. We've used the 4.1 kernel since 6.4.0 back when we were still using a core OS based on Debian 7. From 6.6.0 we now base the core OS on Debian 8.

Message 4 of 25
mdgm-ntgr
NETGEAR Employee Retired

Re: Help and questions on Virtualbox install for 6.6.0

The bios_ver.log looks good. VT-x is enabled on your system so you can run 64-bit VMs.

Message 5 of 25
funglenn
Luminary

Re: Help and questions on Virtualbox install for 6.6.0

thanks.. but the installation is proving disasterous.....I unpacked the ReadyNASOS_V6.6.0_WW_src.zip and the system ran out of space.  is that just because i was in a VM? i really am not  a linux guy and trying to learn....

 

 

Thankfully, i am working this on my VM of 6.6.0 and not killing my production system!

Message 6 of 25
funglenn
Luminary

Re: Help and questions on Virtualbox install for 6.6.0

has anyone tried and successfully gotten virtualbox to run on 6.6 running the new jeesie variant? i have not

 

thankfully my backup program is having better luck.... 😞

Message 7 of 25
mdgm-ntgr
NETGEAR Employee Retired

Re: Help and questions on Virtualbox install for 6.6.0

You would need to extract it to the data volume (i.e. if the data volume is called 'data', somewhere under /data) not the 4GB root volume. Depending how small or large your VM disk is it may not have room to hold this.

Message 8 of 25
funglenn
Luminary

Re: Help and questions on Virtualbox install for 6.6.0

thanks that worked great. Data had enough space and i extracted the linux-4.1.30-x86_64 folder.

 

However the kernel failed and I am not sure why.none of the make commands completed succesfully.

 Again this is a fresh install on 6.6.0

 Here is what i tried: (hopeing for some community thoughts)

 

## Extract and copy kernel files
mkdir tmp
cd tmp
wget http://www.downloads.netgear.com/files/GPL/ReadyNASOS_V6.6.0_WW_src.zip

unzip ReadyNASOS_V6.6.0_WW_src.zip
cp -rp linux-4.1.30-x86_64 /data/.apps
ln -s /data/.apps/linux-4.1.30-x86_64 /usr/src/linux-4.1.30-x86_64

## Installation kernel files (NOTE: I did this step a few times before I got it working so let me know if this doesn't work)
apt-get update

apt-get install build-essential
apt-get install vim git lm-sensors telnet
export KERN_DIR=/usr/src/linux-4.1.30-x86_64
cd /usr/src/linux-4.1.30-x86_64

# ** Check kernel install options and modules
make menuconfig
make ARCH=x86_64apt
make modules_install ARCH=x86_64
apt-get install libqt4-opengl libvpx1

 

## Installation of VirtualBox
cd /data/VirtualBox/
dpkg -i virtualbox-4.3_4.3.20-96996~Debian~wheezy_amd64.deb
apt-get -f install
/etc/init.d/vboxdrv setup
modprobe vboxdrv
modinfo misc/vboxdrv.ko

## Upgrade VirtualBox Extension Pack
VBoxManage extpack uninstall "Oracle VM VirtualBox Extension Pack"
VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.3.20-96996.vbox-extpack

 

Message 9 of 25
jpearn
Star

Re: Help and questions on Virtualbox install for 6.6.0

I have it up and running on after upgrading my old Ultra 2 to OS6 using the instructions here :

https://community.netgear.com/t5/Community-Add-ons/Virtualbox-on-OS6-NAS/td-p/902756/page/2

There are a couple of bits missed out with dependencies / packages, nothing to difficult to figure out (I didn't make notes !) .

It works well with phpVirtualBox, just add it to the Apache config as an additional site. It will complain about using the latest Vbox version, but it works fine !

Good luck 🙂

Message 10 of 25
funglenn
Luminary

Re: Help and questions on Virtualbox install for 6.6.0

to get the phpVirtualbox piece working, did you also have to install the PHP addons offered in the apps section or just the php software?

 

What apache config are you refering to? i think this may be a problem for some other software I am trying to install but the web interface does notwork!

Apreciate the help, eventually i will get this working!

thanks

Message 11 of 25
jpearn
Star

Re: Help and questions on Virtualbox install for 6.6.0

I have coped back some of the editing I did to help you out; it may not be complete but should get you going in the right direction ! You need to follow some of the online instructions to get it unzipped into /var/www/phpvirtualbox and setup the config.php and the vbox user. For Apache (using commands as root):

 

apt-get install php5 php5-mysql libapache2-mod-php5 php-soap

nano /etc/apache2/sites-available/phpvbox.conf

 

Put this into the phpvbox.conf :

 

Alias /phpvirtualbox "/var/www/phpvirtualbox/"

<Directory /var/www/phpvirtualbox/>
 Options +FollowSymlinks
 AllowOverride All
 SetEnv HOME /var/www/phpvirtualbox
 SetEnv HTTP_HOME /var/www/phpvirtualbox

</Directory>

 

Make the site active :


ln -s /etc/apache2/sites-available/phpvbox.conf /etc/apache2/sites-enabled/phpvbox.conf

 

systemctl restart apache2

Message 12 of 25
funglenn
Luminary

Re: Help and questions on Virtualbox install for 6.6.0

Thanks. still working on the VirtualBox installation.

 

however on a new install, where do i get the right .config file? on many of the examples that is not addressed, or at least I have not figured out where to find it.

 

i really have little experience and trying to learn how to compile code--choosing this non standard box to learn.....

 

i would pay good money for a simple file to load into the readynas GUI and give me a web icon like the standard apps.....vmware or virtualbox

Message 13 of 25
jpearn
Star

Re: Help and questions on Virtualbox install for 6.6.0

Using the instructions I linked above, these are a couple of steps that were missing :

 

For the .config

cp /data/VirtualBox/tmp/linux-4.1.30-x86_64/arch/x86/configs/defconfig.x86 /usr/src/linux-4.1.30-x86_64/.config

 

Missing packages leading to compile errors

apt-get install libncurses5-dev  libncursesw5-dev

Message 14 of 25
Sandshark
Sensei

Re: Help and questions on Virtualbox install for 6.6.0

Once you get it installed (can't help you there doing it on a ReadyNAS), you use VRDP to access it.  See here: Chapter 7. Remote virtual machines.

Message 15 of 25
funglenn
Luminary

Re: Help and questions on Virtualbox install for 6.6.0

this is great infomration! thank you. this makes it easier once i have it running. 

Message 16 of 25
funglenn
Luminary

Re: Help and questions on Virtualbox install for 6.6.0

this is what i have done so far:

 

 unzip ReadyNASOS_V6.6.0_WW_src.zip
    cp -rp linux-4.1.30-x86_64 /data/.apps
    ln -s /data/.apps/linux-4.1.30-x86_64 /usr/src/linux-4.1.30-x86_64

 
    apt-get update

     apt-get install build-essential
     apt-get install vim git lm-sensors telnet
 apt-get install libncurses5-dev  libncursesw5-dev
 apt-get install libqt4-opengl libvpx1

    export KERN_DIR=/usr/src/linux-4.1.30-x86_64
    cd /usr/src/linux-4.1.30-x86_64
   
cp /data/VirtualBox/tmp/linux-4.1.30-x86_64/arch/x86/configs/defconfig.x86 /usr/src/linux-4.1.30-x86_64/.config
   
    make menuconfig
    make ARCH=x86_64 oldconfig && make ARCH=x86_64

 

however it errors out at:

/bin/sh: 1: bc: not found

kernel/time/Makefile:30: recipe for target 'kernel/time/timeconst.h' failed

make[2]: *** [kernel/time/timeconst.h] Eror 127

scripts/Makefile.build:403: recipe for target 'kernel/time' failed

make[1]: *** [kernel/time] Error 2

Makefile:948: recipe for rarget 'kernel' failed

make: *** [kernel] Error 2

 

 

any thoughts on what i am missing?

Message 17 of 25
jpearn
Star

Re: Help and questions on Virtualbox install for 6.6.0

Have you tried :

 

apt-get install bc

 

I think it was also missing from the other instructions.

Message 18 of 25
funglenn
Luminary

Re: Help and questions on Virtualbox install for 6.6.0

so after this command:

 

 dpkg -i virtualbox-4.3_4.3.20-96996~Debian~wheezy_amd64.deb

 

I got the following errors:

It seems that some may be through apt-get, but what about hte old verison of python? is that the one on the readynas? i thought that verion 2.x was no longer offered for us?


dpkg: dependency problems prevent configuration of virtualbox-5.1:
virtualbox-5.1 depends on libpython2.7 (>= 2.7); however:
Package libpython2.7 is not installed.
virtualbox-5.1 depends on libqt5core5a (>= 5.3.0); however:
Package libqt5core5a is not installed.
virtualbox-5.1 depends on libqt5gui5 (>= 5.3.0); however:
Package libqt5gui5 is not installed.
virtualbox-5.1 depends on libqt5opengl5 (>= 5.0.2); however:
Package libqt5opengl5 is not installed.
virtualbox-5.1 depends on libqt5printsupport5 (>= 5.0.2); however:
Package libqt5printsupport5 is not installed.
virtualbox-5.1 depends on libqt5widgets5 (>= 5.2.0); however:
Package libqt5widgets5 is not installed.
virtualbox-5.1 depends on libqt5x11extras5 (>= 5.1.0); however:
Package libqt5x11extras5 is not installed.
virtualbox-5.1 depends on libsdl1.2debian (>= 1.2.11); however:
Package libsdl1.2debian is not installed.
virtualbox-5.1 depends on libxcursor1 (>> 1.1.2); however:
Package libxcursor1 is not installed.
virtualbox-5.1 d
dpkg: error processing package virtualbox-5.1 (--install):
dependency problems - leaving unconfigured
Processing triggers for systemd (230-7~bpo8+2.netgear2) ...
Processing triggers for mime-support (3.58) ...
Errors were encountered while processing:

Message 19 of 25
jpearn
Star

Re: Help and questions on Virtualbox install for 6.6.0

Have you tried an :

 

apt-get install -f

 

this should fix the dependencies and install the package

Message 20 of 25
funglenn
Luminary

Re: Help and questions on Virtualbox install for 6.6.0

Thank you all!  it works. This is the commands I used, with

VBoxHeadless --startvm <uuid|name> --vrde on   

to run the script.

 

 


unzip ReadyNASOS_V6.6.0_WW_src.zip
cp -rp linux-4.1.30-x86_64 /data/.apps
ln -s /data/.apps/linux-4.1.30-x86_64 /usr/src/linux-4.1.30-x86_64

apt-get update
apt-get install build-essential
apt-get install vim git lm-sensors telnet
apt-get install bc

apt-get install libqt4-opengl libvpx1

apt-get install -f
export KERN_DIR=/usr/src/linux-4.30-x86_64
cd /usr/src/linux-4.1.30-x86_64
cp /data/VirtualBox/tmp/linux-4.1.30-x86_64/arch/x86/configs/defconfig.x86 /usr/src/linux-4.1.30-x86_64/.config

# ** Check kernel install options and modules
make ARCH=x86_64 oldconfig && make ARCH=x86_64

## Installation of VirtualBox
cd /data/VirtualBox/
dpkg -i virtualbox-4.3_4.3.20-96996~Debian~wheezy_amd64.deb
apt-get -f install
/etc/init.d/vboxdrv setup
modprobe vboxdrv

cd
## Upgrade VirtualBox Extension Pack
VBoxManage extpack uninstall "Oracle VM VirtualBox Extension Pack"
VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.3.20-96996.vbox-extpack

 

Message 21 of 25
funglenn
Luminary

Re: Help and questions on Virtualbox install for 6.6.0

i spoke to soon!   it was fine for about a day and one of my interfaces stopped working.  So I used the other interface, shut down the VM gracefully.  Then i rebooted the NAS gracefully.

 

then it came back and said:

 

ot@ReadyNAS:~/VirtualBox VMs/Windows10_64/Logs# vboxheadless
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (4.1.30.x86_64.1) or it failed to
load. Please recompile the kernel module and install it by

sudo /sbin/vboxconfig

You will not be able to start VMs until this problem is fixed.
VBoxHeadless: Error -1908 in suplibOsInit!
VBoxHeadless: Kernel driver not installed

VBoxHeadless: Tip! Make sure the kernel module is loaded. It may also help to reinstall VirtualBox.

 

 

What on earth happened? Oh yeah, the interface did come back on reboot.....

Message 22 of 25
jpearn
Star

Re: Help and questions on Virtualbox install for 6.6.0

A couple of things noted there, did you switch back to the older version of Virtualbox ? And did you run

make menuconfig
and

cd /usr/src/linux-4.1.30-x86_64

make modules_install ARCH=x86_64

 

The modules_install I think is the bit you are missing. If you compare what you did versus the previous instructions you'll see what the difference is.

Message 23 of 25
funglenn
Luminary

Re: Help and questions on Virtualbox install for 6.6.0

i did not change versions. however i could not get menuconfig to work, so i did skip that step--to my detriment i see.

i am not familiar with make modules_install...

 

thanks

Message 24 of 25
funglenn
Luminary

Re: Help and questions on Virtualbox install for 6.6.0

so i retraced my steps and used the make module command--Virtualbox seems to be very stable and survives a reboot.

 

However my main problem now is that the network connection on the readynas and in the VM seems to die after a few hours and only cure is a reboot.  I am using the vm exclusively to send my readynas backups to amazon via an app called Goodsync on a Win10 VM--thus very heavy and consistent network usage.  (granted it is only a 1mb/sec uplink, so i know i have another 7 mb/sec capability, so it is not link saturation)  Strangely, the transfer continues on, but no other app in the VM, nor outside the VM can use the connection.

 

any thoughts on what network config change i need to make? i am using everything default, thus NAT.

 

should i looked at bridged networking as an option?

Message 25 of 25
Top Contributors
Discussion stats
  • 24 replies
  • 7350 views
  • 0 kudos
  • 4 in conversation
Announcements