How to enable services in RHEV hypervisor

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Virtualization Hypervisor 7

Issue

Because of migration to systemd, enabling/disabling services is not persisted in RHEL7-based hypervisor

Resolution

As temporary workaround ovirt-early service can be used:

Installation

  1. Install RHEV-H but append ovirt_early=local to the grub/syslinux command line when starting the installer

After installation:

  1. Login as admin
  2. Drop to shell
  3. Create the file /etc/ovirt-early.d/post-local with the contents:
    systemctl start <your_service>
  4. Make it executable: chmod a+x /etc/ovirt-early.d/post-local
  5. Persist it: persist /etc/ovirt-early.d/post-local
  6. Reboot
  7. After reboot:
  8. Check that the service is running: systemctl status <your_service>

Root Cause

Changes are not persisted after reboot. The issue is tracked under bugzilla

Diagnostic Steps

  • systemctl enable <your_service>
  • reboot the host
  • systemctl status <your_service> # shows service as disabled

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.