On 04/23/2011 08:09 PM, Akemi Yagi wrote: > On Sat, Apr 23, 2011 at 10:46 AM, carlopmart<carlopmart at gmail.com> wrote: >> On 04/23/2011 07:32 PM, Mark Pryor wrote: > >>> --- On Sat, 4/23/11, carlopmart<carlopmart at gmail.com> wrote: > >>>> Somebody knows how can I extract/know an ip address >>>> used by a kvm > >>>> etc)?? I don't use a dhcp or dns server on this network. >>> >>> If you have an http server on the local network: >>> >>> Inside the VM guest: >>> >>> ------------ /etc/rc.local ------------ >>> wget --spider http://192.168.1.1/favicon.ico?sl6bs?ga-p45 >>> ------------ snip --------- >>> >>> where the web server is at 192.168.1.1, Virt host is ga-p45, and the VM guest is sl6bs. >>> >>> In the server logs I see: >>> $ sudo tail -n 175 /var/log/apache2/local_log | grep fav >>> 192.168.1.224 - - [23/Apr/2011:10:10:02 -0700] "HEAD /favicon.ico?lucidpv?ga-p45 HTTP/1.0" 200 296 >>> 192.168.1.155 - - [23/Apr/2011:10:10:10 -0700] "HEAD /favicon.ico?centbs?ga-p45 HTTP/1.0" 200 296 >>> 192.168.1.183 - - [23/Apr/2011:10:10:10 -0700] "HEAD /favicon.ico?sl6bs?ga-p45 HTTP/1.0" 200 296 > >> Interesting Mark, but I don't have a http server installed. And between >> kvm host and kvm guests exists a firewall. Then, I can¡t use ping, >> telnet or other tools ... >> >> I am searching some type of function inside libvirt that can says what >> ip address has one kvm guest ... > > There was a thread on a similar question. One of the answers > (arpwatch) may be useful : > > http://lists.centos.org/pipermail/centos/2010-July/096998.html > > Akemi Arpwatch is a correct solution when host and guests are in the same network, but in my environment, they are in different nets with a firewall in the middle... Maybe some virsh option?? -- CL Martinez carlopmart {at} gmail {d0t} com