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

17 Jul
2012
17 Jul
'12
7:56 p.m.
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.
4811
Age (days ago)
4811
Last active (days ago)
0 comments
1 participants
participants (1)
-
Timothy Klim