[libvirt-users] network setup

anita.sivakumar at wipro.com anita.sivakumar at wipro.com
Tue Oct 9 12:18:59 UTC 2012

Hi All,

I am a newbie to libvirt.
I am trying to set up a Lxc container using a nat based network.
I am able to create the container and log into it. But I don't see any interface created by default in the container.
In other words my ifconfig inside the container does not show up any interfaces even if I run 'ifconfig lo up' for a loop back interface.
Also I don't have any dhcp configured in my machine.
I am not sure why this is happening...

These are my network and domain configurations. Any help will be highly appreciated.

   <forward mode="nat" dev="em2"/>
   <bridge name="virbr1" />
   <ip address="" netmask="">
        <range start="" end="" />
        <host mac="18:03:73:F8:8A:75" name="vm100" ip=""/>

Domain xml:
<domain type='lxc'>
      <console type='pty'/>
  <interface type='network'>
      <source network='mynetwork'/>
      <mac address="18:03:73:F8:8A:75"/>
     <target dev='vm100'/>


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

More information about the libvirt-users mailing list