Sep 30, 2020

Xpenology - Synology DSM 6.1 in PC (Part #2 - Installation)

Now once everything is prepared & ready, let's move to the installation steps. If you're new here, do refer back to Xpenology - Synology DSM 6.1 in PC (Part #1 - Preparation) for start.

A. Prepare the USB Bootloader.
The reason we need 2 x USB Flash Drives is because the first USB drive will be used to save the iso image into it and the second USB drive to save the bootloader into it.

1. Run --> CMD (run as Administrator) --> Type --> Diskpart --> [ENTER].


2. You should have the following screen.



3. Type --> List Disk --> [ENTER].



4. Type --> Select Disk 2 --> [ENTER].



Note : If the USB flash drive is in "Disk 3" then change the numeric value accordingly. Do ensure the selection is the USB flash drive and not your local partition(s) or drive(s). As there's no way to reverse these step. Also ensure the USB flash drive doesn't contains any data in it, as my USB flash drive is a 16GB capacity thus its very easy for me to identify which disk.

5. To verify whether the selection is correct or not, type --> List Disk --> [ENTER] again. You will notice an "*" (asterisk) mark beside the selected disk as shown below.



6. Now type --> Clean --> [ENTER].



Note : There's now way to reverse this step, be very careful you are selecting the correct disk.

7. Next is to type --> Exit --> [ENTER] to exit from the "diskpart" utility.



8. Eject the USB flash drive, let's called this "USB-ISO", next insert the second USB flash drive and repeat from Steps #1 to Steps #7.

9. Let's called the second USB flash drive "Bootloader". Then proceed to close the command prompt window and eject it too. This is for easy references for this tutorial, so when I said "USB-ISO" means its the first USB flash drive and when I said "Bootloader" means its the second USB flash drive.


B. Change the configuration.
Now we need to modify some configuration of the downloaded bootloader file before saving the image into the USB flash drive. Assuming you have installed the "OSFMount" tool prior to this.

1. Run --> OSFMount utility now and you see the screenshot as below.



2. Click --> Mount new button and the following windows will be displayed.



3. Browse for the iso file "DS3615xs 6.1 Jun's Mod V1.02b.img" which you have downloaded.



4. Next you will be prompted to select which partition image, Select --> Partition 0 - 15.0 MB (DOS3.31 + FAT 16) as shown below.



5. Once selected, Untick --> Read-only drive option as shown below. And Click --> OK button to continue.



6. Now the utility will load the image and mount a virtual drive as shown below.



7. Open --> Windows Explorer --> Browse to the virtual drive --> [E:\grub] folder.



8. Locate a file called --> grub.cfg --> Right-Click --> Open with --> Notepad++ (assuming you have installed Notepad++ utility).



9. Now Notepad++ utility will be open the file accordingly as shown below.



10. Locate the following lines as shown below.


11. Leave this screen open for now.


C. Locating the VID and PID Value.
With the "USB-ISO" still plugin, its time to look for the VID & PID value, the simplest way is to use USB tool as you have downloaded earlier. I'm using the "CheckUDisk_v5.4.exe" utility for this.

Note : that not all utilities are created equal thus you may need to explore around which suits your USB flash drive best and have the accurate information.

1. Run --> CheckUDisk utility and the following screen will be displayed.



2. You need to Tick --> All USB Device option then it will shows all available USB devices as shown below.



3. Note down the VID & PID value as shown.


My USB flash drive's VID value is 0781 and the PID value 5567. These values varies and depends on the manufacturer and model.

4. Now you can close this utility.


D. Getting Serial Number.
As I've explained earlier, DSM will not run without a valid Serial Number thus we need to generate a S/N that can be authenticated.

1. Open any internet browser --> https://xpenogen.github.io/serial_generator/index.html, you have a similar webpage displayed as below.



2. Select the appropriate model from the drop-down list and Click --> Generate button. Example I've used DS3615xs model, the S/N is generated at the bottom box (sorry, I've to hide it now). Note down the generated S/N.



3. Proceed to close the browser.


E. Getting NIC's MAC Address.
Next is to get the NIC's MAC address, this can be either found inside the BIOS/UEFI or physically on a label at the NIC.

Assuming its a built-in NIC, the MAC address is usually located inside the BIOS/UEFI under "System Information". I can't exactly tell you where it will be located as each manufacturer may have different naming convention.

I've found mine MAC address is "5C-D9-98-F5-F1-B3", note down the address.


F. Making the changes.
Now its time to return back to the Notepad++ screen, with all the information ready lets make the configurations changes accordingly.

1. Replace the value accordingly, example as per screenshot below.



Note : I've leave the "0x" value intact and only replace the rear value with correct value of my USB flash drive.

Note : The MAC address must not contains any special characters, it must be remove.

2. You may also wanted to change the timeout value to "3" seconds as shown below. This is optional but its good slow things down a bit.



3. Click --> "Save" icon as shown below and close the Notepad++ utility.



4. Next is to unmount the virtual drive, Click --> Dismount All & Exit button.



5. Next is to launch "Rufus" utility, my version is v.3.4.1430 (as of writing), you may have the latest version downloaded.



6. Click --> SELECT button, browse for "DS3615xs 6.1 Jun's Mod V1.02b.img" file, example screenshot of the selected file as shown below.


Note : Ensure the correct USB drive is selected, mine is a 16GB USB flash drive thus its easily identified.

7. Click --> START button and when prompted, Click --> OK button to start the writing process.



8. This may take a while, go have some coffee.



9. Once completed, you will see the following status screen.



10. Proceed to close "Rufus" utility then eject the "USB-ISO" flash drive from the computer.

11. Plugin both the "Bootloader" and "USB-ISO" flash drive into the old computer.

12. You may need to configure the old computer's BIOS\UEFI to boot from USB drive, mine I have to press [F10] key during power-on to invoke the boot menu option and select the "USB-ISO" flash drive to boot. Your computer may be using a different key.

13. Also while in the BIOS/UEFI screen, look for "C1E Support" or similar wording. If applicable this option must be DISABLED prior to booting the USB drive.

14. After successfully booted from the USB drive, you will the following screen, give it another 3-5 minutes before proceeding to the next step.



15. Now back to your computer, browse, download and install the "Synology Assistant" tool. This tool is important to find the Xpenology unit in the network and in the installation steps. If detected successfully, you should see the following screen as below. Select the unit and click "Connect" button.


16. You will have the following screen displayed. Click "Setup" button to continue.


17. At this stage, select "Manual Install" option. DO NOT CLICK "Install Now" button.


18. At this screen, click "Browse" button and browse your local computer where the .pat file was downloaded previously. It can be downloaded at (https://www.synology.com/en-global/support/download/DS3615xs#firmware).



19. Once selected, click "Install Now" button to continue.


20. You will be prompted with this warning message, just select the option and click "OK" button to continue.


21. The progress bar will be displayed and depending on your hardware configurations the completion time may differs. Please wait for it to complete.


22. Once completed, you will be prompted to input the following information. You may put in whatever name and password you desired. Click "Next" button when ready.


23. Next is select "Download DSM updates and install them manually" option. This is to ensure that Xpenology will be updated automatically as the updates will BRICK the system and as such it is recommended to disabled the auto updates accordingly. Click "Next" button when ready.


24. At this screen, you need to click "Skip this step" option. It is located just below the "Next" button and its GREYED OUT. Please look carefully. If you setup the QuickConnect function, some forumers mentioned it may brick your Xpenology unit too, though I did not try thus unsure how true.


25. Ignore the message and just click "Yes" button to continue.


26. DO NOT select any option at this screen, just click "Go" button to continue.


27. Since this is Xpenology, you need to also select "Skip" option located on the top-right corner.


28. Once everything is done, you should be presented with the DSM Desktop screen as shown below. You may now proceed to configure the unit such as changing the to fixed IP address, creating Volume(s), installing package(s) etc.


The following steps is OPTIONAL but recommended if you want to have SHR (Synology Hybrid RAID) enabled. There are many benefits in enabling this option, you can Google the comparison of SHR vs RAID 5.

29. Open "Putty" application, if not available it can be downloaded here (https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html). Type in the appropriate IP address of your Xpenology unit and connect to it. Ensure also that SSH is enabled on port 22.

30. At the command prompt type in the following :

30.1 sudo su
30.2 sudo -i vi /etc.defaults/synoinfo.conf

31. Inside the file, browse and look for "supportraidgroup="yes"" , it is found at Line 294,2. Once located you need to comment it out by adding "#" in front of the configuration. You may need to press the [INSERT] key in order to this.

32. Next is to insert a line just below the configuration, type in --> support_syno_hybrid_raid="yes", and when done just press the [ESC] key. Refer below screen for example.




33. Now press " : " key, and type "wq" and press [ENTER] key. This will save the changes.

34. Next is to exit putty and reboot the xpenology. Once booted up you can now have the options to create SHR Volume.

That's all and hope you'll enjoy playing with it. But I would strongly recommend to buy original unit from Synology if you are using it for business and their support.

!!! HAPPY COMPUTING !!!


Mar 20, 2020

Notebook : Acer Switch Keyboard Dock (Disassembly)

Been a while since my last post, been bog down with tons of work in the new company.

Recently my colleague asked my help to upgrade his Keyboard Dock with an SSD and below are my findings.

1. From first glance, this seems simple enough as most of the screws is visible at the bottom.


2. After removing those visible screws, I find it difficult to remove until I noticed the long rubber strips.


3. Upon removing the rubber strip there lies 2 more hidden screws.


4. And voila, the bottom cover is now removed revealing the components.


5. Removing the HDD is relatively simple but you need to be careful to disconnect the HDD's connector on the board itself first.


6. The HDD is just a SATA-2 port thus replacing it with a SATA-2 SSD is very simple and straight-forward.

7. As always, removing the back cover requires patients and do not force it as this will damaged the clips. As we all knows aged plastics tends to breaks easily and thus using the correct tools is always important.


!!! HAPPY COMPUTING !!!

Nov 19, 2019

VMWare : Delete Invalid VM

The following commands will allows you to delete VM that are "Invalid" in the WebUI.

1. Run SSH via Putty or any remote console of your choice.

2. Login as "root" into the ESXi server.

3. Type --> vim-cmd /vmsvc/getallvms
* To display all VMs in the server.

4. Take note of the "VMID" columns and any error messages shown such as "skipping unknown VMID 10" or similar messages, this is the VM that you might want to delete from the server.

5. Type --> vim-cmd /vmsvc/unregister <vmid>
* To unregister the specified vmid from the server.

6. If successful, you can exit from SSH and login back to the server via the WebUI.

7. Goto "Browse Datastore" and remove the invalid VM from the HDD.

Simple right ?

!!! HAPPY COMPUTING !!!

Sep 27, 2019

Install : Ubuntu Desktop v.18.04.3 LTS


1.       Boot ISO from either CDROM/USB Flash Drive, ensure LAN cable is connected with DHCP enabled and HDD doesn’t contains any data or (clean).

2.       Select à Install Ubuntu.

3.       Desktop version will automatically install the GUI and will try to connect to Ubuntu’s Repository to download and install any latest patches/upgrades.

4.       Language = English.

5.       Keyboard Layout = English (US).

6.       If Wireless Adapter is available, it will be automatically detected (if compatible) and it will prompt for connecting to any available Wifi Network. This step can be skip for now as long as the LAN cable is connected.

7.       Depends on the usage & purposes, you can select either of the following installation options :-
a.       Normal Installation (includes Libre Office Suites, Multimedia Applications, Tools & Utilities).
b.       Minimal Installation (basic Tools & Browser only).

8.       When prompted, select à Use Entire Disk à Continue.

9.       Select the correct time zone à Kuala Lumpur.

10.   On the next page, it will prompt for some basic informations :-
a.       Your Name : [Preferred Display Name]
b.       Your Computer’s Name : [Hostname]
c.       Login Name : [Username]
d.       Password : [Password]
e.       Login automatically / Require my password to login.

11.   It will prompt for restart and automatically eject the CDROM drive (if any), once ejected it will prompt you to press à [ENTER] key to restart.

12.   Once restarted, open “Terminal” apps and key-in the following command line :-
a.       sudo apt-get update
b.       sudo apt-get upgrade
c.       sudo shutdown now –r

13.   To disabled Network Printer Auto-Discovery & Auto-Install of drivers, run the following command line :-
a.       sudo nano /etc/cups/cups-browsed.conf
                                                              i.      Search for and change it to à BrowseProtocols none
                                                            ii.      Save and exit.
b.       sudo service cups-browsed restart
c.       sudo service cups restart
d.       sudo nano /etc/avahi/avahi-deamon.conf
                                                              i.      Search for section à [server]
                                                            ii.      Type-in these line under it à enable-dbus no
                                                          iii.      Save and exit.
e.       sudo service avahi-deamon restart

14.   Install and Run HDD defragmentation tools :-
a.       sudo apt-get install e2fsprogs
b.       sudo e4defrag /

15.   To install Google Chrome in Ubuntu Desktop :-
a.       Open Mozzilla browser à https://www.google.com/chrome     OR     https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
b.       At the web page click à Download Chrome
c.       Select à 64bit.deb (for Debian/Ubuntu)
d.       When prompted select à Save file
e.       Once download completed, open à Files à and search for “google-chrome-stable_current_amd64.deb”
f.        Double-click that file and it will auto install.


!!! HAPPY COMPUTING !!!

Jul 28, 2019

VMWare : Clonning from Physical to Virtual

Recently I've encounter some problems of converting a CentOS v.5.0 into VMWare ESXi v.6.7, this is particularly due to the tool (vCenter Converter Standalone) doesn't support CentOS v.5.0

So, instead of installing a brand new CentOS v.7.0 and migrate all the Oracle database into the new VM (Virtual Machine) manually, I proceeded to "clone" the physical machine.

There are some considerations before proceeding, the physical server's hardware specifications. How much RAM was installed, how many "Logical Array" is using. This will impact the creation of the VM, as such the ESXi server (host) must have sufficient hardware to support such a move.

The process is relatively easy, as this is done through "Direct Console Login", I was not able to provide the screenshots due to security issues. But nonetheless this are the steps I've taken and was successful.

Assumption :

a) The existing physical server (CentOS 5) hardware is 2 x NICs, 8GB RAM, 300GB x 2 RAID1, 300GB x 2 RAID1, 600GB x 2 RAID1.

(Note : a total of Three (3) logical drives was present, this part is important at the later stage).

b) External USB 2TB or more HDD.


The Steps-by-Steps :

1. Download the latest version of CloneZilla. At time of writing, the latest stable version v.2.6.2-15 and the edition I've downloaded is (i686, ISO) which is compatible with the server's hardware.

2. Using your preferred ISO burner, burn a bootable CDROM disc and you might want to label it for easy references.

3. Shutdown the CentOS 5 server by running command : shutdown now -h

4. Insert the CloneZilla bootable CDROM disc and plugin the External USB HDD into the CentOS 5 server.

5. Power-up the server and Press --> [F12] key.
* Note : Your server might have different key for invoking the "Boot Menu".

6. Select booting from the CDROM drive and wait for CloneZilla to boot automatically.

7. Follow the on-screen instructions, like language & keyboard selection.

8. Next is to select --> device-image option.

9. Then select --> local_dev option, then it will prompt you to press [ENTER] key to continue.

10. At the next screen, you will be shown a list of all the local drives & external USB drives detected. Just press [CTRL] + [C] to continue. You need to ensure the external USB HDD is detected correctly.

11. Next screen is to select "Home/PartImg" location, which in this case is the external USB HDD drive.

12. Next screen when prompt, just select --> OK button to continue, then it will prompt you what is the task you wanted to perform, in this case we select --> save_disk option.

13. Next it will prompt you for the image's filename, put a name that is simple & easy to remember (eg. svr_centos5_28Jul19), next is to ensure the image file size is unlimited, type --> 1000000 to ensure Clonezilla will not split the file according to 4GB limitation.

14. Leave the compression as default at either Z0 or Z1, of course you can have higher compressions but since I have a 2TB drive... so not a problems.

15. Next is the encryption prompt, this all depends on you. But as I'm the only 1 person in-charge & I do not need to keep the image after restoring, I will not encrypt the image files.

16. When prompted, just press --> [Y] to start the clonning process, this may takes a few hours (mine took me 14 hours) and select --> Shutdown when completed.

Note : More information can be found at Clonezilla website, please do visit their website.


17. Once all is completed, we will be moving the VMWare server. First we need to create VM and all the configurations must match exactly as the CentOS 5 server, such 2 x NICs, 3 x Drives & 8GB RAM.

18. For the selection of Guest OS, I've selected --> CentOS 4/5 64-bit version.

19. Also I've configured the CDROM to use an ISO image file instead of the host's drive. I need it to boot into CloneZilla for the image restoration.

20. Next is plugged in the external USB HDD into the host server and add a "USB Device" in the VM, this is to ensure the drive is detected properly.

21. The following is boot the VM into CloneZilla and start restoring "restore_disk" process, leave everything as default will do.

Oh, you might want to select --> "Skip checking source image" option & "Shutdown" after complete.

22. Before power-on the VM, you need to remove the external USB HDD from the settings and also the ISO file.

23. Just power-on the VM like normal & look out for any irregular warnings or critical messages. But thus far I've didn't encounter any error messages or similar and everything just works as it was supposed to.


!!! HAPPY COMPUTING !!!

VMWare : ESXI v.6.7 - Change Hostname

A step-by-step on changing the VMWare ESXi v.6.7 hostname, no not the virtual machine's hostname but the Hypervisor's hostname.

1. Login to the Web Client interface.

2. Browse to --> Networking menu.



3. Select --> TCP/IP Stack menu (or tab).



4. At the --> Actions button, select --> Edit settings.



5. Click on the --> Edit the [Host name], [Domain name] and any other settings you've wanted.



6. Once completed, just click --> Save button.


!!! HAPPY COMPUTING !!!

Jul 5, 2019

VMWare : vCenter Converter Standalone (P2V)

I was doing a migration from Physical server to Virtual server, specifically in VMWare ESXi Hypervisor v.6.7

Luckily VMWare does have a FREE tools called VMWare vCenter Converter Standalone, download here. As of writing the latest version is v.6.2.0

The installation is very simple and straightforward, you just need to ensure the following ports is open at the firewall.

(A) Server Ports.

1. TCP = 443, 445, 139, 9089, 9090
2. UDP = 137, 138

(B) Client Ports.

1. TCP = 443

The above ports need to be enabled at the Firewall and I've only done the P2V from Windows Server 2008 R2 to ESXi v.6.7 Hypervisor. I've yet to try the Linux OS thus unsure how it will works.

Take note that the "Source" server must also have the Converter installed as "Agent", then from the "Server" Converter connect to the "Source" to perform the conversion.

!!! HAPPY COMPUTING !!!