Hi,

I'm currently writing a script to avoid ip conflict but I couldn't get ip address from xenstore when I create a guest using libvirt with libxl connector. With 'xl create' command, it works everything fine, but not with libvirt. So I dug into the source code, I couldn't find any code for declaring x_nic->ip field in libxlMakeNic().

Or I just created XML file the wrong way?
 
Here is a part of domain XML:
        <interface type="bridge">
            <mac address="00:16:3e:51:6b:19" />
            <protocol family="ipv4">
                <ip address="10.0.1.119" prefix="24" />
                <route gateway="10.0.1.1"/>
            </protocol>
            <source bridge="virbr0" />
        </interface>

Hope someone can help me out.

- Larry