Your problem is not because View Agent.
First verify that the NVIDIA kernel driver can successfully communicate with the GRID physical GPUs in your system by running the nvidia-smi command, which should produce a listing of the GPUs in your platform. Check the attachment for sample reference. If there is output for above command then drivers are working fine.
Power off the VM, go to edit settings, In add new device select Shared PCI Device and click add
K2 has a graphics card of 8gb. So if you select type of vGpu as K280Q its amounts to 4gb, so you can use graphics card for max 2 VM's Choose the following guide lines while assigning vGpu.
K280Q- 4gb
K260Q- 2gb
K240Q- 1gb
K220Q- 512mb
K200 - 256mb
Pre-requisites- Horizon 6.1+
Vsphere 6 U1+
Hope this helps,
In case you have any further quires, write back to me
Regards
Rishi