RHEL: Virt-who configuration for unsupported hypervisors (like HUAWEI FusionSphere)

Solution In Progress - Updated -

Environment

  • RHEL 6.x, 7.x
  • Unsupported hypervisor like HUAWEI FusionSphere

Issue

  • Using an uncertified hypervisor and having problems registering systems to RHN.
  • There are no documentation how to configure virt-who with unsupported hypervisor like HUAWEI FusionSphere

Resolution

  1. Install virt-who on RHEL system which is registered to RHN as a hypervisor (by using subscription-manager register --type=hypervisor)
  2. Configure virt-who with fakevirt type of hypervisor
$ subscription-manager identity
system identity: 66dc4c5e-0000-0000-b78f-f7ac43998ad3

$ cat /etc/virt-who.d/fusion.conf
[fusion]
type=fake
file=/etc/rhsm/json/fusion-fake
is_hypervisor=True
owner=owner_id
env=Library

$ cat /etc/rhsm/json/fusion-fake
{"hypervisors": [{"uuid": "66dc4c5e-0000-0000-b78f-f7ac43998ad3", "guests": [{"guestId": "<Guest VM UUID>", "state": 5, "attributes": {"active": 0, "virtWhoType": "fake"}}, {"guestId": "<Guest VM UUID>", "state": 5, "attributes": {"active": 0, "virtWhoType": "fake"}}]}]}

$ virt-who -p
Using configuration "fusion" ("fake" mode)
{"hypervisors": [{"uuid": "66dc4c5e-0000-0000-b78f-f7ac43998ad3", "guests": [{"guestId": "<Guest VM UUID>", "state": 5, "attributes": {"active": 0, "virtWhoType": "fake"}}, {"guestId": "<Guest VM UUID>", "state": 5, "attributes": {"active": 0, "virtWhoType": "fake"}}]}]}

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.