[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt-users] Set IP for LXC-container through libvirt XML



Hi!

How I can set IP to container without using dhcp?

From http://libvirt.org/formatnetwork.html I have:

<network>
<mac address='00:16:3E:5D:C7:9E'/>
 
<ip address="192.168.122.1" netmask="255.255.255.0">
   
<dhcp>
     
<range start="192.168.122.100" end="192.168.122.254" />
     
<host mac="00:16:3e:77:e2:ed" name="foo.example.com" ip="192.168.122.10" />
     
<host mac="00:16:3e:3e:a9:1a" name="bar.example.com" ip="192.168.122.11" />
   
</dhcp>
 
</ip>
 
<ip family="ipv6" address="2001:db8:ca2:2::1" prefix="64" />
</network>

Can I just set IP for domain(lxc-container)?

Thank you.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]