[libvirt-users] Automatically assign static ipv4 via dhcp to new VMs (Tim)
Chandana De Silva
chandana at desilva.id.au
Sun Oct 6 00:22:36 UTC 2013
You can do this with the built in dhcp server for the virtual network.
The definition is passed to dnsmasq.
...
<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:e2:ed" name="foo.example.com" ip="192.168.122.10" />
</dhcp>
</ip>
...
See :
http://wiki.libvirt.org/page/VirtualNetworking#XML_format
On 05/10/13 20:50, libvirt-users-request at redhat.com wrote:
> 1. Automatically assign static ipv4 via dhcp to new VMs (Tim)
> Subject: [libvirt-users] Automatically assign static ipv4 via dhcp to
> new VMs
> Message-ID: <524EE851.2010009 at online-mail.biz>
> Content-Type: text/plain; charset=ISO-8859-15
>
> Hi guys,
>
>
> What I would like to do:
>
> 1) Right know it seems like dnsmasq assigns ip-addresses randomly to
> VMs, is there any way to assign them in ascending order?
>
> 2) IPs are not statically assigned. Is it possible to add something like
> this automatically at the first VM-start to the xml definition?:
> <host mac='AA:BB:CC:DD:EE:FF' ip='192.168.122.2' name='foobar'/>
>
More information about the libvirt-users
mailing list