Red Hat Bugzilla – Bug 572744
RFE: provide easy way to get the IP address of (the interfaces of) a guest
Last modified: 2010-07-12 13:15:38 EDT
Description of problem:
I typically want to ssh into a host from virt-manager, but I can't see an easy way to get at the IP address of a machine (I tend to go in via the graphical console, run ifconfig, then scrape the IP address from there; am I missing something here? the graphical interface is overkill if I'm connecting via VPN on a slow connection).
Currently the information page about a network interface has an editable field for the MAC address.
Would it be possible to add an IP address field below it? It would be non-editable, but should be copy-and-pasteable. (via e.g. Reverse ARP? DHCP?)
If the guest has a single interface, could the IP address also be added to the overview page?
(further ideas: a "Connect via SSH" button that launches a gnome-terminal with a pre-canned ssh to the IP address, either as root or as the local user running virt-manager?)
Version-Release number of selected component (if applicable):
Unfortunately there isn't an easy way to get a guests IP address from outside the VM, it's one of those things that really requires an agent in the VM to communicate with management over vmchannel or similar.
Since presumably this info would eventually come from some libvirt API, reassigning there.
There's no way for libvirt to provide this information really.