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
- yomarkAspirantUpdate: Windows 2003R2 is working well on the readynas. Copy files to/from it isn't very fast, but it's working fine as DC/DHCP/DNS server.
Also had a problem with vmware server not working after a reboot. After starting /etc/init.d/vmware manually it gave the error:VMware Server is installed, but it has not been (correctly) configured for your running kernel. To (re-)configure it, your system administrator must find and run "vmware-config.pl". For more information, please see the VMware Server documentation.
Did run vmware-config.pl, but after a reboot, the problem was back.
If something goes wrong with the init script /etc/init.d/vmware(and that seems to be the case every time I reboot), the script creates a file in /etc/vmware named "not_configured"
Next time you reboot Vmware doesn't start because this file is there.
"Solved it" by editing the init script /etc/init.d/vmware, so that it doesn't create that file(commented out the part under " # Set the 'not configured' flag" ). - sander11AspirantThank you so much. A little more hackish than I like, but now I can mess around in VMs instead of messing with the NAS.
2 questions, if you know:
Can virtual CPU usage make the NAS unusable or does VMware provide some buffer?
What happens if I ever have to update the firmware?
Thanks again. This why I got this box!!! - OLBJANAspirantHi,
VM usage can have serious impact on NAS performance, you can mitigate that somewhat by fiddling with the process priority for your VMs on the NAS. Just re-nice the vmx processes to a lower priority setting.
On firmware upgrades, it's typically necessary to re-compile the necessary modules and re-configure the vmware server. Depending on how much got changed in the linux kernel - if there's a new one in the firmware - it can get really fiddly.
Typically I update the guide here in those cases.
-Jan - sander11AspirantThanks for the follow up. Subsequent to asking I remembered I could throttle the VMs inside so I think I can handle that. As for the firmware updates, I think I'll hold off on those until you give the go ahead. ;)
I had trouble accessing the server through the latest VI Client. It always wants to download the 2.x Windows client, which wasn't available, probably because it was compiled through source. My interim solution was to use the an old client (2.0 was the best I could find which has issues on Windows 7). I came across this post:
http://www.linux.com/community/blogs/ac ... d-way.html
With the downloaded files I can access using the 4.1 client. You probably know that, but others might not.
Thanks again! - sander11AspirantI don't mean to keep posting, but I've found this so useful because it enables me to run the add-ons I want as opposed to those that developers make available.
I started running a Linux server vm 24/7. It only has 500MB of memory assigned, but somehow it created enough files in /tmp/vmware-root that it paused the VM because the VMware Server ran out of space.
I found this article:
http://kb.vmware.com/selfservice/micros ... rnalId=844
It seems I can move the temp files into the main array, maybe /c/vm/tmp. Does that sound correct? - gexxieAspirantHello,
thanks to your work, I have just ordered the new ReadyNAS Ultra 2 plus as well as 4Gb of RAM to run VMs at home. I want to get rid of my PC and do everything via my Ipad and extra stuff shall be performed via VNC/RDP on VMs
I wonder how much this NAS is upgradable? Do you have any ideas? What is the MAX RAM you have installed on your appliances?
As soon as I get the device, I will install the vmware server and update you. Hopefully, everything will work smoothly :-) - OLBJANAspirantSorry guys, I'm calling it quits for VMware Server 2 on the ReadyNAS platform as of 4.2.16. :(
If you want to use VMware on the NAS, you *have* to use a firmware prior to 4.2.16. Anything more recent, there just are no patches to make VMware work with the more recent linux kernels used on the NAS.
Bummer.
-Jan - sander11AspirantThat is bad news. It looks like I'll be on 4.2.15 for a good time to come then, luckily it still leaves me plenty of room to grow.
Thanks for your hard work and efforts, Jan. Don't worry they weren't in vain! They will be used for many years to come... hopefully. :rofl: - karexAspirantI need to reinstall server, but website http://risesecurity.org doesn’t work. Do you know alternative site? Thanks, K.
Related Content
NETGEAR Academy

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