virsh and guest IP

der.hans PLUGd at LuftHans.com
Thu Nov 3 15:13:46 MST 2011


Am 03. Nov, 2011 schwätzte James Crawford so:

moin moin,

> I can't think of a virsh command that would return the IP of the guest.
> Are you using DHCP to assign the Guest IP?
>    Ask dhcpd server.

True. Good idea. I should be able to script that somewhat easily.

It seems logical that if the client got an IP from the dhcp server
that it would be in the arp cache, but that doesn't seem to always be the
case. After sending my email I had a guest not in the host's arp cache,
but the guest had an IP when I checked via the console.

> We setup Static IP when we build the guests, so I keep it on a spreadsheet.

Yeah, that's a good idea. In this particular case I'm building one-off
test VMs, so I'd rather not track anything extra :).

ciao,

der.hans
-- 
#  http://www.LuftHans.com/        http://www.LuftHans.com/Classes/
#  Keine Ahnung, was ich dir sagen soll,
#  keine Ahnung und keinen (.)plan. -- die Toten Hosen


More information about the PLUG-discuss mailing list