HowTo: Install VBox Synology DSM 4.2.3202 onto x86 ReadyNAS

A nice, warm, and cozy place for all third-party developers to congregate.

HowTo: Install VBox Synology DSM 4.2.3202 onto x86 ReadyNAS

Postby MattyShack » Tue Mar 26, 2013 1:12 pm

XPENOLOGY DSM 4.2.3202
--------------------
OS: SYNOLOGY, DSM 4.2.3202
VIRTUAL MODEL: DS3612xs

Are you worried that the new ReadyNAS 100,300, and 500 series means EOL for you current x86 ReadyNAS?
Are you worried that features of ReadyNAS OS6 will never make it into your current x86 ReadyNAS?
Is your system running fine, so you don't really have the need or desire to spend hundreds of dollars to upgrade?

Then, thanks to VBox, give your older ReadyNAS product the same capabilities (if not more) as the new ReadyNAS line.
Netgear and QNAP have better hardware, but Synology has many times more free apps and a better graphical web browser interface.

Synology User Manual: http://www.synology.com/support/download.php?lang=enu&b=12%20bays&m=DS3612xs
Modified Firmware Image:

    http://kuai.xunlei.com/d/heVkBwKQPAA.cFJR954
    http://pan.baidu.com/share/link?shareid=352918&uk=1193824219

You must have an operational VBox Host Server installed onto your ReadyNAS for this to work.

*** Setup a Synology VBox Guest running on your ReadyNAS VBox Server
1. Create Guest VM:
    A. General[Basic]: Synology, Linux, Linux 2.6 (64 bit), 512MB
    B. [Do not add a virtual hard drive] at this time: <Create>
    C. System[Motherboard]:Base Memory[512MB], [x]Hard Drive, [x]CD/DVD-RPM, [x]Floppy, Chipset[PIIX3]
    D. System[Processor]: [x]Enable PAE/NX
    E. Display[Remote Display]: [x]Enable Server, 12MB Video Memory
    F. Storage: Controller [IDE], Type [PIIX3]
      1. Attach Primary/Master: Flash Image ~ DS3612xs_3202-Repack.vdi
      \-> create DS3612xs_3202-Repack.vdi using VBOX: $ VBoxManage convertfromraw --format VDI DS3612xs_3202-Repack.img DS3612xs_3202-Repack.vdi
      2. Attach Secondary/Master: VBoxGuestAdditions.iso
    G. Storage: Controller [SATA], Type [AHCI], Port Count [6]
      Create and Attach 6 Virtual Disks: SynologyVirtualDisk1 .. 6
      These Virtual Disks will hold your Synology operating system.
      Synology can also link to remote shares. This means you can remote link to your ReadyNAS Shares.
    H. Network: Adapter 1/2 -> [x],[Bridged], [x] eth 0/1, [Deny]
      Advanced: [Intel PRO/1000 MT Desktop]
      MAC: Set MAC to match the mac address of the DS3612xs_3202-Repack.vdi image [00113208D62A/B]
    I. Optional: You can also tie a VBox VM to a Physcal HD. The VBox VM will take control and reformat as if it were directly connected to a PC running the installed OS.
      1. Example in Windows: Open DOS Window as Administrator
      \-> C:\ VBoxManage internalcommands createrawvmdk -filename "C:\Users\Downloads\NAS\Synology\DS3612xs\synoHD.vmdk" -rawdisk \\.\PhysicalDrive1 -register
      OPTIONAL: (The '-register' option should have done this part) VBoxManage storageattach Synology --storagectl "SATA" --port 0 --device 0 --type hdd --medium "C:\Users\Downloads\NAS\Synology\DS3612xs\synoHD.vmdk"
      2. Example in Linux: Must provide the actual /dev/sdx. In this example sda was used
      \-> $ VBoxManage internalcommands createrawvmdk -filename ~/.VirtualBox/Machines/Ubuntu.vmdk -rawdisk /dev/sda -register
2. <Start> Synology VM
3. Download and install the Synology Assistant (Windows PC App)
4. Run the Synology Assistant. It will scan and display the IP of any Synology NAS devices running on your network.
5. <Click> on the displayed Device then <Click> on the above [Connect] Icon to go to a web portal.
6. Load the "DS3612xs_3202-Repack.pat" file from your PC when asked. This is a modified version designed to work with VBox.
Last edited by MattyShack on Sun Nov 24, 2013 7:34 am, edited 3 times in total.
MattyShack
ReadyNAS Newbie
 
Posts: 37
Joined: Mon Jul 02, 2012 11:05 pm

Re: HowTo: Install VBox Synology DSM 4.2.3202 onto x86 Ready

Postby chirpa » Tue Mar 26, 2013 1:46 pm

I tried putting DSM directly on the NAS, not inside VirtualBox. But it looks like they don't have NIC drivers for the on-board Marvell :(
User avatar
chirpa
Jedi Council Alumni
 
Posts: 16148
Joined: Mon Sep 24, 2007 11:52 am
Location: San Jose, CA
ReadyNAS: Repertoire

Re: HowTo: Install VBox Synology DSM 4.2.3202 onto x86 Ready

Postby MattyShack » Tue Mar 26, 2013 2:02 pm

You should try again with the above modified DSM. Others have added more kernel drivers to support VBox and many other motherboards. Chances are, the Marvell driver is included in these modified, but not in the stock Synology images.

When you flash the SMI, are you saving a copy of the vpd file or are you rebuilding it from scratch? If you can share, I'd like to know how to rebuild it from scratch.

Thanks,
Matt.
MattyShack
ReadyNAS Newbie
 
Posts: 37
Joined: Mon Jul 02, 2012 11:05 pm

Re: HowTo: Install VBox Synology DSM 4.2.3202 onto x86 Ready

Postby chirpa » Tue Mar 26, 2013 2:07 pm

Thanks for the alternative link, I tried to get DS3216-3203 off XPe previously but the Google Docs page its hosted on wants auth granted to get it. Besides that, tried the older 3161 with no luck, as well as the Qnology 3203 based on DS2411+.

I'll give this image a spin tonight. viewtopic.php?p=389470#p389470

I'm overwriting the SMI, I don't need to save the VPD, I can rebuild that myself if needed later on; easy enough to back it up first if needed.
User avatar
chirpa
Jedi Council Alumni
 
Posts: 16148
Joined: Mon Sep 24, 2007 11:52 am
Location: San Jose, CA
ReadyNAS: Repertoire

Re: HowTo: Install VBox Synology DSM 4.2.3202 onto x86 Ready

Postby MattyShack » Tue Mar 26, 2013 2:38 pm

Thanks for the link, didn't know that OS6 was already being discussed. Funny, I just saw NetGear's announcement this morning and had the exact same thoughts. As a matter of fact, I've already written scripts to modify the ReadyNAS boot menu and roll a new initrd for flashing the SMI on my ReadyNAS Ultra. My original intent was to add boot menu options; create a new md0, backup md0, restore a backed copy of md0 or create a chroot - all using the menu buttons. I had success with the backup, restore and chroot, but could not figure out how to erase md0 and create a new one as if factory default was selected without disrupting the /c/ share or loosing data. I estimate I had about 80% but couldn't figure out the last 20% so this project has been on the back burner.

Changing topics. If the modified DSM loads, how do you plan to access the ReadyNAS OLED and buttons? As far as I can tell, the NV6 GPIO code is missing from GPL. According to the Warwick site:
The front panel display and the 'Backup' buttons are accessible by means of a kernel module. They will build with make -C /usr/src/linux M=`pwd` modules but won't insert into any recent distribution kernels as they use sys_open and sys_write symbols which are not (and should not be!) exported.
Last edited by MattyShack on Tue Mar 26, 2013 2:42 pm, edited 2 times in total.
MattyShack
ReadyNAS Newbie
 
Posts: 37
Joined: Mon Jul 02, 2012 11:05 pm

Re: HowTo: Install VBox Synology DSM 4.2.3202 onto x86 Ready

Postby chirpa » Tue Mar 26, 2013 2:42 pm

The LCD is easy enough, its just a serial device. http://nexentastor.org/boards/9/topics/ ... ssage-8241

The button will need some GPIO sniffing to find the interrupt.
User avatar
chirpa
Jedi Council Alumni
 
Posts: 16148
Joined: Mon Sep 24, 2007 11:52 am
Location: San Jose, CA
ReadyNAS: Repertoire

Re: HowTo: Install VBox Synology DSM 4.2.3202 onto x86 Ready

Postby MattyShack » Tue Mar 26, 2013 2:44 pm

Remember to hex edit the vender file and update grub.conf to match your ReadyNAS MAC and Serial before flashing the DSM image onto the SMI.

I figured out the usb copy button - pretty easy. Still working on the power button. Any recommendations on erasing and restoring md0 as if a factory default was performed?
MattyShack
ReadyNAS Newbie
 
Posts: 37
Joined: Mon Jul 02, 2012 11:05 pm

Re: HowTo: Install VBox Synology DSM 4.2.3202 onto x86 Ready

Postby chirpa » Tue Mar 26, 2013 2:54 pm

MattyShack wrote:Any recommendations on erasing and restoring md0 as if a factory default was performed?
To keep data volume, maybe start here: viewtopic.php?p=375300#p375300.

If /.os_install exists, it will factory default on boot, erasing the data volume also. if /.os_update exists, it will cause an OS Re-install.
User avatar
chirpa
Jedi Council Alumni
 
Posts: 16148
Joined: Mon Sep 24, 2007 11:52 am
Location: San Jose, CA
ReadyNAS: Repertoire

Re: HowTo: Install VBox Synology DSM 4.2.3202 onto x86 Ready

Postby tiranor » Tue Mar 26, 2013 3:20 pm

You are both crazy, but in the noblest meaning of the word !
ReadyNAS Ultra 4 (with 2GB RAM) with 2x Seagate ST3000VN001 (NAS HDD 3TB) and 2x Seagate ST3000DM001 (Barracuda 3TB) - 8326 GB (1 Caviar Green 3TB and 1 Barracuda 3TB died)
Dual switch Netgear GS605 : one main switch in the wiring closet, one for the "distribution" on DLNA devices (TV, Amp, media player)
NAS and internet box/router (with switch GS105E) on CyberPower DX600E ASI (usb connected). VDSL2 connectivity (43/15 Mb)
tiranor
ReadyNAS Expert
 
Posts: 209
Joined: Mon Oct 31, 2011 12:41 pm
Location: France
ReadyNAS: Ultra

Re: HowTo: Install VBox Synology DSM 4.2.3202 onto x86 Ready

Postby chirpa » Tue Mar 26, 2013 3:23 pm

tiranor wrote:You are both crazy, but in the noblest meaning of the word !
I prefer eccentric ;)
User avatar
chirpa
Jedi Council Alumni
 
Posts: 16148
Joined: Mon Sep 24, 2007 11:52 am
Location: San Jose, CA
ReadyNAS: Repertoire

Re: HowTo: Install VBox Synology DSM 4.2.3202 onto x86 Ready

Postby MattyShack » Tue Mar 26, 2013 3:40 pm

My Doc says it's OK to chat as long as I stay on meds and don't touch.
MattyShack
ReadyNAS Newbie
 
Posts: 37
Joined: Mon Jul 02, 2012 11:05 pm

Re: HowTo: Install VBox Synology DSM 4.2.3202 onto x86 Ready

Postby chirpa » Tue Mar 26, 2013 9:28 pm

Okay I tried 3202, still can't detect it with the Assistant tool.
User avatar
chirpa
Jedi Council Alumni
 
Posts: 16148
Joined: Mon Sep 24, 2007 11:52 am
Location: San Jose, CA
ReadyNAS: Repertoire

Re: HowTo: Install VBox Synology DSM 4.2.3202 onto x86 Ready

Postby MattyShack » Tue Mar 26, 2013 9:36 pm

Thanks for the feedback. I may give it a shot once I finish transferring files, but may take a few days.
MattyShack
ReadyNAS Newbie
 
Posts: 37
Joined: Mon Jul 02, 2012 11:05 pm

Re: HowTo: Install VBox Synology DSM 4.2.3202 onto x86 Ready

Postby interested » Tue May 28, 2013 11:14 am

Chirpa .... did you manage to detect Synology ???

I did try it out, but only on my Desktop Computer.
OS 6.0.5 on ReadyNAS PRO6
interested
ReadyNAS Expert
 
Posts: 203
Joined: Fri Jan 02, 2009 11:25 am
ReadyNAS: Pro

Re: HowTo: Install VBox Synology DSM 4.2.3202 onto x86 Ready

Postby chirpa » Tue May 28, 2013 11:17 am

I gave up on it. Getting rid of any ReadyNAS units I have.
User avatar
chirpa
Jedi Council Alumni
 
Posts: 16148
Joined: Mon Sep 24, 2007 11:52 am
Location: San Jose, CA
ReadyNAS: Repertoire

Next

Return to ReadyNAS Developers Network



Who is online

Users browsing this forum: No registered users and 2 guests