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

Running VirtualBox VM host on ReadyNAS Pro

berkut1
Tutor

Re: Running VirtualBox VM host on ReadyNAS Pro

I've successfully have Windows XP running on my virutalbox v3.2.4. I've been successful in updating windows with all of the current security patches except for KB958869. This patches fixes a security hole with their GDI+ library. So the question I have is has anyone else had problems installing this patch on their WinXP guest? And if so where you able to resolve it?

Thanks
Message 201 of 442
Lichon
Aspirant

Re: Running VirtualBox VM host on ReadyNAS Pro

Any update on the precompiled version ?

Compiling myself is too risky.
Message 202 of 442
berkut1
Tutor

Re: Running VirtualBox VM host on ReadyNAS Pro

chirpa,

I too tried that but it was not successful...
currently it does not launch the VirtualboxHeadless process upon startup

I inserted the virtualbox line into /etc/default/services just before the WAK_ON_LAN line
USER_HOME_DIRECTORY_RECYCLE_MAX_DAYS=10
USER_HOME_DIRECTORY_RECYCLE_MAX_SIZE=2048
VIRTUALBOX=1
WAKE_ON_LAN=0

And then added the following line to /etc/frontview/addons/addons.conf

VIRTUALBOX!!VirtualBox!!3.2.4!!/root/vboxctrl.sh start!!/root/vboxctrl.sh stop

And finally added your vboxctrl.sh script to my /root directory.

#! /bin/sh
# Control VirtualBox with system startup/shutdown

PATH=/bin:/usr/bin

case "$1" in
start|"")
/usr/bin/VBoxHeadless --startvm "WinXP" --vrdpport 8888 --vrdp on &
;;
stop)
/usr/bin/VBoxManage controlvm "WinXP" savestate
;;
status)
/usr/bin/VBoxManage showvminfo "WinXP" | grep '^State:'
;;
restart|reload|force-reload)
echo "Error: argument '$1' not supported" >&2
exit 3
;;
*)
echo "Usage: vboxctrl.sh [start|stop|status]" >&2
exit 3
;;
esac

and used chmod 755 to make it executable.

I also verified that the
vboxctrl.sh start
successfully launched the Vbox when executed from the command line.

System Config:
ReadyNAS Pro w/ 4GB
Firmware 4.2.11
Virtualbox version 3.2.4
Message 203 of 442
WhoCares_
Mentor

Re: Running VirtualBox VM host on ReadyNAS Pro

I'm not sure but I think the start/stop scripts are run under the account of the admin user. So I believe you should move the vboxctrl.sh to another location like /etc/init.d or /etc/myscripts, check for proper file and directory permissions then adapt the addons.conf and give it another try.

-Stefan
Message 204 of 442
chirpa
Luminary

Re: Running VirtualBox VM host on ReadyNAS Pro

Those VB guys are fast, VB 3.2.6 is out now.
Message 205 of 442
snipes
Aspirant

Re: Running VirtualBox VM host on ReadyNAS Pro

VirtualBox 3.2.8 is now available. There was mention of a new howto a little while back in the thread. Anything to watch for doing a new install on 4.2.13?
Message 206 of 442
WhoCares_
Mentor

Re: Running VirtualBox VM host on ReadyNAS Pro

For all you VBoxers on the ReadyNAS out there: PHP VirtualBox (Manager) 0.4

-Stefan
Message 207 of 442
chirpa
Luminary

Re: Running VirtualBox VM host on ReadyNAS Pro

I'll check that out shortly!
Message 208 of 442
dbott67
Guide

Re: Running VirtualBox VM host on ReadyNAS Pro

One word: sweeeeeeet! 😎
Message 209 of 442
horim80
Guide

Re: Running VirtualBox VM host on ReadyNAS Pro

Hi,

help me~

ReadyNAS-PRO:/# uname -r
2.6.33.6.RNx86_64.2.1


ReadyNAS-PRO:/usr/bin# /etc/init.d/vboxdrv start
Starting VirtualBox kernel module ...failed!
(modprobe vboxdrv failed. Please use 'dmesg' to find out why)


ReadyNAS-PRO:/# vboxwebsrv
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (2.6.33.6.RNx86_64.2.1) or it failed to
load. Please recompile the kernel module and install it by

sudo /etc/init.d/vboxdrv setup

You will not be able to start VMs until this problem is fixed.
/opt/VirtualBox/vboxwebsrv: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory


ReadyNAS-PRO:/# /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel module ...done.
Removing old VirtualBox netadp kernel module ...done.
Removing old VirtualBox netflt kernel module ...done.
Removing old VirtualBox kernel module ...done.
Recompiling VirtualBox kernel module ...done.
Starting VirtualBox kernel module ...failed!
(modprobe vboxdrv failed. Please use 'dmesg' to find out why)


I've follow below steps..

http://www.readynas.com/forum/viewtopic.php?p=231809#p231809

how can I fix it?
Message 210 of 442
WhoCares_
Mentor

Re: Running VirtualBox VM host on ReadyNAS Pro

Horim,

Have you seen this:

chirpa wrote:
Try this:
# apt-get --reinstall install libc6-amd64

The 32-bit libcrypt.so is in the root image, but not the 64-bit one.


Also, the output of dmesg would be helpful.

-Stefan
Message 211 of 442
sphardy1
Apprentice

Re: Running VirtualBox VM host on ReadyNAS Pro

After 15 pages of comments, me thinks a clean write up of how to install VB on a 64 bit machine could be in order...

I know - I should do it, not just say it - but I'm currently 1000 miles from my Ultra and not due back for a while. I recently factory defaulted my Ultra so need to reinstall VB (Plus I'm keen to try Stefan's new addon) so I can contribute a write up when I do get back

But if someone has the time/inclination in the meantime...?
Message 212 of 442
chirpa
Luminary

Re: Running VirtualBox VM host on ReadyNAS Pro

Yeah, a lot has changed since I first made this thread. I may lock it soon, and link to a fresh thread using current firmwares.
Message 213 of 442
horim80
Guide

Re: Running VirtualBox VM host on ReadyNAS Pro

WhoCares? wrote:
Horim,

Have you seen this:

chirpa wrote:
Try this:
# apt-get --reinstall install libc6-amd64

The 32-bit libcrypt.so is in the root image, but not the 64-bit one.


Also, the output of dmesg would be helpful.

-Stefan




ReadyNAS-PRO:/# apt-get --reinstall install libc6-amd64
Reading package lists... Done
Building dependency tree... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 41 not upgraded.
Need to get 4192kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
libc6-amd64
Install these packages without verification [y/N]? y
Get:1 http://www.readynas.com 4.2.13/ libc6-amd64 2.7-18lenny2 [4192kB]
Fetched 4192kB in 5s (767kB/s)
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 21978 files and directories currently installed.)
Preparing to replace libc6-amd64 2.7-18lenny2 (using .../libc6-amd64_2.7-18lenny2_i386.deb) ...
Unpacking replacement libc6-amd64 ...
Setting up libc6-amd64 (2.7-18lenny2) ...

ReadyNAS-PRO:/# /etc/init.d/vboxdrv start
Starting VirtualBox kernel module ...failed!
(modprobe vboxdrv failed. Please use 'dmesg' to find out why)
ReadyNAS-PRO:/# vboxwebsrv
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (2.6.33.6.RNx86_64.2.1) or it failed to
load. Please recompile the kernel module and install it by

sudo /etc/init.d/vboxdrv setup

You will not be able to start VMs until this problem is fixed.
Oracle VM VirtualBox web service version 3.2.8
(C) 2005-2010 Oracle Corporation
All rights reserved.
2010-08-14 13:59:06 [ P ] Socket connection successful: host = default (localhost), port = 18083, master socket = 10
^C
ReadyNAS-PRO:/#
ReadyNAS-PRO:/# /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel module ...done.
Removing old VirtualBox netadp kernel module ...done.
Removing old VirtualBox netflt kernel module ...done.
Removing old VirtualBox kernel module ...done.
Recompiling VirtualBox kernel module ...failed!
(Look at /var/log/vbox-install.log to find out what went wrong)


it's not helped.. could you give me more advice..
Message 214 of 442
chirpa
Luminary

Re: Running VirtualBox VM host on ReadyNAS Pro

Output of /var/log/vbox-install.log ?
Message 215 of 442
horim80
Guide

Re: Running VirtualBox VM host on ReadyNAS Pro

chirpa wrote:
Output of /var/log/vbox-install.log ?


ReadyNAS-PRO:/# cat /var/log/vbox-install.log
Makefile:162: Warning: using /usr/src/linux as the source directory of your Linux kernel. If this is not correct, specify KERN_DIR=<directory> and run Make again.
Makefile:170: *** Error: /usr/src/linux (version 2.6.30.9.RNx86_64.2.2) does not match the current kernel (version 2.6.33.6.RNx86_64.2.1).
Message 216 of 442
chirpa
Luminary

Re: Running VirtualBox VM host on ReadyNAS Pro

Looks like you have old GPL sources there, not current ones.
Message 217 of 442
horim80
Guide

Re: Running VirtualBox VM host on ReadyNAS Pro

chirpa wrote:
Looks like you have old GPL sources there, not current ones.


I've change 4.2.13 GPL source then it's working now. Thanks chirpa.
so I'm trying to install Windows 7 there, booting ok but there is no disk space to install. how can I add HDD at VM?


VBoxManage createvm --name "Windows 7" --ostype "Windows7" --register --basefolder /c/backup/virtualbox/machines
VBoxManage storagectl "Windows 7" --name "IDE Controller" --add ide
VBoxManage storageattach "Windows 7" --storagectl "IDE Controller" --port 0 --device 0 --type dvddrive --medium "/c/backup/CDs/mg_windows_7_ultimate_k_x86_x64_n7_dvd.iso"
VBoxManage modifyvm "Windows 7" --memory 512 --nic1 bridged --bridgeadapter1 eth0 --boot1 dvd --boot2 none --boot3 none --boot4 none
Message 218 of 442
WhoCares_
Mentor

Re: Running VirtualBox VM host on ReadyNAS Pro

You need to create a virtual harddrive and also connect it to the virtual machine. -> http://www.virtualbox.org/manual/ch08.h ... ge-storage & http://www.virtualbox.org/manual/ch08.h ... -createvdi

-Stefan
Message 219 of 442
borrisl
Aspirant

Re: Running VirtualBox VM host on ReadyNAS Pro

So far, this is the plan for the new ReadyNAS pro installation. Look plausible?


Message 220 of 442
alouch47
Guide

Re: Running VirtualBox VM host on ReadyNAS Pro

Hi.

I'm stuck with VirtualBox, cannot make it run.

I'm on a pro with latest raidiator version 4.2.13.
Have install vbox 3.2.8.
I've download the GPL, compiled the kernel, installed vbox via apt-get

& i'm stuck with the following error message
Hydra:/c/workspace/GPL# VBoxHeadless --startvm fc13-1 --vrdpport 8888 --vrdp on
VBoxHeadless: Error -1912 in supR3HardenedMainInitRuntime!
VBoxHeadless: RTR3Init failed with rc=-1912

VBoxHeadless: Tip! It may help to reinstall VirtualBox.
Hydra:/c/workspace/GPL#


I've already tried
# apt-get --reinstall install libc6-amd64
but without success
any advices ?
Message 221 of 442
alouch47
Guide

Re: Running VirtualBox VM host on ReadyNAS Pro

Has everyone given up on this ?
Almost 10 days since my message, and not a single reply 😕

I've looked around on the web and it seems to be related to 32/64bit problems, but honnestly I don't know what to try next.
If I managed to get it running anyway, I'll make an update.
Message 222 of 442
muggsy
Aspirant

Re: Running VirtualBox VM host on ReadyNAS Pro

alouch47 wrote:
Has everyone given up on this ?
Almost 10 days since my message, and not a single reply 😕

I've looked around on the web and it seems to be related to 32/64bit problems, but honnestly I don't know what to try next.
If I managed to get it running anyway, I'll make an update.


I think the version of Virtualbox on apt might be older than using the link from virtualbox.org
Message 223 of 442
alouch47
Guide

Re: Running VirtualBox VM host on ReadyNAS Pro

muggsy wrote:

I think the version of Virtualbox on apt might be older than using the link from virtualbox.org


Apt-get install version 3.2.8 which is according to the VB site, the latest.
I'll try get the deb package from the site, & I'll tell you if it's work this way.
Message 224 of 442
alouch47
Guide

Re: Running VirtualBox VM host on ReadyNAS Pro

Something strange bothers me.

The readynas firmware is based on Debian 4.x Etch, right?
So why the hell when installing the libc6 it use the one from Lenny ??:
Get:1 http://www.readynas.com 4.2.13/ libc6-amd64 2.7-18lenny2


So now what version of VB should I use ? the Etch one or the Lenny one ??
Message 225 of 442
Top Contributors
Announcements