Problem installing Nvidia driver with VM and GPU passthrough.

Ubuntu 16.04 LTS
Card: NVIDIA(GP106 [GeForce GTX 1060 6GB])
Platform: QNAP Virtualization Station
No X-Windows: Command Line only system

Error: The distribution-provided pre-install script failed! Are you sure you want to continue?
Installation of the NVIDIA Accelerated Graphics Driver for Linux-x86_64 (version: 384.98) is now complete. Please update
your XF86Config or xorg.conf file as appropriate; see the file /usr/share/doc/NVIDIA_GLX-1.0/README.txt for details.

Error: Unable to determine the device handle for GPU 0000:00:07.0: Unknown Error

root@Empire:/var/log# cat /proc/driver/nvidia/gpus/0000:00:07.0/information
Model: GeForce GTX 1060 6GB
IRQ: 38
GPU UUID: GPU-???-???-???-???-???
Video BIOS: ??.??.??.??.??
Bus Type: PCIe
DMA Size: 36 bits
DMA Mask: 0xfffffffff
Bus Location: 0000:00:07.0
Device Minor: 0

Processor set to passthru mode.

Seems realted to the driver

root@Empire:/var/log# lspci
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 Ethernet controller: Red Hat, Inc. Virtio network device
00:03.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 03)
00:04.0 Communication controller: Red Hat, Inc. Virtio console
00:05.0 SCSI storage controller: Red Hat, Inc. Virtio block device
00:06.0 Unclassified device [00ff]: Red Hat, Inc. Virtio memory balloon
00:07.0 VGA compatible controller: NVIDIA Corporation GP106 [GeForce GTX 1060 6GB] (rev a1)
00:08.0 Audio device: NVIDIA Corporation GP106 High Definition Audio Controller (rev a1)

try with KVM