Re: [libvirt] [PATCH] qemu: get VM's ip address from the output of arp command

2018-01-24 Thread Chen Hanxiao
At 2018-01-24 02:01:27, "Martin Kletzander" wrote: >On Tue, Jan 23, 2018 at 03:40:02PM +0800, Chen Hanxiao wrote: >>From: Chen Hanxiao >> >>Introduce VIR_DOMAIN_INTERFACE_ADDRESSES_SRC_ARP to get ip address >>of VM from the output of `arp -an` command. >> > >I'm not sure about the implications

Re: [libvirt] [PATCH] qemu: get VM's ip address from the output of arp command

2018-01-23 Thread Martin Kletzander
On Tue, Jan 23, 2018 at 03:40:02PM +0800, Chen Hanxiao wrote: From: Chen Hanxiao Introduce VIR_DOMAIN_INTERFACE_ADDRESSES_SRC_ARP to get ip address of VM from the output of `arp -an` command. I'm not sure about the implications of this as sometimes we can't use that, but I guess that's fine.

[libvirt] [PATCH] qemu: get VM's ip address from the output of arp command

2018-01-23 Thread Chen Hanxiao
From: Chen Hanxiao Introduce VIR_DOMAIN_INTERFACE_ADDRESSES_SRC_ARP to get ip address of VM from the output of `arp -an` command. We can use: domifaddr f26-cloud --source arp to get the address. Signed-off-by: Chen Hanxiao --- include/libvirt/libvirt-domain.h | 1 + src/qemu/qemu_driver.c