Error: OVMAPI[5431] when running ovmd

This is more of a note to myself in case I’ll search the net for this error message again. Interestingly, there was nothing to be found on either MOS or duckduckgo/google/…

After starting ovmd to use its capabilities to transmit the IP addresses to the OVM Manager, I encountered the following errors:

[root@myvm ~]# systemctl status ovmd
● ovmd.service - Oracle VM guest daemon
   Loaded: loaded (/usr/lib/systemd/system/ovmd.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2021-01-26 14:22:25 CET; 5min ago
 Main PID: 5431 (ovmd)
   CGroup: /system.slice/ovmd.service
           └─5431 /usr/sbin/ovmd

Jan 26 14:22:23 myvm OVMAPI[5431]: No ovmapi providers found. Aborting

Jan 26 14:22:23 myvm OVMAPI[5431]: OVMAPI_Register (attempt 29) failed with code 1.  VMAPI is not active.
Jan 26 14:22:24 myvm OVMAPI[5431]: No ovmapi providers found. Aborting
Jan 26 14:22:24 myvm OVMAPI[5431]: OVMAPI_Register (attempt 30) failed with code 1.  VMAPI is not active.
Jan 26 14:22:25 myvm OVMAPI[5431]: No ovmapi providers found. Aborting
Jan 26 14:22:25 myvm OVMAPI[5431]: OVMAPI_Register (attempt 31) failed with code 1.  VMAPI is not active.
Jan 26 14:22:25 myvm OVMAPI[5431]: OVMAPI_Subscribe failed with code 1

Cause and solution were pretty simple, though: ovmd needed additional packages to register with ovmapi: xenstoreprovider and python-simplejson.

So, when installing ovmd, try to provide all packages it might need in one go:

[root@myvm ~]# yum install libovmapi xenstoreprovider ovmd python-simplejson

...

Complete!
[root@myvm ~]# systemctl restart ovmd
[root@myvm ~]# systemctl status ovmd
● ovmd.service - Oracle VM guest daemon
   Loaded: loaded (/usr/lib/systemd/system/ovmd.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2021-01-26 14:32:06 CET; 3s ago
  Process: 6692 ExecStart=/usr/sbin/ovmd $OVMD_ARGS (code=exited, status=0/SUCCESS)
  Process: 6686 ExecStartPre=/usr/sbin/modprobe ovmapi (code=exited, status=0/SUCCESS)
 Main PID: 6695 (ovmd)
   CGroup: /system.slice/ovmd.service
           └─6695 /usr/sbin/ovmd

Jan 26 14:32:05 myvm systemd[1]: Stopping Oracle VM guest daemon...
Jan 26 14:32:05 myvm systemd[1]: Starting Oracle VM guest daemon...
Jan 26 14:32:06 myvm systemd[1]: Started Oracle VM guest daemon.
Jan 26 14:32:06 myvm ovmd[6695]: main: Successfully registered session with VMAPI
Jan 26 14:32:06 myvm ovmd[6695]: main: Writing pid-file /var/run/ovmd.pid

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.