Skip to content

Instantly share code, notes, and snippets.

@vtjnash
Last active February 23, 2024 05:46
Show Gist options
  • Save vtjnash/4e55aa25902806177628 to your computer and use it in GitHub Desktop.
Save vtjnash/4e55aa25902806177628 to your computer and use it in GitHub Desktop.
vmware-fusion-optimizations
mainmem.backing = "swap" # disable swapping
MemTrimRate = "0" # disable returning unused memory to the host
sched.mem.pshare.enable = "FALSE" # disable page sharing
prefvmx.useRecommendedLockedMemSize = "TRUE" # force memory to be pre-allocated on host
scsi0.virtualDev = "pvscsi" # fasted disk i/o subsystem (requires driver off pvscsi.flp floppy disk image)
scsi0:0.virtualSSD = 1 # if running off an SSD
## also, preallocate the VMDK disks

Tested with VMWare Fusion Version 11.5.7 (17130923) on macOS Mojave 10.14.6 (18G9323)

Adding a TPM module to a bootcamp device, through the backdoor.

Edit the *.vmx file to remove the lines specifying the bootcamp disk. Save the deleted text to a file *.vmx-add. For example:

ide0:0.virtualSSD = 1
ide0:0.present = "TRUE"
ide0:0.fileName = "rdisk2.vmdk"
ide0:0.deviceType = "rawDisk"

Restart VMWare Fusion, and encrypt the machine and add a TPM. Exit VMWare Fusion.

Download and install https://github.com/RF3/VMwareVMX:

git clone https://github.com/RF3/VMwareVMX.git
virtualenv pyenv
. pyenv/bin/activate
pip install pycryptodome
mv 'Windows 10 x64.vmx' 'Windows 10 x64.vmx-old'
~/Documents/VMwareVMX/main.py -a 'Windows 10 x64.vmx-add' 'Windows 10 x64.vmx-old' 'Windows 10 x64.vmx-new'
mv 'Windows 10 x64.vmx-old' 'Windows 10 x64.vmx'

Open VMWare Fusion, and confirm it now works.

Adding a TPM module, through the frontdoor.

In 12.2, this may be simplified to just adding one parameter instead:

https://communities.vmware.com/t5/VMware-Fusion-Discussions/TPM-and-Secure-Boot-errors-on-Windows-11-preview-vm-using-Fusion/m-p/2872024/highlight/true#M175764

managedVM.autoAddVTPM = "software"

# also possibly useful?
uefi.secureBoot.enabled = "TRUE"
uefi.allowAuthBypass = "TRUE"
vvtd.enable = "TRUE"
windows.vbs.enabled = "TRUE"
vhv.enable = "TRUE"
@Younessbarouk
Copy link

How I fixed VMware file catalina fusion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment