[libvirt-users] libvirt ignores ip setting when creating a xen domU?

Kim Larry relip at me.com
Tue Sep 2 13:05:29 UTC 2014


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 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20140902/e699ad88/attachment.htm>


More information about the libvirt-users mailing list