mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-05 04:41:20 +00:00
8b32c80df0
This patch changes how parameters are passed to dnsmasq. Instead of being on the command line, the parameters are put into a file (one parameter per line) and a commandline --conf-file= specifies the location of the file. The file is located in the same directory as the leases file. Putting the dnsmasq parameters into a configuration file allows them to be examined and more easily understood than examining the command lines displayed by "ps ax". This is especially true when a number of networks have been started. When the use of dnsmasq was originally done, the required command line was simple, but it has gotten more complicated over time and will likely become even more complicated in the future. Note: The test conf files have all been renamed .conf instead of .argv, and tests/networkxml2xmlargvdata was moved to tests/networkxml2xmlconfdata.
15 lines
417 B
XML
15 lines
417 B
XML
<network>
|
|
<name>netboot</name>
|
|
<uuid>81ff0d90-c91e-6742-64da-4a736edb9a9b</uuid>
|
|
<forward mode='nat'/>
|
|
<bridge name='virbr1' stp='off' delay='1' />
|
|
<domain name='example.com'/>
|
|
<ip address='192.168.122.1' netmask='255.255.255.0'>
|
|
<tftp root='/var/lib/tftproot' />
|
|
<dhcp>
|
|
<range start='192.168.122.2' end='192.168.122.254' />
|
|
<bootp file='pxeboot.img' />
|
|
</dhcp>
|
|
</ip>
|
|
</network>
|