rhev-agentd service failed to start - [Unhandled exception in RHEV-Agent daemon!]

Solution In Progress - Updated -

Environment

  • Red Hat Enterprise Vertualization 3.X
  • Red Hat Enterprise Linux 5.5 and lower version
  • RHEV Guest Agent

Issue

  • rhev-agentd service failes to start with the following error message:
MainThread::INFO::2012-10-09 11:55:40,288::rhev-agentd::25::root::Starting RHEV-Agent daemon
MainThread::ERROR::2012-10-09 11:55:40,295::rhev-agentd::57::root::Unhandled exception in RHEV-Agent daemon!
Traceback (most recent call last):
  File "/usr/share/rhev-agent/rhev-agentd.py", line 55, in <module>
    agent.run()
  File "/usr/share/rhev-agent/rhev-agentd.py", line 30, in run
    self.agent = LinuxVdsAgent(config)
  File "/usr/share/rhev-agent/qGuestAgentLinux2.py", line 137, in __init__
    AgentLogicBase.__init__(self, config)
  File "/usr/share/rhev-agent/vdsAgentLogic.py", line 51, in __init__
    self.vio = VirtIoChannel(config.get("virtio", "device"))
  File "/usr/share/rhev-agent/VirtIoChannel.py", line 28, in __init__
    self._vport = os.open(vport_name, os.O_RDWR)
OSError: [Errno 2] No such file or directory: '/dev/virtio-ports/com.redhat.rhevm.vdsm'

Resolution

  • Upgrade the kernel to at least 2.6.18-238. To know how to safely upgrade kernel refer this kb article

Root Cause

The minimum required kernel version is 2.6.18-238 which is RHEL 5.6. Any version previous to that does not have up-to-date virtio drivers and without required drivers "guest-agent" wont work.

Diagnostic Steps

  • Check the kernel version being used on the system.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.