Ten Years later, and I finally know how to get virsh to tell me the IP address for a VM.
So, I have a virtual machine image called cfme. To launch it, I run
sudo virsh start cfme
That gets me a running virtual machine. To find the domain ID that it has been assigned:
$ sudo virsh list
Id Name State
----------------------------------------------------
1 cfme running
And to Find Its IP Address I use the domifaddr subcommand:
$ sudo virsh domifaddr 1 Name MAC address Protocol Address ------------------------------------------------------------------------------- vnet0 52:54:00:e5:5d:e3 ipv4 192.168.122.98/24
From which I can see that the address is 192.168.122.98
Wish I knew this years ago. Ah well. Better late then never.
Thanks to this blog post for showing me the way:
and