× 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

WhoCares_
Mentor

Re: Running VirtualBox VM host on ReadyNAS Pro

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
Message 176 of 442
Mackila
Aspirant

Re: Running VirtualBox VM host on ReadyNAS Pro

Thanks !

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/lib
Mack-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
Message 177 of 442
WhoCares_
Mentor

Re: Running VirtualBox VM host on ReadyNAS Pro

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
Message 178 of 442
Mackila
Aspirant

Re: Running VirtualBox VM host on ReadyNAS Pro

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 🙂 )
Message 179 of 442
WhoCares_
Mentor

Re: Running VirtualBox VM host on ReadyNAS Pro

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
Message 180 of 442
Mackila
Aspirant

Re: Running VirtualBox VM host on ReadyNAS Pro

Hey, 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#
Message 181 of 442
chirpa
Luminary

Re: Running VirtualBox VM host on ReadyNAS Pro

(VirtualBox 3.1.8 is out: http://download.virtualbox.org/virtualbox/3.1.8/)

Your error above in previous posts looks like 32/64bit issues. I ran into it a long time ago, but haven't seen it in ages.

Someone bug me tomorrow and I'll try and get this post updated with 4.2.11/VB 3.1.8 fresh installation.
Message 182 of 442
Mackila
Aspirant

Re: Running VirtualBox VM host on ReadyNAS Pro

WhoCares? helped me by installing new 3.1.8 AMD64 .run binary of virtualbox.
We were able to successfully start virtual machines.

You need to apt-get some tools and libs to install virtualbox from binary installer (bzip2 as requested by binary installer, plus two libs - see last page of this thread).

As I got a brand new Pro yesterday, I will use it to make a step-by-step virtualbox install guide from factory reset-ed 4.1.9.
Message 183 of 442
Mackila
Aspirant

Re: Running VirtualBox VM host on ReadyNAS Pro

Here the step-by-step guide 😄

All these steps were tested on a just-reseted 4.2.9 stock ReadyNAS PRO (no RAM or processor upgrade), with rootSSH.


# Get some needed tools
apt-get update
apt-get install build-essential
apt-get install bzip2

# Setup build environment
cd /c/backup
wget http://www.readynas.com/download/GPL/RNDP6xxx_4.2.9_WW_src.zip
unzip -q RNDP6xxx_4.2.9_WW_src.zip -d ./GPL
# Just wait
cd GPL/linux-x86-2.6/
make oldconfig
# Just press enter until make oldconfig ends
make && make prepare
# This step will take a while
ln -s /c/backup/GPL/linux-x86-2.6/ /usr/src/linux
KERN_DIR=/usr/src/linux

# Install virtualbox from binary installer
cd /c/backup
mkdir virtualbox
cd virtualbox
wget http://download.virtualbox.org/virtualbox/3.1.8/VirtualBox-3.1.8-61349-Linux_amd64.run
chmod 755 VirtualBox-3.1.8-61349-Linux_amd64.run
./VirtualBox-3.1.8-61349-Linux_amd64.run
# You will need the next 2
apt-get install lib64stdc++6
apt-get install lib64z1

# Get some live CD to test our VirtualBox installation
cd /c/backup
mkdir CDs
cd CDs
wget http://ftp.crihan.fr/releases/10.04/ubuntu-10.04-desktop-i386.iso

# Create the virtual machine
VBoxManage createvm --name Live --ostype "Linux" --register --basefolder /c/backup/virtualbox/machines
VBoxManage storagectl Live --name "IDE Controller" --add ide
VBoxManage storageattach Live --storagectl "IDE Controller" --port 0 --device 0 --type dvddrive --medium "/c/backup/CDs/ubuntu-10.04-desktop-i386.iso"
VBoxManage modifyvm Live --memory 512 --nic1 bridged --bridgeadapter1 eth0 --boot1 dvd --boot2 none --boot3 none --boot4 none

# Start the machine
VBoxHeadless --startvm Live --vrdp on &

# You now connect to your nas using any RDP client


I got this (after apt-get install htop && htop) :
http://mackila.com/VirtualBoxOnRNDP.jpg

Hope this will help 🙂
Message 184 of 442
levity
Aspirant

Re: Running VirtualBox VM host on ReadyNAS Pro

chirpa wrote:
Haven't tested this yet, but covers the basics of having the VM start and stop on bootup... (till super-poussin makes a nice GUI add-on for it 😉

Add these lines:
/etc/default/services
MOTION=1
/etc/frontview/addons/addons.conf
VIRTUALBOX!!VirtualBox!!2.1.4!!/root/vboxctrl.sh start!!/root/vboxctrl.sh stop



i tried that but it was not successful...
on reboot the box seems to stop as it should, but it does not come up on startup

has anyone done this...
Message 185 of 442
chirpa
Luminary

Re: Running VirtualBox VM host on ReadyNAS Pro

That first CODE box should say VIRTUALBOX, to match the first field in the 2nd CODE box, I must have been tired that night. Make sure both match and it should work for you.
Message 186 of 442
chirpa
Luminary

Re: Running VirtualBox VM host on ReadyNAS Pro

VirtualBox 3.2.0 was released yesterday.

RAIDiator-x86 4.2.11 is due soon (T21 beta posted today), I am planning on doing a fresh install how-to on that version shortly, the steps should be a lot simpler now.
Message 187 of 442
Lichon
Aspirant

Re: Running VirtualBox VM host on ReadyNAS Pro

Tried on a new Pro with 4.2.9 (before my upgrade to Ext4). Not sure if your steps would work on a 4.2.9 Ext4 system.
viewtopic.php?p=231780#p231780

What risk there to use the compile method ?
Message 188 of 442
chirpa
Luminary

Re: Running VirtualBox VM host on ReadyNAS Pro

VirtualBox 3.2.2 released today: http://www.virtualbox.org/wiki/Changelog
Message 189 of 442
berkut1
Tutor

Re: Running VirtualBox VM host on ReadyNAS Pro

Ok, I think I am close to getting the VB working. I've been able successfully complete installation and building of the GPL 4.2.11 codes and installing VB 3.2.2 without errors. However when I attempt to execute VBoxManage I get the following error message:

nas3:/backup/CDs# VBoxManage list vms
/opt/VirtualBox/VBoxManage: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory


I assumed that this is because I was missing libc6 or libc6-dev but both libraries are reported as being installed when I perform an apt-get install operation. And searching this forum I did not see at anyone having this error.

I would appreciate any help on this - as I'm itching to get this working.
Message 190 of 442
WhoCares_
Mentor

Re: Running VirtualBox VM host on ReadyNAS Pro

You're right, libcrypt.so seems to be missing from 4.2.11 whereas it was part of 4.2.9. You can get it by doing:

apt-get update
apt-get install libc6-dev

This will install some other stuff on the ReadyNAS like the gcc compiler and such but since you're already compiling the VBox drivers I guess most of it should be there already.
What makes me wonder though is that your system reports libc6-dev as being installed. It wasn't on my system and installed just fine using the commands above.
Maybe you could try to remove libc6-dev using "apt-get remove libc6.dev" and re-installing it? As an alternative you could try to

apt-get install aptitude
aptitude download libc6-dev
dpkg -i libc6-dev_2.7-18lenny2_i386.deb


-Stefan
Message 191 of 442
berkut1
Tutor

Re: Running VirtualBox VM host on ReadyNAS Pro

WhoCares? wrote:
You're right, libcrypt.so seems to be missing from 4.2.11 whereas it was part of 4.2.9. You can get it by doing:

apt-get update
apt-get install libc6-dev


Hmm, could this be a problem with the GPL for 4.2.11?
nas3:/backup/CDs# apt-get update
Ign http://www.readynas.com 4.2.10/ Release.gpg
Get:1 http://ftp.debian.org etch Release.gpg [1033B]
Ign http://www.readynas.com 4.2.10/ Release
Ign http://www.readynas.com 4.2.10/ Packages/DiffIndex
Hit http://ftp.debian.org etch Release
Ign http://www.readynas.com 4.2.10/ Packages
Hit http://www.readynas.com 4.2.10/ Packages
Ign http://ftp.debian.org etch/main Packages/DiffIndex
Hit http://ftp.debian.org etch/main Packages
Fetched 1B in 1s (1B/s)
Reading package lists... Done

It is listing release/packages for 4.2.10 instead of 4.2.11.


WhoCares? wrote:
Maybe you could try to remove libc6-dev using "apt-get remove libc6.dev" and re-installing it? As an alternative you could try to

apt-get install aptitude
aptitude download libc6-dev
dpkg -i libc6-dev_2.7-18lenny2_i386.deb[/code


Unfortunately this suggestion did not work as well. I am also getting warnings about these packages cannot be authenticated. Is this a problem?

At this point would it be a good idea to do a factory reinstall and start afresh? In my naive efforts I may have missed some other important points. The system I'm working on is a new Pro which was upgraded to 4.2.11 with no add-ons installed. I've read the forum the as carefully as I could and used Mackila's instructions up to the point of running VboxManage which is were I've run into the missing libc6 problem.
Message 192 of 442
chirpa
Luminary

Re: Running VirtualBox VM host on ReadyNAS Pro

Try editing your /etc/apt/sources.list, and change references for 4.2.10 to 4.2.11.
Message 193 of 442
berkut1
Tutor

Re: Running VirtualBox VM host on ReadyNAS Pro

chirpa wrote:
Try editing your /etc/apt/sources.list, and change references for 4.2.10 to 4.2.11.

Your suggested change resulted in:
nas3:~# apt-get update
Get:1 http://ftp.debian.org etch Release.gpg [1033B]
Get:2 http://ftp.debian.org etch Release [67.8kB]
Get:3 http://ftp.debian.org etch/main Packages [5477kB]
Ign http://www.readynas.com 4.2.11/ Release.gpg
Ign http://www.readynas.com 4.2.11/ Release
Get:4 http://www.readynas.com 4.2.11/ Packages [5783B]
Fetched 5552kB in 34s (160kB/s)
Reading package lists... Done


I then performed the following on a newly built drive:

apt-get install build-essential
apt-get install bzip2
apt-get install lmza
cd /c/backup
wget http://www.readynas.com/download/GPL/RNDP6xxx_4.2.11_WW_src.zip
unzip -q RNDP6xxx_4.2.11_WW_src.zip -d ./GPL
cd GPL/linux-2.6.33.4/
make clean
make oldconfig
make all
ln -s /c/backup/GPL/linux-2.6.33.4/ /usr/src/linux
KERN_DIR=/usr/src/linux
cd /c/backup
mkdir virtualbox
cd virtualbox
wget http://download.virtualbox.org/virtualbox/3.2.2/VirtualBox-3.2.2-62298-Linux_amd64.run
chmod 755 VirtualBox-3.2.2-62298-Linux_amd64.run
./VirtualBox-3.2.2-62298-Linux_amd64.run
apt-get install lib64stdc++6
apt-get install lib64z1
cd /c/backup
mkdir CDs
cd CDs
# copied target OS image here
# Test the Virtualbox
VBoxManage list hostinfo

Execution of the VBoxManage line still resulted in
VBoxManage list hostinfo
/opt/VirtualBox/VBoxManage: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory

If I again attempt to load the apparently missing library I get
# apt-get install libc6-dev
Reading package lists... Done
Building dependency tree... Done
libc6-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 43 not upgraded.


At this point I'm not sure what I am doing wrong in the install - as it appears everything needed is in place.
Message 194 of 442
chirpa
Luminary

Re: Running VirtualBox VM host on ReadyNAS Pro

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

The 32-bit libcrypt.so is in the root image, but not the 64-bit one.
Message 195 of 442
berkut1
Tutor

Re: Running VirtualBox VM host on ReadyNAS Pro

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.


Awesome! - That did the trick.

Thanks
Message 196 of 442
berkut1
Tutor

Re: Running VirtualBox VM host on ReadyNAS Pro

FYI

For those of you wishing to install Windows 2K/NT/XP it appears that the Windows Intel SATA driver "F32.IMA" is no longer available from Intel as referenced in chirpa's Virtualbox WinXP SATA install link Windows SATA Support. Nor could I find it anywhere on the web. The work around to creating a floppy image of the SATA drivers is described in How to install Windows 2000/XP/2003 guests with SATA support

To create the image on the Pro I needed mtools:
apt-get install mtools

I then copied the zip file from the Option 3b - unofficial drivers location and put them into my working floppy directory.
From there I followed the recipe to make the floppy image.
mkdir floppy
cd floppy
# copy the XP AHCI v7.0.0.1020 for ICH8 Driver zip to the target folder
cp <source-path> .
unzip AHCI_v7.0.0.1020_for_ICH8.zip
dd if=/dev/zero of=./ich8.img bs=1k count=1440
mformat -i ich8.img -f 1440 ::
mcopy -i ich8.img "AHCI v7.0.0.1020 for ICH8"/* ::


Once I had the floppy image I was able to complete the creation of my WinXP guest OS VM described in the Windows SATA Support page.
Message 197 of 442
chirpa
Luminary

Re: Running VirtualBox VM host on ReadyNAS Pro

I probably have a copy of the file somewhere, if so, I'll upload it locally here later.

Also, the VB guys are quick, VB 3.2.4 is out now; http://www.virtualbox.org/wiki/Changelog
Message 198 of 442
ahpsi1
Tutor

Re: Running VirtualBox VM host on ReadyNAS Pro

Is this the file you are looking for -> http://wiki.inisec.com/index.php/File:F32.IMA?
Message 199 of 442
berkut1
Tutor

Re: Running VirtualBox VM host on ReadyNAS Pro

ahpsi wrote:
Is this the file you are looking for -> http://wiki.inisec.com/index.php/File:F32.IMA?

Thanks for finding it. This will help out those who wish to skip the steps I had to go through to build a SATA driver floppy image.
Message 200 of 442
Top Contributors
Announcements