josenk / vagrant-vmware-esxi

A Vagrant plugin that adds a vmware ESXi provider support.
GNU General Public License v3.0
416 stars 108 forks source link

Invalid configuration for device '2'.' for property 'VirtualVideoCard.videoRamSizeInKB #127

Open R3dy opened 2 years ago

R3dy commented 2 years ago

While attempting to build a Windows VM with Vagrant + my home ESXi 6.7 server I encountered the following error.

Opening VMX source: /Users/royce/.vagrant.d/boxes/StefanScherer-VAGRANTSLASH-windows_2019/2021.05.15/vmware_desktop/ZZZZ_WEB01.vmx
Opening VI target: vi://root@192.168.112.155:443/
Error:
 - Invalid VM configuration. Reason: 'Invalid configuration for device '2'.' for property 'VirtualVideoCard.videoRamSizeInKB'
Completed with errors
There was an OVF Tool error.

A little bit of Googling yields this page which states a suggested workaround https://kb.vmware.com/s/article/65205

The suggestion is to set the following inside the OVF svga.vramSize = "134217728"

Can you add an option in vmware_esxi to set this? Similar to esxi.guest_memsize but something like esxi.guest_vramsize then I could specify this value in my Vagrantfile

Would be much appreciated!

josenk commented 2 years ago

Have you tried guest_custom_vmx_settings to add custom settings? There is an example in the README.

In your case it would be something like this... esxi.guest_custom_vmx_settings = [['svga.vramSize','134217728']]