Nested Virtualization with Virtualization Station on TS-x51+

Locked
cnemcse
New here
Posts: 2
Joined: Thu Feb 16, 2017 12:02 am

Nested Virtualization with Virtualization Station on TS-x51+

Post by cnemcse »

Upon searching for this, I've seen this asked a number of times, but not effectively or concisely answered, so here goes:

The following instructions were tested successfully on a QNAP TS-451+ with QTS 4.2.3

It *IS* possible to get nested virtualization working!

First, stop all running VM's and close out of Virtualization Station
Log in to shell as 'admin' using an SSH utility like Putty
Edit the file /KVM/modules/Insmod.sh with vim

search for all instances of kvm-intel.ko and append the following parameters: nested=y ept=y
i.e. /sbin/insmod ${KERNEL_MODULES}/kvm-intel.ko nested=y ept=y

save and exit vim

power off and reboot the QNAP

Once the system reloads, all VM's will have access to VT-x hardware virtualization, so for example, you could run ESXi or Ovirt as a guest.
ddbyam
Starting out
Posts: 10
Joined: Sat Dec 31, 2016 2:22 am

Re: Nested Virtualization with Virtualization Station on TS-x51+

Post by ddbyam »

I have a Qnap TVS-473 but the directory /KVM/modules doesn't exist.
/sbin does not sure which directory or file i have to edit in their to do this.
ddbyam
Starting out
Posts: 10
Joined: Sat Dec 31, 2016 2:22 am

Re: Nested Virtualization with Virtualization Station on TS-x51+

Post by ddbyam »

I found the directory
/sys/module/kvm
/sys/module/kvm_amd

But no insmod.sh in any of those directories
ddbyam
Starting out
Posts: 10
Joined: Sat Dec 31, 2016 2:22 am

Re: Nested Virtualization with Virtualization Station on TS-x51+

Post by ddbyam »

I think I figured it out.
The file that needs to be edited in /lib/modules/kvm and lvm_amd
The issue is that qnap is using x86 instead of x64 arch
It does support nested vm's just x86.
I hope they work on getting x64 nested vm's working.
Would be nice to us vs3 as a VM lab
cnemcse
New here
Posts: 2
Joined: Thu Feb 16, 2017 12:02 am

Re: Nested Virtualization with Virtualization Station on TS-x51+

Post by cnemcse »

Sorry, I can't speak to other models. On my TS-451+ the file paths mentioned above in my original post are correct, and x64 nested virtualization is supported...

BTW, /KVM only exists *AFTER* you install 'Virtualization Station"
inter-rupteur
Getting the hang of things
Posts: 69
Joined: Sat Apr 16, 2011 1:59 am

Re: Nested Virtualization with Virtualization Station on TS-x51+

Post by inter-rupteur »

Hi,

Nested on QNAP , it doesn't run !
See my post below :

viewtopic.php?f=199&t=130640

Inter-rupteur
pungpond
Getting the hang of things
Posts: 50
Joined: Sat Sep 10, 2016 1:16 pm

Re: Nested Virtualization with Virtualization Station on TS-x51+

Post by pungpond »

Are you now able to use nexted virtualization after upgrading to QTS 4.3.x with virtualization station V 3.0 ?
pungpond
Getting the hang of things
Posts: 50
Joined: Sat Sep 10, 2016 1:16 pm

Re: Nested Virtualization with Virtualization Station on TS-x51+

Post by pungpond »

cnemcse wrote: First, stop all running VM's and close out of Virtualization Station
Log in to shell as 'admin' using an SSH utility like Putty
Edit the file /KVM/modules/Insmod.sh with vim

search for all instances of kvm-intel.ko and append the following parameters: nested=y ept=y
i.e. /sbin/insmod ${KERNEL_MODULES}/kvm-intel.ko nested=y ept=y

save and exit vim

power off and reboot the QNAP
It work !!!!
thank you very much .
PS. I cannot see the file Insmod.sh so I modify Insmod_ko.sh instead.
=================================
TS-451+
QTS : 4.2.4
ccclapp
Starting out
Posts: 23
Joined: Thu Aug 03, 2017 1:51 am

Re: Nested Virtualization with Virtualization Station on TS-x51+

Post by ccclapp »

Sorry for a dumb question...

Is this for Linux hypervisor only or can hyper-v or VMware hyporvisors run nested? I am trying to get 1. ESXi running on V.S and also 2. Hyper-v to host some VMs. I am trying to do some testing of both in QNAP V.S lab.
User avatar
storageman
Ask me anything
Posts: 5507
Joined: Thu Sep 22, 2011 10:57 pm

Re: Nested Virtualization with Virtualization Station on TS-x51+

Post by storageman »

ccclapp wrote:Sorry for a dumb question...

Is this for Linux hypervisor only or can hyper-v or VMware hyporvisors run nested? I am trying to get 1. ESXi running on V.S and also 2. Hyper-v to host some VMs. I am trying to do some testing of both in QNAP V.S lab.
Blimey, how slow's that going to be, hypervisor in hypervisor! Good luck there.
User avatar
Trexx
Ask me anything
Posts: 5393
Joined: Sat Oct 01, 2011 7:50 am
Location: Minnesota

Re: Nested Virtualization with Virtualization Station on TS-x51+

Post by Trexx »

storageman wrote:
ccclapp wrote:Sorry for a dumb question...

Is this for Linux hypervisor only or can hyper-v or VMware hyporvisors run nested? I am trying to get 1. ESXi running on V.S and also 2. Hyper-v to host some VMs. I am trying to do some testing of both in QNAP V.S lab.
Blimey, how slow's that going to be, hypervisor in hypervisor! Good luck there.
yeah.. that will be "blazingly" fast on a x51+ processor ... ouch.
Paul

Model: TS-877-1600 FW: 4.5.3.x
QTS (SSD): [RAID-1] 2 x 1TB WD Blue m.2's
Data (HDD): [RAID-5] 6 x 3TB HGST DeskStar
VMs (SSD): [RAID-1] 2 x1TB SK Hynix Gold
Ext. (HDD): TR-004 [Raid-5] 4 x 4TB HGST Ultastor
RAM: Kingston HyperX Fury 64GB DDR4-2666
UPS: CP AVR1350

Model:TVS-673 32GB & TS-228a Offline[/color]
-----------------------------------------------------------------------------------------------------------------------------------------
2018 Plex NAS Compatibility Guide | QNAP Plex FAQ | Moogle's QNAP Faq
YoungHooligan
First post
Posts: 1
Joined: Thu Jan 29, 2015 8:20 pm

Re: Nested Virtualization with Virtualization Station on TS-x51+

Post by YoungHooligan »

I'm sorry to bring up a similar thing again and first of all, thanks for going out there and finding all this stuff out for us all. My end goal is to run an instance of eve-ng.

I'm on a TS-451+ on 4.3.3.0262 Build 27th July, I have Virt Stn installed and have a couple of VM's on there and they run OK. I'm intrigued to taking advantage of VT-x on my NAS as an added feature on top of all the other crazy stuff it does for me already. I realise my firmware version is newer than the original poster and appreciate the differences that can some about.

So, after looking from the start of the thread, as well as some other threads, I'm struggling to even put several of these instructions together, so would like to seek some advice.

So, I'm getting stuck at the first hurdle, where is /KVM and I wonder if that's what I'm even looking for?

[/] # ls -la
total 0
drwxr-xr-x 22 admin administ 560 Sep 7 19:11 ./
drwxr-xr-x 22 admin administ 560 Sep 7 19:11 ../
lrwxrwxrwx 1 admin administ 36 Sep 7 19:07 IPSEC -> /share/CACHEDEV1_DATA/.qpkg/QVPN/opt/
lrwxrwxrwx 1 admin administ 32 Sep 7 19:11 QVS -> /share/CACHEDEV1_DATA/.qpkg/QKVM/
drwxr-xr-x 2 admin administ 1720 Aug 30 15:10 bin/
drwxr-xr-x 15 admin administ 20360 Sep 7 19:06 dev/
drwxr-xr-x 30 admin administ 3380 Sep 7 19:11 etc/
drwxr-xr-x 2 admin administ 40 Aug 30 15:10 flashfs_tmp/
lrwxrwxrwx 1 admin administ 13 Aug 30 15:10 hd_root_tmp -> /mnt/HDA_ROOT/
drwxr-xr-x 4 admin administ 80 Jul 26 22:09 home/
drwxr-xr-x 6 admin administ 3280 Sep 7 19:07 lib/
lrwxrwxrwx 1 admin administ 3 Aug 30 16:09 lib64 -> lib/
lrwxrwxrwx 1 admin administ 11 Aug 30 16:09 linuxrc -> bin/busybox*
drwx------ 2 admin administ 40 Jul 26 22:09 lost+found/
drwxr-xr-x 10 admin administ 220 Sep 7 16:20 mnt/
drwxr-xr-x 2 admin administ 40 Aug 30 16:09 new_root/
drwxr-sr-x 2 admin administ 100 Sep 7 11:00 opt/
lrwxrwxrwx 1 admin administ 19 Aug 30 16:09 php.ini -> /etc/config/php.ini
dr-xr-xr-x 315 admin administ 0 Aug 30 16:08 proc/
drwxr-xr-x 3 admin administ 280 Sep 7 19:20 root/
drwxr-xr-x 2 admin administ 40 Aug 30 15:12 rpc/
drwxr-xr-x 6 admin administ 120 Aug 30 15:13 run/
drwxr-xr-x 2 admin administ 8820 Sep 7 19:20 sbin/
drwxrwxrwt 33 admin administ 880 Sep 7 16:55 share/
dr-xr-xr-x 12 admin administ 0 Aug 30 15:09 sys/
drwxrwxrwx 19 admin administ 2360 Sep 7 19:31 tmp/
drwxr-xr-x 10 admin administ 220 Jul 26 21:29 usr/
drwxrwxrwx 12 admin administ 640 Sep 7 19:07 var/
[/] #

As I've just picked up a new job with a lot more linux than what I'm used to as a home user, I'd be greatly indebted to any knowledge shown my way, please :).

Andy
tiscy
Starting out
Posts: 10
Joined: Thu Jun 11, 2009 6:49 pm

Re: Nested Virtualization with Virtualization Station on TS-x51+

Post by tiscy »

Hi All,

I have a TVS-682 with QTS 4.3.3.0404 and VS 3.0.2836

I have followed this guideline:
viewtopic.php?f=199&t=118544&p=650329#p627698

from "santiagax99," please refer to his entry at Sun Jul 23, 2017 9:30 pm "For VS3:"

I have installed VMware ESXI 6.5 in Virtualisation station, and have now running a 64bit Unix Image (which was not able to start before).

Many thanks
Tiscy
Locked

Return to “Virtualization Station”