How to Recover Data of a Virtual Machine with Qnap QTS 5.1 on VMWare Hypervisor

In this article, we will explore how to create a virtual machine with Qnap QTS 5.1, and how to install QTS 5.1 on a VMWare virtual machine. You will also learn how to recover data from such virtual machine or physical disks of a Qnap NAS.

How to Recover Data of a Virtual Machine with Qnap QTS 5.1 on VMWare Hypervisor

Creating a virtual machine with Qnap QTS can be very useful if you want to create your own data storage or use the functionality of a Qnap network storage in your own local environment without buying any additional hardware. In this article I’ll show you how to create a Qnap virtual machine in VMware, and how to set it up as a local server. You’ll see how to prepare for creating a virtual machine, how to configure its settings, how to install QTS, and how to check if it works properly. We’ll be using Qnap TS-1685 model and one of the latest firmware versions, 5.1.0.2348.

Go to view
How to Recover Data of a Virtual Machine with Qnap QTS 5.1 on VMWare Hypervisor

How to Recover Data of a Virtual Machine with Qnap QTS 5.1 on VMWare Hypervisor

Getting ready to create a virtual machine with Qnap QTS

Before you can install a virtual machine with Qnap QTS, you should make some preparations. Here are a few important steps you need to take:

Make sure that your computer complies with the minimal requirements to run virtual machines. Usually it means having enough system memory and hard disk space, and a capable CPU on top.

First of all, download and install a VMware or Porxmox hypervisor. After that, download a Qnap bootloader image. When these steps are complete, you are ready to create a virtual machine with Qnap QTS.

How to create a virtual machine with Qnap on VMWare

To create a virtual machine, download the archive containing a virtual disk image of the Qnap operating system – I’ll leave the link in the description.

Download the archive containing a virtual disk image of the Qnap operating system

Extract the image to any convenient directory. Create a folder for the future virtual machine and copy the downloaded .vmdk file there. After that, start VMWare and click “Create a New Virtual Machine.” Leave every setting as it is, and choose a 64-bit Linux as an operating system. Assign a name and location, add the path to the folder containing the .vmdk file.

Creating a new VMware virtual machine

Let’s add a few more cores, and give this machine at least 6 GB of RAM.

Add at least 2 cores and 6 GB of RAM

All other settings should remain unchanged. In the end, this disk will be removed, so you can leave its settings as they are. Now that the virtual machine is created, you need to make some changes to its settings.

Virtual machine disk properties

Open the virtual machine settings, and remove the hard disk and the DVD drive.

Remove the hard disk and the DVD drive

In the network settings, change the NAT connection to Bridged.

Change the NAT connection to Bridged

Now add the system disk by clicking Add, and then Hard Disk.

Adding the system disk

In the popup wizard window, choose IDE and Use an existing virtual disk, and give the path to the disk image file that you have downloaded before. Click Finish.

Adding an existing disk to the virtual machine

Then add the other new hard disks – you need 4 physical disks.

Adding SATA disks to the machine

They must be of SATA type, otherwise the system may not recognize them during the installation process.

Adding physical disks to the virtual machine

Now you should change some network adapter options in the settings file of the virtual machine. To do it, go to the folder where the machine is stored, and open the .vmx file with the Notepad app. In the line ethernet0.virtualDev change the value from e1000 to e1000e. Save and close the file.

Changing network adapter settings in a file

After that, go to VMWare and run the virtual machine. This is when you should be quick enough to press the Up or Down arrow button when this screen appears, so that you can boot your system in the System rescue production mode.

System rescue production

This will boot the TinyCore utility. You can use it to modify the bootloader settings. In the settings, you can choose the storage model and the operating system version. To do it, run the Terminal.

TinyCore

For starters, check if the device can recognize your network. Run the ifconfig command to display network adapters. After that, check if there is any Internet access by pinging the DNS server.

Ping 8.8.8.8

Checking network settings

To change bootloader settings, type this command:

vi ./my_create_qnap_boot

There are three lines that can be modified:

MODEL_TYPE - model

PATCHED_FIRMWARE – firmware version

DOWNLOAD_URL – download address

It shows a well-tested model, so I won’t change it.

MODEL_TYPE="QY380_QY390_10_11"

You can find the latest firmware version on the official Qnap website.

Checking boot options

Press i to edit the file.

Now it can be changed. Let’s edit the firmware version. I’ll take one of the latest versions - TS-X85_20230322-5.0.1.2346.

I will leave the link without changes. https://download.qnap.com

To save your changes, click Esc, then type “:wq”.

Editing boot file

Now that you have edited the bootloader file, you can run it. Here is the command to use:

sudo ./my_create_qnap_boot

and wait for the booting to finish. If the boot was successful, you will see this report on your screen. Otherwise, the system will display an error message.

Creating a Qnap boot disk is successful

Now you should restart the system and wait until it boots. It takes from 10 to 15 minutes (or even longer) for the system to boot; everything depends on your computer’s hardware. If you did everything right, the system will boot and display the IP address of your storage device.

Displaying the device’s IP address

Open any browser you prefer and type the IP into the address bar. Also, you can find your network storage with the help of the Qfinder app. When in the browser window, you should finalize the installation of the operating system. In the window where you choose the system version, click Next. Set the username and password. After that, you can set up a static IP address. At the next stage, check the properties and click Apply.

Enter your credentials

The system will warn you that all drives will be erased as a result of initialization. Click Initialize to continue. It begins the installation and the process of applying your settings. When it’s over, you’ll see a window congratulating you on successful installation.

Confirming successful installation

To access the NAS settings manager, click Go to NAS Management.

Now the installation is over, and you have a virtual machine running a latest QTS version. Your further steps include creating a volume, configuring access, and enjoying a properly working network-attached storage.

How to install Qnap QTS 5.0 on a PC

In the same way, you can turn an ordinary PC into a NAS storage with a Qnap operating system. The only tricky aspect is that you’ll need a suitable network adapter since the firmware only contains network drivers for a limited list of models. What you need is an adapter similar to Intel e1000e. Otherwise, your device won’t be recognized in the network.

Download the .img file

For installation on a computer, you need to download an .img file and record the image from the archive to a pen drive. For example, you can do it with an app called Win32 Disk Imager. After that, you should boot your computer with this pen drive and follow the steps I have described earlier.

How to create a RAID on Qnap TS-1685

In order to create a RAID on this specific device model, open Control PanelStorage & Snapshots.

Control Panel – Storage & Snapshots

Click on New Volume, select the disks that the new array should include, choose the RAID type and click Next, then Create. The system will warn you that it clears all data on the selected hard disks. Click OK to confirm it. After that, the process of building the array, resyncing and formatting the disks begins.

Creating a new pool

Now that the pool is created, the system will suggest creating a new volume. To do it, click New Volume, choose one of the three options and click OK. Now you can create a shared folder and upload some data to your network-attached storage.

Creating a new volume

For each shared folder, the recycle bin feature is activated by default. If you accidentally deleted some important files, just open the recycle bin folder in File Station and restore them. Right-click on a file or folder and click Recover.

Recovering files from the recycle bin on Qnap QTS 5.1

If the recycle bin feature is inactive or you deleted files without sending them to the recycle bin first, your lost files can be recovered with the help of a specialized recovery tool.

How to recover data from RAID on QNAP

Data can be lost because of many factors such as various errors when processing files, hardware failures, and specifically, hard disk and RAID controller issues. When a network storage device is down, your RAID will be destroyed, and in order to retrieve any data from there, you need a special software tool to rebuild the RAID and let access important files.

Such tool, Hetman RAID Recovery, supports most file systems and all popular RAID types. If you used physical disks, connect them to a Windows computer directly. Take the drives out of the storage device and connect them directly to the motherboard of a Windows computer.

Recover data from damaged RAID arrays inaccessible from a computer.

If you used virtual disks, upload their images to the recovery tool. To do it, open Tools - Mount Disk, select the virtual machine type from the list, and click Next.

Mounting virtual disks in Hetman RAID Recovery

Specify the path to virtual disk files – OK, and click Next again. They will appear in the program’s window.

Specify the directory from where disk images should be mounted

It will build a RAID system automatically, so you’ll be able to scan it and access the necessary files.

Hetman RAID Recovery has rebuilt the array automatically

Right-click on the array and choose Open. Choose the search type, Fast scan or Full analysis. For Full analysis, you need to specify the file system type used for the hard disks. When the search if complete, open the folder where your files used to be stored. You can use the preview window to see their contents. Select the files you want to restore, and click the Recovery button.

Data recovery

Specify where to save the data (choose the disk and folder), and click Recovery again. When the recovery process is complete, you’ll see all the files in the specified directory.

Conclusion

Summing up, we can say that creating a virtual machine with QTS operating system may seem to be a complicated process, but it’s not that difficult if you make some preparations and follow the instructions. Dealing with data is not always smooth and seamless, and sometimes a part of information can be lost. Data recovery tools like Hetman RAID Recovery can become an irreplaceable tool to restore important information whenever it happens. No matter what, always remember to back up all important stuff regularly and keep it in a safe place.

Vladimir Artiukh

Author: , Technical Writer

Vladimir Artiukh is a technical writer for Hetman Software, as well as the voice and face of their English-speaking YouTube channel, Hetman Software: Data Recovery for Windows. He handles tutorials, how-tos, and detailed reviews on how the company’s tools work with all kinds of data storage devices.

Oleg Afonin

Editor: , Technical Writer

Oleg Afonin is an expert in mobile forensics, data recovery and computer systems. He often attends large data security conferences, and writes several blogs for such resources as xaker.ru, Elcomsoft and Habr. In addition to his online activities, Oleg’s articles are also published in professional magazines. Also, Oleg Afonin is the co-author of a well-known book, Mobile Forensics - Advanced Investigative Strategies.

Recommended For You

Hello! This is AI-based Hetman Software virtual assistant, and it will answer any of your questions right away.
Start Chat