Virtualization with VMWare
You can use VMWare vSphere virtual machines, including ESXi and vCenter, with Uyuni by setting up a virtual host manager (VHM).
To begin, you will need to set up a VHM on your Uyuni Server, and inventory the available VM hosts. Taskomatic can then begin data collection using the VMs API.
VHM Setup
The Virtal Host Manager (VHM) runs on the Uyuni Server.
To run a VHM, your Uyuni Server will need to have port 443 open, in order to access the VMWare API.
VMWare hosts use access roles and permissions to control access to hosts and guests.
Ensure that any VMWare objects or resources that you want to be inventoried by the VHM have at least read-only permissions.
If you want to exclude any objects or resources, mark them with no-access.
When you are adding new hosts to Uyuni, you will need to consider if the roles and permissions that have been assigned to users and objects need to be inventoried by Uyuni.
For more on users, roles, and permissions, see the VMWare vSphere documentation: https://docs.vmware.com/en/VMware-vSphere/index.html
-
In the Uyuni Web UI, navigate to .
-
Click Create and select
VMWare-based. -
In the
Add a VMWare-based Virtual Host Managersection, use these parameters:-
In the
Labelfield, type a custom name for your VHM. -
In the
Hostnamefield, type the fully-qualified domain name (FQDN) or host IP address. -
In the
Portfield, type the ESXi API port to use (for example,443). -
In the
Usernamefield, type the username associated with the VM host. -
In the
Passwordfield, type the password associated with the VM host user.
-
-
Click Create to save your changes and create the VHM.
-
On the
Virtual Host Managerspage select the new VHM. -
On the
Propertiespage, click Refresh Data to inventory the new VHM.
To see which objects and resources have been inventoried, navigate to .
|
Connecting to the ESXi server from a browser using HTTPS can sometimes log an |
After your VHM has been created and configured, Taskomatic will run data collection automatically. If you want to manually perform data collection, navigate to , select the appropriate VHM, and click Refresh Data.
Uyuni ships with a tool called virtual-host-gatherer that can connect to VHMs using their API, and request information about virtual hosts.
virtual-host-gatherer maintains the concept of optional modules, where each module enables a specific VHM.
This tool is automatically invoked nightly by Taskomatic.
Log files for the virtual-host-gatherer tool are located at /var/log/rhn/gather.log.