Enable VM VT-x support on TS-453A

QNAP NAS solution for server virtualization and clustering/HA/FT
Post Reply
c2lai
New here
Posts: 5
Joined: Sun Jul 17, 2016 12:24 pm

Enable VM VT-x support on TS-453A

Post by c2lai » Mon Aug 01, 2016 10:50 pm

Hi all,

I've created a VM with Windows Server 2012R2 on my TS-453A (QTS 4.2.1) and found that VT-x is not enabled (no VT-x shown in the Instructions pane in CPU-Z).

Just want to know how to enable VT-x in SeaBios as I've tried to press F12 when VM booted up, but still no good. Thanks in advance.

User avatar
ITEngineer
Know my way around
Posts: 236
Joined: Sun Feb 07, 2016 7:08 pm
Location: Australia

Re: Enable VM VT-x support on TS-453A

Post by ITEngineer » Tue Aug 16, 2016 8:43 pm

What version of QTS are you on ?
--
Regards,

John Henry

c2lai
New here
Posts: 5
Joined: Sun Jul 17, 2016 12:24 pm

Re: Enable VM VT-x support on TS-453A

Post by c2lai » Wed Aug 17, 2016 11:01 pm

Previously on 4.2.1 and just upgraded to 4.2.2.

santiagax99
New here
Posts: 6
Joined: Fri Jun 03, 2016 2:54 am

Re: Enable VM VT-x support on TS-453A

Post by santiagax99 » Sat Oct 08, 2016 2:42 pm

c2lai wrote:Hi all,

I've created a VM with Windows Server 2012R2 on my TS-453A (QTS 4.2.1) and found that VT-x is not enabled (no VT-x shown in the Instructions pane in CPU-Z).

Just want to know how to enable VT-x in SeaBios as I've tried to press F12 when VM booted up, but still no good. Thanks in advance.



The problem is that your VM created with "typical" virtual CPU, so no VT-x is available in guest.
I've investigate this issue when trying to run ESXi host in QNAP libvirt VM. Point is to change manually CPU type in domain xml to:

Code: Select all

<cpu mode="host-passthrough">
<feature policy="require" name="vmx"/>
</cpu>

Here is gist with my VM xml file used to install and run ESXI hypervison inside QEMU VM
https://gist.github.com/santiagax99/2aa ... 80c4eb9923
is you able to connect to your NAS via ssh, you can edit VM setting via command

Code: Select all

$ virsh edit <vmname>

where <vmname> is name of your VM, you can find it via

Code: Select all

$ virsh list --all


I've successfully installed ESXI hypervisor, but can run only 32 bit VMs inside, probably kernel limitation (QTS 4.2 linux kernel is 3.12)


P.S.
I've forgot about one think, kvm and kvm-intel modules must be loaded with additional options

ignore_msrs=1 for kvm module
nested=y ept=y for kvm-intel module

Information about module loading you can gather in /KVM/modules/Insmod_ko.sh
P.S.S.
ANY CHANGES MADE NOT VIA WEB INTERFACE MAY DAMAGE YOUR NAS. DO IT AT YOUR OWN RISK

pungpond
Starting out
Posts: 38
Joined: Sat Sep 10, 2016 1:16 pm

Re: Enable VM VT-x support on TS-453A

Post by pungpond » Sat Jun 17, 2017 1:23 pm

santiagax99 wrote:P.S.
I've forgot about one think, kvm and kvm-intel modules must be loaded with additional options

ignore_msrs=1 for kvm module
nested=y ept=y for kvm-intel module

Information about module loading you can gather in /KVM/modules/Insmod_ko.sh
P.S.S.
ANY CHANGES MADE NOT VIA WEB INTERFACE MAY DAMAGE YOUR NAS. DO IT AT YOUR OWN RISK


Would you mind explain how to do this?

santiagax99
New here
Posts: 6
Joined: Fri Jun 03, 2016 2:54 am

Re: Enable VM VT-x support on TS-453A

Post by santiagax99 » Sat Jun 17, 2017 1:44 pm

Can't tell u about version i've been using in Oct when post were written.
But i've managed to load kvm and kvm_intel modules easily at latest Qnap OS version with 4.2.8 Kernel

0. login via ssh as admin user

1. create dir /etc/modprobe.d/
# mkdir -p /etc/modprobe.d/
2. add needed options for kvm and kvm-intel modules
# sh -c "echo 'options kvm-intel nested=y ept=y' >> /etc/modprobe.d/dist.conf"
# sh -c "echo 'options kvm ignore_msrs=1' >> /etc/modprobe.d/dist.conf"
3. reload kvm & kvm-intel modules
# rmmod kvm-intel kvm && modprobe kvm-intel
4. check options of loaded modules
# cat /sys/module/kvm_intel/parameters/nested
# cat /sys/module/kvm_intel/parameters/ept
# cat /sys/module/kvm/parameters/ignore_msrs


And as usual:
ANY CHANGES MADE NOT VIA WEB INTERFACE MAY DAMAGE YOUR NAS. DO IT AT YOUR OWN RISK

pungpond
Starting out
Posts: 38
Joined: Sat Sep 10, 2016 1:16 pm

Re: Enable VM VT-x support on TS-453A

Post by pungpond » Sat Jun 17, 2017 2:32 pm

santiagax99
thank you very much for quick reply.
I now can run nested VM ^ ^

==============================
TS-451+
QTS 4.2.4

santiagax99
New here
Posts: 6
Joined: Fri Jun 03, 2016 2:54 am

Re: Enable VM VT-x support on TS-453A

Post by santiagax99 » Sat Jun 17, 2017 3:59 pm

JFYI. This changes may be reverted after device reboot (OS stored on USB internal module and mounts in ram on boot as loop device, so no cahnges saved on reboot in '/' partition).

Post Reply

Return to “Server Virtualization & Clustering”