I deployed the UPS Monitor VM on a Hyperion appliance and it picked up an address from DHCP, but I don’t know which one, so I can’t reach its web UI. Is there a quick way to see it from the host without digging through the DHCP server leases?
Yes, the guest agent in the VM reports it. From the host:
- SSH in and become root:
ssh <user>@<your_ip_address_or_hostname>
sudo su
- Ask libvirt for the addresses via the agent:
virsh domifaddr ups-monitor eth0 --source agent
Output looks like:
Name MAC address Protocol Address
-------------------------------------------------------------------------------
eth0 52:54:00:47:0c:d1 ipv4 10.0.0.193/21
eth0 52:54:00:47:0c:d1 ipv6 fe80::5054:ff:fe47:cd1/64
The ipv4 line for eth0 is the one you want, so here the web UI is at https://10.0.0.193/. If you deployed it with a different name (--name), use that instead of ups-monitor.