You can install agents on a VM from the user interface of vRealize Operations Manager or by running a script.