vm.go
func (v *VM) SetNumberVcpus(vcpus uint) error {
	if vcpus < 1 {
		vcpus = 1
	}

	return v.updateVMX(func(model *vmx.VirtualMachine) error {
		model.NumvCPUs = vcpus
		return nil
	})
}
func (v *VM) SetNumberVcpus(vcpus uint) error {
	if vcpus < 1 {
		vcpus = 1
	}

	return v.updateVMX(func(model *vmx.VirtualMachine) error {
		model.NumvCPUs = vcpus
		return nil
	})
}
// SetNumberVcpus sets number of virtual cpus assigned to this machine. VM has to be powered off in order to change this parameter.