Enable VM VT-x support on TS-453A
-
- New here
- Posts: 5
- Joined: Sun Jul 17, 2016 12:24 pm
Enable VM VT-x support on TS-453A
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.
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.
- ITEngineer
- Easy as a breeze
- Posts: 252
- Joined: Sun Feb 07, 2016 7:08 pm
- Location: Australia
-
- New here
- Posts: 5
- Joined: Sun Jul 17, 2016 12:24 pm
Re: Enable VM VT-x support on TS-453A
Previously on 4.2.1 and just upgraded to 4.2.2.
-
- New here
- Posts: 6
- Joined: Fri Jun 03, 2016 2:54 am
Re: Enable VM VT-x support on TS-453A
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>
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>
Code: Select all
$ virsh list --all
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
-
- Getting the hang of things
- Posts: 50
- Joined: Sat Sep 10, 2016 1:16 pm
Re: Enable VM VT-x support on TS-453A
Would you mind explain how to do this?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
-
- New here
- Posts: 6
- Joined: Fri Jun 03, 2016 2:54 am
Re: Enable VM VT-x support on TS-453A
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
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
-
- Getting the hang of things
- Posts: 50
- Joined: Sat Sep 10, 2016 1:16 pm
Re: Enable VM VT-x support on TS-453A
santiagax99
thank you very much for quick reply.
I now can run nested VM ^ ^
==============================
TS-451+
QTS 4.2.4
thank you very much for quick reply.
I now can run nested VM ^ ^
==============================
TS-451+
QTS 4.2.4
-
- New here
- Posts: 6
- Joined: Fri Jun 03, 2016 2:54 am
Re: Enable VM VT-x support on TS-453A
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).
-
- New here
- Posts: 2
- Joined: Thu Sep 28, 2017 5:21 pm
Re: Enable VM VT-x support on TS-453A
I have similar problem than "c2lai" explained in the beginning. I'm running QNAP @ 4.4.1.1216 and have tried to adjust how Windows VM see its CPU. Options from the menu are: Core i7 Nehalem / Westmere, Core 2 Duo or Passthrough. The last option shows actual hardware CPU of your QNAP in VM. None of them give you "Intel VT-x" Enabled when checked from Task Manager | Performance | CPU | Virtualization. I have not done any modifications via SSH to my QNAP and feel afraid to test "santiagax99" guide. Any thoughts?
- dolbyman
- Guru
- Posts: 35005
- Joined: Sat Feb 12, 2011 2:11 am
- Location: Vancouver BC , Canada
Re: Enable VM VT-x support on TS-453A
check your bios settings if VT-x is on in the bios of you (unspecified) unit
bios should be reachable with attached HDMi monitor and keyboard upon reboot of the NAS
bios should be reachable with attached HDMi monitor and keyboard upon reboot of the NAS
-
- New here
- Posts: 2
- Joined: Thu Sep 28, 2017 5:21 pm
Re: Enable VM VT-x support on TS-453A
I booted my unit to BIOS and only virtualization related info were:
VT-d: Un-Supported (Intel Virtualization Technology for Directed I/O) = grayed out on Main menu
VMX: Supported (CPU flag for VT-x capability) = grayed out on Main menu
Intel (VMX) Virtualization Technology: "Enabled" = adjustable on Chipset menu
My unit is TVS-871, Core i3 "Haswell", memory 16GB. More detailed specs for the CPU:
https://ark.intel.com/content/www/us/en ... 0-ghz.html
I believe my platform should be ok but for some reason VT-x does not come from the CPU to Windows VM.
VT-d: Un-Supported (Intel Virtualization Technology for Directed I/O) = grayed out on Main menu
VMX: Supported (CPU flag for VT-x capability) = grayed out on Main menu
Intel (VMX) Virtualization Technology: "Enabled" = adjustable on Chipset menu
My unit is TVS-871, Core i3 "Haswell", memory 16GB. More detailed specs for the CPU:
https://ark.intel.com/content/www/us/en ... 0-ghz.html
I believe my platform should be ok but for some reason VT-x does not come from the CPU to Windows VM.