7.3. Setting up a RHEV (KVM) or Xen Hypervisor

  1. Configure the Subscription Manager application to use the Subscription Asset Manager service and CA certificate.
    [root@rhel-server ~]# rpm -ivh http://sam.example.com/pub/candlepin-cert-consumer-latest.noarch.rpm
    
  2. Then register the system as a hypervisor and attach any required subscriptions.
    [root@rhel-server ~]# subscription-manager register --type=hypervisor --username=admin --password=secret --org=1234 --auto-attach
    The organization ID should be available in the Subscription Asset Manager UI or in the Portal entry for the organization. If another system is already registered to that organization, then the ID is available using the subscription-manager orgs command.
  3. Install the virt-who packages on the hypervisor.
    [root@server ~]# yum install virt-who
  4. Open the virt-who configuration file (/etc/sysconfig/virt-who) and set it to use the libvirtd service with the hypervisor.
    VIRTWHO_LIBVIRT=1
  5. Start the virt-who service.
    [root@server ~]# service virt-who start
  6. Configure every host in the RHEV/Xen environment.
  7. Create and register virtual machines as normal.