نحوه نصب ویندوز بر روی Synology

نحوه نصب ویندوز بر روی Synology

Install Windows on Synology

It is possible to install a windows system on a synology NAS:

mount -o bind /dev $CHROOT/dev
mount -o bind /proc $CHROOT/proc
mount -o bind /dev/pts $CHROOT/dev/pts
mount -o bind /sys $CHROOT/sys
mount -o bind /volume1/ $CHROOT/volume1/
  • Go into your chrooted system…
  • Download the GPL sources of synology’s kernel.
    • untar them into /usr/local/your_GPL_dist
    • make a link to the kernel sources:
ln -s /usr/local/your_GPL_dist/source/linux-3.x /usr/src/linux/
  • Prepare the sytem to build the kernel
apt-get install build-essential kernel-package debconf-utils dpkg-dev debhelper ncurses-dev fakeroot
  • Download the kernel of the chrooted system (same version than NAS)

(My version is 3.2.40)

mkdir /usr/local/kernelSources

cd /usr/local/kernelSources
git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
git checkout v3.2.40
  • Get the .config file from the synology sources and compile the kernel (it took approx 1 hour). This file is located inside the synoconfigs folder. You can find a good tutorial here. Assuming you are inside /usr/local/kernelSources folder, you can do:
cp /usr/local/your_GPL_dist/source/linux-3.x/synoconfigs/yourSynologyArchi .config
make oldconfig
fakeroot make-kpkg –initrd -j 3 kernel-image kernel-headers
  • Install the new kernel
dpkg -i linux-headers-3.2.40_3.2.40-10.00.Custom_amd64.deb linux-image-3.2.40_3.2.40-10.00.Custom_amd64.deb
  • Reboot your NAS, the chrooted env is now using the same kernel than the NAS! It’s time to install VirtualBox!
  • Download the PUEL version, for all distributions (AMD64 if your system is x86_64)
  • Run the downloaded file, everything should goes fine, exept for the drivers whose node (/dev/vboxdrv/) will not be created!
  • The scripts in /etc/init.d was not build so you can download them here:
  • I had to modify vboxdrv script to match my system (line 179):
MINOR=`sed -n ‘s;([0-9]+) vboxdrv$;1;p’ /proc/misc`
  • you can now setup/start the drivers and run virtualbox:
/etc/init.d/vboxdrv setup

You can now create a virtual machine on a headless server following this good tutorial!

دیدگاهتان را بنویسید

نشانی ایمیل شما منتشر نخواهد شد. بخش‌های موردنیاز علامت‌گذاری شده‌اند *