NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
OLBJAN
Jun 09, 2009Aspirant
HowTo: VMware Server 2 on ReadyNAS 4.2.11
Hi,
based on the guides from jdw99 and chirpa (viewtopic.php?p=155733#p155733 and viewtopic.php?f=35&t=26468) I completed a step-by-step guide to get VMware Server up and running on my NAS. This How-To has been updated for 4.2.11.
This is an updated and extended how-to, in which I will explain how you can install VMware Server 2 on the Netgear ReadyNAS PRO / 3200 / 4200 platform:
It applies to the following versions:
* ReadyNAS firmware version Raidiator 4.2.11
* VMware Server v2.0.2-203138.i386
First of all, let’s prepare:
1. Upgrade your ReadyNAS to the current firmware release using the Frontview control panel -> System -> Update -> Remote -> Reboot.
2. Decide on where you want to put your virtual machines, I decided to put them on a share of their own which I created. I called it “vm”. Create this share via Frontview. This makes sense in so far as VMware will create the files for virtual machines with “root” privileges, meaning only the root user will have access to these files via SMB or other access methods unless you reset share privileges via Frontview.
3. Decide where you want to put the ReadyNAS source code and VMware installation packages. I chose the already existing backup-share.
4. Install the EnableRootSSH addon to gain access to the ReadyNAS via SSH. You can download this add-on here: http://www.readynas.com/download/addons ... .0-x86.bin and install it via Frontview in System -> Update -> Local. Reboot.
5. You will need an ssh client such as putty.
6. You will need to register an account on vmware.com to download the free VMware Server. Get the i386 package, not the 64-bit package. This guide was compiled against version 2.0.2-203138.i386
Now let’s get started:
With putty, connect to your ReadyNAS and login as the “root” user. The password should be the same as your FrontView admin-password. You are now at the command prompt for your NAS.
End notes and limitations:
Thanks to chirpa at the ReadyNAS forum for helping with my questions about the kernel and GPL package and for supplying me with early access to the GPL resources.
Enjoy.
Known limitations:
- The VMware server webinterface seems to have its issues on browsers other than Internet Explorer. I recommend you install the VMware Infrastructure Client to access the VMware host and its virtualised guests.
- Sometimes if you manually restart the VMware services by running “/etc/init.d/vmware restart”, the virtual network service does not want to properly restart. This requires re-running the configuration script “/usr/bin/vmware-config.pl”.
based on the guides from jdw99 and chirpa (viewtopic.php?p=155733#p155733 and viewtopic.php?f=35&t=26468) I completed a step-by-step guide to get VMware Server up and running on my NAS. This How-To has been updated for 4.2.11.
This is an updated and extended how-to, in which I will explain how you can install VMware Server 2 on the Netgear ReadyNAS PRO / 3200 / 4200 platform:
It applies to the following versions:
* ReadyNAS firmware version Raidiator 4.2.11
* VMware Server v2.0.2-203138.i386
First of all, let’s prepare:
1. Upgrade your ReadyNAS to the current firmware release using the Frontview control panel -> System -> Update -> Remote -> Reboot.
2. Decide on where you want to put your virtual machines, I decided to put them on a share of their own which I created. I called it “vm”. Create this share via Frontview. This makes sense in so far as VMware will create the files for virtual machines with “root” privileges, meaning only the root user will have access to these files via SMB or other access methods unless you reset share privileges via Frontview.
3. Decide where you want to put the ReadyNAS source code and VMware installation packages. I chose the already existing backup-share.
4. Install the EnableRootSSH addon to gain access to the ReadyNAS via SSH. You can download this add-on here: http://www.readynas.com/download/addons ... .0-x86.bin and install it via Frontview in System -> Update -> Local. Reboot.
5. You will need an ssh client such as putty.
6. You will need to register an account on vmware.com to download the free VMware Server. Get the i386 package, not the 64-bit package. This guide was compiled against version 2.0.2-203138.i386
Now let’s get started:
With putty, connect to your ReadyNAS and login as the “root” user. The password should be the same as your FrontView admin-password. You are now at the command prompt for your NAS.
#Note the following line:
Linux YOURNASNAME 2.6.33.4.RNx86_64.2.1 #1 SMP Wed May 19 19:36:51 PDT 2010 x86_64 GNU/Linux
#If you did all the earlier preparation right, your NAS will be running the x86_64 Linux Kernel in version 2.6.33.4. Let’s continue some preparations:
apt-get update && apt-get install build-essential
#This will install the necessary Linux components for compiling your kernel and VMware server. There will be a prompt if you really want to install these packages, as well as a prompt that a few packages could not be authenticated. Answer both with YES.
#Then let’s change into our work directory:
cd /c/backup
#We are now on the backup share. All shares you create via Frontview will be created within the directory /c/. Avoid using other Linux paths as they probably will be on the system partition of the NAS, which is only 5GB. It is not a good idea to have that run out of space.
#Then we will download the ReadyNAS GPL Package for Raidiator 4.2.11:
wget -q http://www.readynas.com/download/GPL/RNDP6xxx_4.2.11_WW_src.zip
#Let’s unpack it:
unzip -q RNDP6xxx_4.2.7_WW_src.zip -d ./GPL
#Now we will have to compile a new kernel to get the modules we need to run VMware Server.
cd GPL/linux-2.6.33.4
make ARCH=x86_64 oldconfig && make ARCH=x86_64
#This is going to take a while. You can go get another cup of coffee.
#We will need to tell Linux that we compiled a new kernel and its associated modules, as well as where to find it. For this we make a symbolic link:
ln -s /c/backup/GPL/linux-2.6.33.4/ /usr/src/linux
KERN_DIR=/usr/src/linux
#There has been a slight change in symlinks with kernel 2.6.32 onward which requires us to create two additional symlinks. Without these, VMware setup won’t work later on:
cd /usr/src/linux/include/linux
ln -s ../generated/utsrelease.h
ln -s ../generated/autoconf.h .
Now on to install the VMware server. First let’s copy the downloaded archive for the VMware server on the backup share.
Back in the ssh session, we’re going to unpack it, but first let’s change back into the backup share directory:
cd /c/backup
#and let’s unpack it:
gzip -d VMware-server-2.0.2-203138.i386.tar.gz
tar –xvf VMware-server-2.0.2-203138.i386.tar.gz
#Now we need to install some patches for VMware server to make it compatible with our kernel version:
wget http://risesecurity.org/~rcvalle/VMware-server-2.0.2-203138-update-2.patch
The following is taken from Ramon de Carvalho Valle at rise security (http://risesecurity.org/2010/04/02/vmware-server-2-0-2-update-patch-2/). Thanks to him for creating the patch.
#Extract VMware Server modules:
# Change working directory to vmware-server-distrib/lib/modules/source/
$ tar -xf vmci.tar
tar -xf vmmon.tar
tar -xf vmnet.tar
tar -xf vsock.tar
#Apply the patch:
#Change working directory to vmware-server-distrib/
patch -p1 < ../VMware-server-2.0.2-203138-update-2.patch
#Archive VMware Server modules again:
#Change working directory to vmware-server-distrib/lib/modules/source/
$ rm -f vmci.tar
rm -f vmmon.tar
rm -f vmnet.tar
rm -f vsock.tar
tar -cf vmci.tar vmci-only/
tar -cf vmmon.tar vmmon-only/
tar -cf vmnet.tar vmnet-only/
tar -cf vsock.tar vsock-only/
#And now let’s go install the VMware server:
cd vmware-server-distrib
./vmware-install.pl
#You will get several prompts now which you can all accept at face value except for one: You *must* change the default value for where to put the storage for virtual machines to a path within the /c/ directory. For this I prepared my “vm” share. Hence, I changed the path to “/c/vm/”. This is to make sure your virtual machines won’t kill the system volume of the ReadyNAS.
End notes and limitations:
Thanks to chirpa at the ReadyNAS forum for helping with my questions about the kernel and GPL package and for supplying me with early access to the GPL resources.
Enjoy.
Known limitations:
- The VMware server webinterface seems to have its issues on browsers other than Internet Explorer. I recommend you install the VMware Infrastructure Client to access the VMware host and its virtualised guests.
- Sometimes if you manually restart the VMware services by running “/etc/init.d/vmware restart”, the virtual network service does not want to properly restart. This requires re-running the configuration script “/usr/bin/vmware-config.pl”.
62 Replies
Replies have been turned off for this discussion
- jakkesAspirantHello,
I tried to install VMware on a readynas 4.2.13 system.
I got this result: (it did run for a while(the make part) and exited with an error, i lost the first error, but last lines where the same)
ReadyNasPro1:/c/temp/GPL/linux-2.6.33.6# make ARCH=x86_64 oldconfig && make ARCH=x86_64
scripts/kconfig/conf -o arch/x86/Kconfig
#
# configuration written to .config
#
scripts/kconfig/conf -s arch/x86/Kconfig
CHK include/linux/version.h
CHK include/generated/utsrelease.h
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
LZMA arch/x86/boot/compressed/vmlinux.bin.lzma
/bin/sh: lzma: command not found
MKPIGGY arch/x86/boot/compressed/piggy.S
arch/x86/boot/compressed/vmlinux.bin.lzma: No such file or directory
AS arch/x86/boot/compressed/piggy.o
gcc: arch/x86/boot/compressed/piggy.S: No such file or directory
gcc: no input files
make[2]: *** [arch/x86/boot/compressed/piggy.o] Error 1
make[1]: *** [arch/x86/boot/compressed/vmlinux] Error 2
make: *** [bzImage] Error 2
I did follow the steps in the first post.....
a reboot didn't work either.... - OLBJANAspirantWhen you're building the new kernel, you don't have to actually install the kernel image (that's your errors). All you need is a path to the kernel modules needed for the VMware install. I get the same errors, just continue with my script.
-Jan - jakkesAspirantThanks Jan,
It works great!!!! - jakkesAspirantJust a quick noob question:
When I log in into the readynas I get this line:
Linux ReadyNasPro1 2.6.33.6.RNx86_64.2.1 #1 SMP Tue Jul 27 13:21:19 PDT 2010 x86_64 GNU/Linux
Does this indicate that it is a 64 bit kernel running on the readynas?
If it is a 64 bit system, shouldn't i install the 64 bit VMWare server version? - OLBJANAspirantIt is a 64bit kernel. I'm not entirely sure about the VMware versions, I'm running a 64bit guest VM fine with what I described in my how-to. Report back with what you find out.
- jakkesAspiranti guess it didn't work:
I tried to install it with this file:
VMware-server-2.0.2-203138.x86_64.tar.gz
It gave this output:
ReadyNasPro1:/c/temp/vmware-server-distrib# ./vmware-install.pl
This version of "VMware Server" is incompatible with this operating system.
Please install the "i386" version of this program instead. - j6harriAspirantI tried installing this onto my ReadyNas Pro running 4.2.15. The only step I changed was grabbing the 4.2.15 GPL. When I ran vmware-install.pl I get the following after I accept the license. Does anyone have any advise for this error? I am a newbie.
None of the pre-built vmmon modules for VMware Server is suitable for your
running kernel. Do you want this program to try to build the vmmon module for
your system (you need to have a C compiler installed on your system)? [yes]
Using compiler "/usr/bin/gcc". Use environment variable CC to override.
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]
Extracting the sources of the vmmon module.
Building the vmmon module.
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmmon-only'
make -C /usr/src/linux/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/c/vmware/GPL/linux-2.6.33.7'
WARNING: Symbol version dump /c/vmware/GPL/linux-2.6.33.7/Module.symvers
is missing; modules will have no dependencies and modversions.
CC [M] /tmp/vmware-config0/vmmon-only/linux/driver.o
CC [M] /tmp/vmware-config0/vmmon-only/linux/driverLog.o
CC [M] /tmp/vmware-config0/vmmon-only/linux/hostif.o
CC [M] /tmp/vmware-config0/vmmon-only/common/comport.o
CC [M] /tmp/vmware-config0/vmmon-only/common/cpuid.o
CC [M] /tmp/vmware-config0/vmmon-only/common/hashFunc.o
CC [M] /tmp/vmware-config0/vmmon-only/common/memtrack.o
CC [M] /tmp/vmware-config0/vmmon-only/common/phystrack.o
CC [M] /tmp/vmware-config0/vmmon-only/common/task.o
CC [M] /tmp/vmware-config0/vmmon-only/common/vmx86.o
CC [M] /tmp/vmware-config0/vmmon-only/vmcore/moduleloop.o
LD [M] /tmp/vmware-config0/vmmon-only/vmmon.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/vmware-config0/vmmon-only/vmmon.mod.o
LD [M] /tmp/vmware-config0/vmmon-only/vmmon.ko
make[1]: Leaving directory `/c/vmware/GPL/linux-2.6.33.7'
cp -f vmmon.ko ./../vmmon.o
make: Leaving directory `/tmp/vmware-config0/vmmon-only'
Unable to make a vmmon module that can be loaded in the running kernel:
insmod: error inserting '/tmp/vmware-config0/vmmon.o': -1 Invalid module format
There is probably a slight difference in the kernel configuration between the
set of C header files you specified and your running kernel. You may want to
rebuild a kernel based on that directory, or specify another directory.
For more information on how to troubleshoot module-related problems, please
visit our Web site at "http://www.vmware.com/go/unsup-linux-products" and
"http://www.vmware.com/go/unsup-linux-tools".
Execution aborted.
NASHOG:/c/vmware/vmware-server-distrib# - OLBJANAspirantYou must have overlooked some step, I did the upgrade to 4.2.15 as well and didn't run into any problems.
Did you make the symlinks for autoconf.h and that other link that's needed?
-Jan - j6harriAspirantThese are the symlinks that I have created.
NASHOG:/usr/src# ls -l linux
lrwxrwxrwx 1 root dip 29 2010-10-24 09:07 linux -> /c/vmware/GPL/linux-2.6.33.7/
NASHOG:/usr/src# ls -ld /c/vmware/GPL/linux-2.6.33.7/
drwxrwxr-x 24 root root 4096 2010-10-24 08:47 /c/vmware/GPL/linux-2.6.33.7/
NASHOG:/usr/src#
NASHOG:/usr/src/linux/include/linux# ls -l utsrelease.h
lrwxrwxrwx 1 root root 25 2010-10-24 09:03 utsrelease.h -> ../generated/utsrelease.h
NASHOG:/usr/src/linux/include/linux# ls ../generated/utsrelease.h
../generated/utsrelease.h
NASHOG:/usr/src/linux/include/linux# ls -l ../generated/utsrelease.h
-rw-r--r-- 1 root root 44 2010-10-24 08:41 ../generated/utsrelease.h
NASHOG:/usr/src/linux/include/linux# ls -l autoconf.h
lrwxrwxrwx 1 root root 23 2010-10-24 09:03 autoconf.h -> ../generated/autoconf.h
NASHOG:/usr/src/linux/include/linux# ls -l ../generated/autoconf.h
-rw-r--r-- 1 root root 17778 2010-10-24 08:41 ../generated/autoconf.h
NASHOG:/usr/src/linux/include/linux# - yomarkAspirantThis is nuts :D
Just successfully installed vmware-server on my new ReadyNAS Ultra 4(fresh 4.2.15), and upgraded memory to 2GB, using the instructions in post 1.
Of course some minor things are different(kernel source version paths etcetera), but other than that, it just works.
Did a quick test with a pfSense firewall, and it boots and installed fine. Performance doesn't seem that bad, considering the Ultra 4's Atom D410, but will report back later when i've put a Windows server on it.
The crazy thing is, i've bought the readynas for (NFS/iSCSI) storage for my ESX server at home. On the ESX server there are 2 very low-resource servers, one Windows 2003 R2 domain controller/DNS/DHCP/fileserver, and one Linux CentOS webserver(which is with PHP/Mysql on the readynas, not necessary anymore ).
Now I could end up running those VM('s) on my readyNAS :D. Saving power and the environment, and more importantly: my money.
Thanks guys for making this possible!!
I've got a very very happy nerdy feeling right now :)
Related Content
NETGEAR Academy

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