NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
chirpa
Mar 07, 2009Luminary
Running VirtualBox VM host on ReadyNAS Pro
What is VirtualBox?
So, I got bored while laundry was going... and decided to see how well a virtual OS would run on the Pro. My first choice of VM was VirtualBox, just cause I'm familiar with it after using it for ages, plus its open and free :) Eventually, I may look into VMWare as well.
After a bit of messing around, got it installed. Since the system is based off of Debian, was easy to get VirtualBox itself there (deb package). The trickiest part was getting the kernel modules required installed (see end of post).
In the end, I've got Windows 2003 R2 running on my Pro, interacting with it via RDP, and I am happy with the performance. I've added an extra 1GB memory (for a total of 2GB). I assigned 1GB of ram to my virtual OS, which still leaves the default configuration of 1GB for the NAS itself (which is more than enough still, 800MB+ is always cached).
I made a 10GB virtual disk to install the OS on. If I need more space later for extra applications, I can just add another virtual drive to that installation. And since I always like a bit extra security, I went a bit beyond the usual, and also have TrueCrypt running full disk encryption in the virtual OS. So no one can even boot and read the data in that OS without my bootup password.
I don't really have any screenshots to show, just a standard Windows installation. Here is a few of the steps I used while creating the VM on the console:
VirtualBox 3.1 has changed the CLI configuration. Until I update this how-to, please reference this: http://www.uhleeka.com/blog/2009/12/vir ... 9-04-host/
With the OS booted up and just sitting at the desktop, top reports:
Ad-hoc installation of VirtualBox. Should work for RAIDiator 4.2.4. Download links for the kernel modules, for those who don't want to go through the mess of compiling them.
So, I got bored while laundry was going... and decided to see how well a virtual OS would run on the Pro. My first choice of VM was VirtualBox, just cause I'm familiar with it after using it for ages, plus its open and free :) Eventually, I may look into VMWare as well.
After a bit of messing around, got it installed. Since the system is based off of Debian, was easy to get VirtualBox itself there (deb package). The trickiest part was getting the kernel modules required installed (see end of post).
In the end, I've got Windows 2003 R2 running on my Pro, interacting with it via RDP, and I am happy with the performance. I've added an extra 1GB memory (for a total of 2GB). I assigned 1GB of ram to my virtual OS, which still leaves the default configuration of 1GB for the NAS itself (which is more than enough still, 800MB+ is always cached).
I made a 10GB virtual disk to install the OS on. If I need more space later for extra applications, I can just add another virtual drive to that installation. And since I always like a bit extra security, I went a bit beyond the usual, and also have TrueCrypt running full disk encryption in the virtual OS. So no one can even boot and read the data in that OS without my bootup password.
I don't really have any screenshots to show, just a standard Windows installation. Here is a few of the steps I used while creating the VM on the console:
VirtualBox 3.1 has changed the CLI configuration. Until I update this how-to, please reference this: http://www.uhleeka.com/blog/2009/12/vir ... 9-04-host/
# Creating the Virtual Machine.
$ VBoxManage createvm -name "Windows2003" -register
$ VBoxManage modifyvm "Windows2003" -memory "1024MB" -acpi on -boot1 dvd -nic1 nat
$ VBoxManage createvdi -filename "/c/backup/VirtualBox/Windows2003.vdi" -size 10000 -register
$ VBoxManage modifyvm "Windows2003" -hda "/c/backup/VirtualBox/Windows2003.vdi"
$ VBoxManage registerimage dvd /c/backup/VirtualBox/Windows2003Ent.iso
$ VBoxManage modifyvm "Windows2003" -dvd /c/backup/VirtualBox/Windows2003Ent.iso
$ VBoxHeadless -startvm "Windows2003" &
# Connected via Remote Desktop at this point.
# After the installation, first page requires Ctrl-Alt-Del, so I sent the keycodes.
$ VBoxManage controlvm "Windows2003" keyboardputscancode 1d 38 53
# System is up and running, time to install GuestAdditions for better video, etc.
$ wget http://download.virtualbox.org/virtualbox/2.2.2/VBoxGuestAdditions_2.2.2.iso
$ VBoxManage registerimage dvd /c/backup/VirtualBox/VBoxGuestAdditions_2.2.2.iso
$ VBoxManage controlvm "Windows2003" dvdattach /c/backup/VirtualBox/VBoxGuestAdditions_2.2.2.iso
With the OS booted up and just sitting at the desktop, top reports:
top - 16:17:10 up 1 day, 17:58, 1 user, load average: 0.00, 0.01, 0.00
Tasks: 93 total, 1 running, 92 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.7%us, 0.2%sy, 0.0%ni, 99.2%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 2072432k total, 2020100k used, 52332k free, 6120k buffers
Swap: 1048536k total, 144k used, 1048392k free, 784620k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
10297 root 20 0 1104m 1.0g 4720 S 4 52.5 57:31.53 VBoxHeadless
12792 root 20 0 46092 9520 1720 S 1 0.5 59:54.51 motion
12196 root 20 0 9196 7688 980 S 0 0.4 0:57.72 wastesrv
1 root 20 0 1948 600 508 S 0 0.0 0:01.30 init
Ad-hoc installation of VirtualBox. Should work for RAIDiator 4.2.4. Download links for the kernel modules, for those who don't want to go through the mess of compiling them.
$ mkdir /lib/modules/`uname -r`/miscOr, if you want to compile the kernel modules yourself:
$ cd /lib/modules/`uname -r`/misc
$ wget http://www.readynas.com/contributed/chirpa/modules/virtualbox/pro/vboxdrv.ko
$ wget http://www.readynas.com/contributed/chirpa/modules/virtualbox/pro/vboxnetflt.ko
$ echo "deb http://download.virtualbox.org/virtualbox/debian etch non-free" >> /etc/apt/sources.list
$ wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | apt-key add -
$ apt-get update
$ apt-get install virtualbox-2.1
$ /etc/init.d/vboxdrv start
envyious:/c/backup# echo "deb http://download.virtualbox.org/virtualbox/debian etch non-free" >> /etc/apt/sources.listInstall of VirtualBox 2.2.2, before Sun updates the Debian Repository...
envyious:/c/backup# wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | apt-key add -
envyious:/c/backup# apt-get update && apt-get install build-essential
...
Setting up build-essential (11.3) ...
envyious:/c/backup# wget -q http://www.readynas.com/download/GPL/RNDP6xxx_4.2.4_WW_src.zip
envyious:/c/backup# unzip -q RNDP6xxx_4.2.4_WW_src.zip -d ./GPL
envyious:/c/backup# cd GPL/linux-x86-2.6/
envyious:/c/backup/GPL/linux-x86-2.6# make && make prepare
...
envyious:/c/backup/GPL/linux-x86-2.6# ln -s /c/backup/GPL/linux-x86-2.6/ /usr/src/linux
envyious:/c/backup/GPL/linux-x86-2.6# KERN_DIR=/usr/src/linux
envyious:/c/backup/GPL/linux-x86-2.6# apt-get install virtualbox-2.1
...
Setting up virtualbox-2.1 (2.1.4-42893_Debian_etch) ...
Adding group `vboxusers' (GID 101) ...
Done.
Messages emitted during module compilation will be logged to /var/log/vbox-install.log.
Success!
Starting VirtualBox kernel module: done.
envyious:/c/backup/GPL/linux-x86-2.6# cd
envyious:/c/backup/GPL/linux-x86-2.6# VBoxManage list vms
VirtualBox Command Line Management Interface Version 2.1.4
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.
# wget -q http://www.readynas.com/download/GPL/RNDP6xxx_4.2.4_WW_src.zip
# unzip -q RNDP6xxx_4.2.4_WW_src.zip -d ./GPL
# cd GPL/linux-x86-2.6/
# make && make prepare
# ln -s /c/backup/GPL/linux-x86-2.6/ /usr/src/linux
# export KERN_DIR=/usr/src/linux
# apt-get install libfontconfig1 libglib2.0-0 libice6 libsdl1.2debian libsm6 libx11-6 libxcursor1 libxext6 libxi6 libxmu6 libxrandr2 libxrender1 libxslt1.1 libxt6 python2.4
# wget -q http://download.virtualbox.org/virtualbox/2.2.2/virtualbox-2.2_2.2.2-46594_Debian_etch_i386.deb
# dpkg -i virtualbox-2.2_2.2.2-46594_Debian_etch_i386.deb
Setting up virtualbox-2.2 (2.2.2-46594_Debian_etch) ...
Recompiling VirtualBox kernel module: done.
Starting VirtualBox kernel module: done.
441 Replies
Replies have been turned off for this discussion
- lchapuisAspiranthello Chirpa,
have you had time to try vbox with t6 or T9? :wink:
thx
Laurent - pywongAspirant
lchapuis wrote: hello Chirpa,
have you had time to try vbox with t6 or T9? :wink:
thx
Laurent
It would be great to have some updated instructions for 4.2.11 beta or even 4.2.9 or even a addon for virtualbox.
thanks - MackilaAspirantHi !
I'm trying to get VirtualBox running on my Pro.
My RNDP has : 4.2.9, E6600, 4GB RAM, 6x500GB seagate disks.
I tried :
Installation with apt-get (instructions on the first post) => I get -1912 error each time I try to start a VM. All steps looks good (installation, kernel module compilation, start, virtual machine configuration,...).
Error come at last step : starting the virtual machine.
Error is :Mack-NAS:~# VBoxHeadless --startvm XP --vrdp on &
[1] 27947
Mack-NAS:~# VBoxHeadless: Error -1912 in supR3HardenedMainInitRuntime!
VBoxHeadless: RTR3Init failed with rc=-1912
VBoxHeadless: Tip! It may help to reinstall VirtualBox.
Got no help on internet for error -1912. Looked through source code, and found this :/** The installed support driver doesn't match the version of the user. */
#define VERR_VM_DRIVER_VERSION_MISMATCH (-1912)
How could it be ?
____________
I also tried the binary package install from virtualbox website.
Install looks good, but trying to run any virtualbox binary (including configuration ones) give weird error :Mack-NAS:/opt/VirtualBox# ls VBoxMa* -al
-rwxr-xr-x 1 root root 768136 2010-03-25 20:09 VBoxManage
Mack-NAS:/opt/VirtualBox# ./VBoxManage list hostinfo
-bash: ./VBoxManage: No such file or directory
Mack-NAS:/opt/VirtualBox#
____________
During apt-get update, I saw that :Mack-NAS:/# apt-get update
Get:1 http://ftp.debian.org etch Release.gpg [1032B]
Get:2 http://ftp.debian.org etch Release [67.8kB]
Ign http://www.readynas.com 4.2.7/ Release.gpg
Get:3 http://ftp.debian.org etch/main Packages [5620kB]
Ign http://www.readynas.com 4.2.7/ Release
Get:4 http://www.readynas.com 4.2.7/ Packages [4995B]
Fetched 5694kB in 16s (337kB/s)
First method looked more promising, and maybe a problem with apt-get configuration screwed up things, so I retried the apt-get way, after a full factory reset and firmware re-install (4.2.9).I tried to change that (in source.list file) to 4.2.9. Did the update thing, reinstalled.
Same problem (error -1912 at VBoxHeadless).
At this point, I don't know how to get it running.
Do you have any idea ?
Thanks,
- Mackila - pywongAspirantI got that same error message.
- WhoCares_Mentor
Mackila wrote: Mack-NAS:~# VBoxHeadless --startvm XP --vrdp on &
[1] 27947
Mack-NAS:~# VBoxHeadless: Error -1912 in supR3HardenedMainInitRuntime!
VBoxHeadless: RTR3Init failed with rc=-1912
VBoxHeadless: Tip! It may help to reinstall VirtualBox.
The problem quite likely is that you installed an i386 version of VirtualBox while you need the AMD64 one.
If you installed VirtualBox using apt-get, first remove that version:apt-get remove virtualbox-3.1
Next, get the correct installer and run it:wget http://download.virtualbox.org/virtualbox/3.1.6/VirtualBox-3.1.6-59338-Linux_amd64.run
chmod 755 VirtualBox-3.1.6-59338-Linux_amd64.run
./VirtualBox-3.1.6-59338-Linux_amd64.run
As a last step, install the missing library using apt-get:apt-get install lib64stdc++6
Then proceed as you usually would.
That's how it worked for me.
-Stefan - MackilaAspirantThanks !
Installing lib64stdc++6 made things change a bit.
I now have this :Mack-NAS:/c/backup/VirtualBox# VBoxManage list hostinfo
/opt/VirtualBox/VBoxManage: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
Googled "libz.so.1", guys say "apt-get install zlib1g"Mack-NAS:/c/backup/VirtualBox# apt-get install zlib1g
Reading package lists... Done
Building dependency tree... Done
zlib1g is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 25 not upgraded.
Do you remember doing other things for getting your virtualbox working ?
edit :
of course I got a libz.so.1 file under /usr/libMack-NAS:/usr/lib# ls -al libz.so.1*
lrwxrwxrwx 1 root root 15 2010-05-05 16:30 libz.so.1 -> libz.so.1.2.3.3
-rw-r--r-- 1 root root 81012 2008-04-06 11:38 libz.so.1.2.3.3 - WhoCares_Mentor
Mackila wrote: (...)
of course I got a libz.so.1 file under /usr/lib
Sorry, I tend to compile most of the stuff manually, thus I tend to have some libs installed that are not normally part of the ReadyNAS distribution.
Please try:apt-get install lib64z1
And see whether that helps.
-Stefan - MackilaAspirant
Mack-NAS:~# apt-get install lib64z1
Reading package lists... Done
[...]
Setting up lib64z1 (1.2.3-13) ...
Mack-NAS:~#
Mack-NAS:~# VBoxManage list hostinfo
Sun VirtualBox Command Line Management Interface Version 3.1.6
(C) 2005-2010 Sun Microsystems, Inc.
All rights reserved.
Host Information:
Host time: 2010-05-09T19:11:17.588000000Z
Processor online count: 2
Processor count: 2
Processor#0 speed: 2394 MHz
Processor#0 description: Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz
Processor#1 speed: 2394 MHz
Processor#1 description: Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz
Memory size: 3942 MByte
Memory available: 3700 MByte
Operating system: Linux
Operating system version: 2.6.30.9.RNx86_64.2.2
Looks good. Will try later to configure and start a vm.
Thanks, I'll keep you up :) (eg posting a "works for me" step by step virtualbox install guide :) ) - WhoCares_Mentor
Mackila wrote: Looks good. Will try later to configure and start a vm.
Thanks, I'll keep you up :) (eg posting a "works for me" step by step virtualbox install guide :) )
You do that and meanwhile I try to bake an add-on for the Pro ;)
-Stefan - MackilaAspirantHey, nice, I'm now at same point (like apt-get install virtualbox-3.1 way) :
Mack-NAS:/c/backup/virtualbox# VBoxHeadless --startvm XP --vrdp on &
[1] 12388
Mack-NAS:/c/backup/virtualbox# VBoxHeadless: Error -1912 in supR3HardenedMainInitRuntime!
VBoxHeadless: RTR3Init failed with rc=-1912
VBoxHeadless: Tip! It may help to reinstall VirtualBox.
[1]+ Exit 1 VBoxHeadless --startvm XP --vrdp on
Mack-NAS:/c/backup/virtualbox#
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!