Install Synology DSM 5.0 on VPS
Hi everyone, in this post i’m going to show you how to install Synology DSM 5.0 on your VPS.
Please have a look at tutorial below to install DSM 5.0 on VPS. I use DigitalOcean droplet to make this tutorial
How To Install Virtualbox Headless on CentOS 6.6
Goal
After this tutorial, we are going to have fully functional headless VirtualBox server
Requirements
- 1 CentOS 6.6 droplet (1GB RAM)
- VirtualBox 4.3.28 (Linux version)
- Extension pack
- phpVirtualBox
- Nanoboot 5.0 32bit (link provided at the end of this post)
- DSM 5.0 from Synology
- You know how to use Virtualbox
Prepare droplet
Oracle VirtualBox can not work with CentOS latest kernel 2.6.32.504. We have to switch back to older version 2.6.32.431
You can easily switch your kernel version by change kernel in your account Dashboard

Start and get access to your droplet
- Install neccesary package (epel-release, wget, nano)
yum install -y epel-release nano wget
- Verify your kernel version
uname -r
- Download additional kernel packages
Go to any directory (Eg. /opt)
cd /opt
- Download kernel-devel and kernel-headers
wget http://vmblogs.vn/package/kernel-devel-2.6.32-431.1.2.0.1.el6.x86_64.rpm
wget http://vmblogs.vn/package/kernel-headers-2.6.32-431.1.2.0.1.el6.x86_64.rpm
- Install kernel-devel and kernel-headers
yum localinstall kernel-headers-2.6.32-431.1.2.0.1.el6.x86_64.rpm
yum localinstall kernel-devel-2.6.32-431.1.2.0.1.el6.x86_64.rpm
- Exclude kernel packages from updating
Edit the file/etc/yum.conf
exclude=kernel*
- Update system
yum update -y
Install Development Tools
In order for VirtualBox to compile correctly, we have to install necessary tools
yum groupinstall "Development Tools" -y
Download and install Virtualbox
Download VirtualBox and other packages Go to /opt
- Download latest stable version of VirtualBox
wget http://download.virtualbox.org/virtualbox/4.3.28/VirtualBox-4.3.28-100309-Linux_amd64.run
wget http://download.virtualbox.org/virtualbox/4.3.28/Oracle_VM_VirtualBox_Extension_Pack-4.3.28-100309.vbox-extpack
wget http://dlc-cdn.sun.com/virtualbox/4.3.28/VBoxGuestAdditions_4.3.28.iso
Setup VirtualBox
- Allow VirtualBox to run
chmod +x VirtualBox-4.3.28-100309-Linux_amd64.run
- Setup VirtualBox
./VirtualBox-4.3.28-100309-Linux_amd64.run
- Install Extension package
VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.3.28-100309.vbox-extpack
Verify Extensions Package
VBoxManage list extpacks
Compile VirtualBox driver
service vboxdrv setup
Start and stop VirtualBox web service
- To start web service
vboxwebsrv
- To stop web service
Ctrl + C
You may want to use screen with vboxwebsrv
Download and configure phpVirtualBox
Setup httpd server
yum install httpd php php-common php-soap
Download phpVirtualBox
- Download phpVirtualBox
wget http://sourceforge.net/projects/phpvirtualbox/files/phpvirtualbox-4.3-3.zip/download
- Rename download file
mv download phpVirtualbox.zip
- Extract download file
unzip phpVirtualbox.zip
- Rename extracted folder
mv phpVirtualbox-4.3-3 phpvirtualbox
- Move to web folder
mv phpvirtualbox /var/www/html
Config phpVirtualBox
Go to phpVirtualbox directory
cd /var/www/html/phpvirtualbox
Rename config.php-sample
mv config.php-sample config.php
Edit config.php
nano config.php
var $username = ‘your_root_account’;
var $password = ‘your_root_password’;
var $location = ‘http://127.0.0.1:18083/’; do not modify this
Create new setting file
touch /etc/defaults/virtualbox
and edit /etc/defaults/virtualbox with options below
VBOXWEB_USER=vbox
VBOXWEB_HOST=127.0.0.1
Disable SELinux /etc/selinux/config
SELINUX=disabled
Add firewall rule to allow web access
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
Now start httpd server and access phpVirtuaBox
service httpd start
chkconfig httpd on
http://your-ip-address/phpvirtualbox
Default phpVirtualBox login
Username: admin
Password: admin
Troubleshooting
phpVirtualBox can not login
Run this command to fix login problem
VBoxManage setproperty websrvauthlibrary null
Notes
- Although Virtualbox display 64bit at OS selection, you just can not use or your VMs will stop with Stuck error
- The performance is really low. I managed to install a XPenology (Synology opensource), it took about 15 minutes to boot up and login successfully
- Set CPU CAP at 70-80% for your VMs
- For better performance, you are advised to make swap file on your droplet. Check this link on DO
XPenology
- After get access to phpVirtualBox, you can create new VirtualBox VM for XPenology
- 1core CPU
- 512MB RAM
- HDD depend on your VPS
- CD with Nanoboot ISO mount at first boot
- No USB
- NAT network with port 5000 forward to VM (default VM IP is 10.0.2.15). You also need to open port in iptables to allow access from outside (5000)
Download links
Pre-configured VM – ready to import
Username and password for pre-configured VM
Username: admin
Password: Aa123456*
