vm.go
func (v *VM) SetVirtualHwVersion(version string) error {
	return v.updateVMX(func(model *vmx.VirtualMachine) error {
		version, err := strconv.ParseInt(version, 10, 32)
		if err != nil {
			return err
		}
		model.Vhardware.Compat = "hosted"
		model.Vhardware.Version = int(version)
		return nil
	})
}
func (v *VM) SetVirtualHwVersion(version string) error {
	return v.updateVMX(func(model *vmx.VirtualMachine) error {
		version, err := strconv.ParseInt(version, 10, 32)
		if err != nil {
			return err
		}
		model.Vhardware.Compat = "hosted"
		model.Vhardware.Version = int(version)
		return nil
	})
}
// SetVirtualHwVersion sets a virtual hardware version in the VMX file of the VM.