Need help to connect screen on a linux vm

Hello, for my project i need to connect some monitor on server with my vm.
My server runs vmware ESXi 7.0 U2 and runs a VM with Ubuntu 22.04 and an nvidia A2000 GPU give in passthrough.

whitout nvidia driver it’s work but when i install NVIDIA driver metapackage from nvidia-driver-515 only the vm screen can be use.

The second screen Acer V226HQL is detect but i can’t use it
Screenshot from 2022-08-05 11-11-07
log.txt (104.0 KB)

Please post the output of
xrandr --listproviders

Providers: number : 1
Provider 0: id: 0x23c cap: 0x2, Sink Output crtcs: 4 outputs: 8 associated providers: 0 name:NVIDIA-G0

The you can only create /etc/X11/xorg.conf using the nvidia gpu as primary device so external monitors will work but the vm console only displaying the text console.

how can i set the gpu as primary device ?

Create an xorg.conf

Section "Device"
    Identifier     "nvidia"
    Driver         "nvidia"
    BusID          "PCI:3:0:0"
    Option         "AllowEmptyInitialConfiguration"

it’s works!! thank you so mutch for your help