Is a graphics driver needed for Cuda 10.0? (Virtual machine)

Hi everyone, I just installed Cuda 10.0 on Ubuntu 18.04 Bionic Beaver as a dependency for YOLO. However, a problem that bugs me is that when I checked, my ubuntu doesn’t Nvidia driver, likely because I use a virtual machine (VMware). Is there a way I can install one if I need it to use CUDA?

sudo apt-add-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-418

However, the terminal gives a message saying :

E: Unable to locate package Nvidia-graphics-drivers-418

Is there a way to rectify this? Thank you !