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
- chirpaLuminary
VirtualBox 3.0.2 (released 2009-07-10)
This is a maintenance release. The following items were fixed and/or added:
VMM: fixed network regressions (guest hangs during network IO) (bug #4343)
VMM: guest SMP performance improvements
VMM: fixed hangs and poor performance with Kaspersky Internet Security (VT-x/AMD-V only; bug #1778)
VMM: fixed crashes when executing certain Linux guests (software virtualization only; bugs #2696 & #3868)
ACPI: fixed Windows 2000 kernel hangs with IO-APIC enabled (bug #4348)
APIC: fixed high idle load for certain Linux guests (3.0 regression)
BIOS: properly handle Ctrl-Alt-Del in real mode
iSCSI: fixed configuration parsing (bug #4236)
OVF: fix potential confusion when exporting networks
OVF: compatibility fix (bug #4452)
NAT: fixed crashes under certain circumstances (bug #4330)
3D support: fixed dynamic linking on Solaris/OpenSolaris guests (bug #4399)
3D support: fixed incorrect context/window tracking for multithreaded apps
Shared Folders: fixed loading from saved state (bug #1595)
Shared Folders: host file permissions set to 0400 with Windows guest (bug #4381)
X11 host and guest clipboard: fixed a number of issues, including bug #4380 and #4344
X11 Additions: fixed some issues with seamless windows in X11 guests (bug #3727)
Windows Additions: added VBoxServiceNT for NT4 guests (for time synchronization and guest properties)
Windows Additions: fixed version lookup
Linux hosts: workaround for buggy graphics drivers showing a black VM window on recent distributions (bug #4335)
Linux hosts: fixed typo in kernel module startup script (bug #4388)
Installer: support Pardus Linux
Solaris hosts: several installer fixes
Solaris host: fixed a preemption issue causing VMs to never start on Solaris 10 (bug #4328).
Solaris guest: fixed mouse integration for OpenSolaris 2009.06 (bug #4365)
Windows hosts: fixed high CPU usage after resuming the host (bug #2978)
OVF: accept ovf:/disk/ specifiers with a single slash in addition to ovf://disk/ (bug #4452)
Fixed a settings file conversion bug which sometimes caused hardware acceleration to be enabled for virtual machines that had no explicit configuration in the XML. - muggsyAspirantI upgraded to Virtualbox 3.0 via apt-get and seems to work fine
- MikeMcr1AspirantI have been following the instructions in the first post but get the following dependency errors:
# apt-get update && apt-get install build-essential
The following packages have unmet dependencies:
build-essential: Depends: libc6-dev but it is not going to be installed or
libc-dev
Depends: g++ (>= 4:4.1.1) but it is not going to be installed
# apt-get install libc6-dev
The following packages have unmet dependencies:
libc6-dev: Depends: libc6 (= 2.7-18) but 2.3.6.ds1-13etch9+b1 is to be installed
Depends: linux-libc-dev but it is not installable
I am running firmware 4.2.5. Any ideas how I fix this? Thanks. - MikeMcr1AspirantI have managed to fix it by removing the following line from my sources.list file:
deb http://www.readynas.com/packages readynas-x86/
- lchapuisAspiranthi,
Just installed the virtualbox 3.0.4 :)
changelog :This is a maintenance release. The following items were fixed and/or added:
* VMM: 64 bits guest stability fixes (AMD-V only; bugs #3923 & #3666)
* VMM: SMP stability fixes (AMD-V only)
* VMM: SMP performance improvement (esp. for Solaris guests)
* VMM: eliminated several bugs which could lead to a host reboot
* VMM: fixed OS/2 ACP2 boot floppy hang (VT-x only)
* VMM: small performance improvement for OpenSolaris guests (AMD-V only)
* VMM: fixed CentOS/Xen reboot (software virtualization only; bug #4509)
* SATA: fixed hangs / BSOD during Windows XP installation (bug #4342)
* SATA: mark the ports as non hotpluggable (bug #3920)
* 3D support: fix deadlocks and context/window tracking for multithreaded applications (bug #3922)
* 3D support: fix memory leaks when terminating OpenGL guest applications
* 3D support: fix crash in Call of Duty
* NAT: using two or more NAT adapters in one VM was broken (3.0.0 regression)
* NAT: fixed network communication corruptions (bugs #4499, #4540, #4591, #4604)
* NAT: fixed passive ftp access to host server (bug #4427)
* iSCSI: fixed cloning to/from iSCSI disks
* GUI: fixed path separator handling for the OVF export on Windows (bug #4354)
* GUI: the mini toolbar was only shown on the first host display (bug #4654)
* GUI: added a VM option to display the mini toolbar on top
* GUI: don’t crash when adding plus configuring host-only network interfaces
* Shared Folders: fixed selection of a drive root directory as a shared folder host path in VirtualBox (Windows host only)
* USB: fixed a bug that may have rendered USB devicefilter settings inactive (3.0.2 regression, bug #4668)
* Guest Additions: report the Guest Additions version to the guest properties (bug #3415)
* Mac OS X hosts: fix creation of VMDK files giving raw partition access (bug #1461)
* Mac OS X hosts: improved support for Snow Leopard
* Linux hosts: fixed problems leading to wrong colors or transparency in host windows with some graphics drivers (bug #3095)
* Linux hosts: hardware detection fallbacks if the hal service fails to find any DVD drives.
* Linux and Solaris hosts: Work around color handling problems in Qt (bug #4353)
* Solaris hosts: fixed memory leaks in host-only networking
* Solaris Installer: fixed incorrect netmask for Host-only interface (bug #4590)
* Solaris Installer: added package dependency for Python and Python-devel (bug #4570)
* X11 guests: prevent windows from being skipped in seamless mode KDE guests (bugs #1681 and #3574)
* X11 guests: fixed screen corruption in X11 guests when large amounts of video RAM were allocated (bug #4430)
* X11 guests: some fixes when switching between host and guest-drawn mouse pointers.
* X11 guests: fixed an issue which caused seamless mode to stop working as it should (the main issue listed in bug #2238). - chirpaLuminaryI'm running 3.0.4 as well :)
- msetnarbaAspiranthello,
I'm trying to install Virtualbox on a NVX but I've a problem at the end of this command :
# apt-get install virtualbox-3.0
I've this message in vbox-install.log** Compiling vboxdrv
Makefile:150: 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:158: *** Error: /usr/src/linux (version 2.6.27.6.RNx86.2.1) does not match the current kernel (version 2.6.27.6.RNx86.1.1). Stop.
I've the 4.2.5 firmware and I use 4.2.5 sources
I follow Chirpa's instructions......
Anyone have an idea?
Thx - BigbearfAspirantAny chance of a VB add on? Super are you game? :D
BigBearf - msetnarbaAspirantthx a lot .
I've tried but I've a different error now :
Reading package lists... Done
Building dependency tree... Done
Recommended packages:
libsdl-ttf2.0-0 linux-headers libhal1 pdf-viewer libgl1 python-central
The following NEW packages will be installed:
virtualbox-3.0
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 0B/50.2MB of archives.
After unpacking 102MB of additional disk space will be used.
Preconfiguring packages ...
(Reading database ... 22370 files and directories currently installed.)
Unpacking virtualbox-3.0 (from .../virtualbox-3.0_3.0.4-50677%5fDebian%5fetch_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/virtualbox-3.0_3.0.4-50677%5fDebian%5fetch_i386.deb (--unpack):
subprocess pre-installation script returned error exit status 123
Errors were encountered while processing:
/var/cache/apt/archives/virtualbox-3.0_3.0.4-50677%5fDebian%5fetch_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
perhaps I miss something ......
Related Content
NETGEAR Academy

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