Error:invalid credentials
Assign the following privileges to the user role:
Datastore > Allocate Space
Virtual Machine > Edit Inventory > Create New
Virtual Machine > Change Configuration > Add New Disk
Virtual Machine > Change Configuration > Add Existing Disk
Virtual Machine > Change Configuration > Configure Raw Device
Resource > Assign Virtual Machine To Resource Pool