Why Does KVM Fail to Enable on My TNAS?

TOS application, TNAS PC, TNAS mobile
Post Reply
User avatar
TMnight
TerraMaster Team
Posts: 31
Joined: 30 Sep 2022, 16:40

Why Does KVM Fail to Enable on My TNAS?

Post by TMnight »

Applicable Version
Applicable to all versions from TOS 5.0.xxx to TOS 5.1.123 (inclusive)

Applicable Models
X86 TNAS Models

Fault Cause
The TOS system has not compiled the kvm.ko file, resulting in the inability to successfully enable kvm.

Instructions

1.File Download
1.1 Open your browser and visit the following links to download the required files:
https://tos-downloads.oss-cn-hongkong.a ... qbypass.ko
https://tos-downloads.oss-cn-hongkong.a ... m-intel.ko
https://tos-downloads.oss-cn-hongkong.a ... nel/kvm.ko
1.2 After downloading, make sure these files are saved on your computer desktop.

2.Transfer Files to NAS

2.1 For Windows:
2.1.1 Press the Windows key + R to open "Run".
2.1.2 Enter \ followed by the NAS's IP address, for example, \192.168.1.123, and click "OK".
2.1.3 Enter the NAS's username and password to log in.
2.1.4 In File Explorer, locate the three files on the desktop (irqbypass.ko, kvm-intel.ko, kvm.ko), and copy them to the "public" shared directory on the NAS.

2.2 For Mac
2.2.1 Open Finder, then select "Go" -> "Connect to Server".
2.2.2 In the pop-up window, enter smb:// followed by the NAS's IP address, such as smb://192.168.1.123.
2.2.3 Log in to the NAS, and copy the three files (irqbypass.ko, kvm-intel.ko, kvm.ko) from the desktop to the "public" shared directory on the NAS.

3.NAS Command Operations
3.1 Refer to the instructions in this link to log in to the command terminal of the NAS.
https://forum.terra-master.com/cn/viewt ... =87&t=1511
3.2 Use the 'mv' command to move files from the shared directory to the respective directory.
mv /Volume1/public/irqbypass.ko /lib/modules/5.15.59/extra
mv /Volume1/public/kvm.ko /lib/modules/5.15.59/extra
mv /Volume1/public/kvm-intel.ko /lib/modules/5.15.59/extra
3.3 Execute the following commands to load kernel modules.
insmod /lib/modules/5.15.59/extra/irqbypass.ko
insmod /lib/modules/5.15.59/extra/kvm.ko
insmod /lib/modules/5.15.59/extra/kvm-intel.ko
3.4 Execute the command depmod -a to update modules.

4.Check if the kvm module is successfully inserted
4.1 Enter the following command in the command line terminal: lsmod | grep kvm
If the following output appears, it indicates that the module has been inserted successfully:
Image
4.2 Check the "/lib/modules/5.15.59/modules.dep" file:
Enter the following command in the command line terminal:
cat /lib/modules/5.15.59/modules.dep | grep irq
If the following output appears, it indicates that the kvm module will be automatically inserted
into the kernel during boot:
Image
Post Reply

Return to “Applications”