Oracle VM 3.x: Reset Agent Password

Oracle VM 3.x: Reset Agent Password

Oracle VM, is a centrally managed hypervisor.  All administrative actions must be performed from the Oracle VM Manager.  In order to facilitate the initial discovery of the Hypervisor by the Management Server part of the setup requires that we not only set the password for the root user, but also the password for the ovs-agent.  We then initiate a discovery process from the management server to the hypervisor and end up able to manage our hypervisor.

During my setup I misplaced the password for the agent.  This resulted in my management server being unable to successfully authenticate with the hypervisor in order to complete the discovery process.

Once you have successfully discovered the hypervisor you can change the agent password at the server pool level, which will allow you to maintain different agent passwords for different logical areas.

In my environment I am using OVM 3.1.1.

# ovs-agent-passwd oracle
Password: <yourpasshere>
Again: <yourpasshere>

After changing the password, discovery went off without a hitch, of course I could have just as easily misplaced it again, and I would have been right back at square one.

4 thoughts on “Oracle VM 3.x: Reset Agent Password

  1. another OVM user

    Just a word of caution from when we had to do this- if you try to select the option to “Change servers agent password” from the server pool list, it will ask you for the old password before setting the new one… so it becomes a chicken-and-egg situation. You could reset the local agent password for each OVM Server, but the OVM Manager seems to keep a cache of it and I’m not aware of a way to reset the OVM Manager’s “copy” of the agent password. Luckily for me, I remembered our original one eventually and was able to reset it for all of the servers at the Server pool level. Oracle notes that all OVM Servers need to use the same ovs-agent password for Pool-level operations to work.

    Maybe remove each server from the pool and re-add / rediscover it after an agent password change?

    1. matthew.mattoon Post author

      Of course that assumes that the hypervisor has been added to the manager and that you remember the existing agent password.

      -matt