Libvirt提供bootp选项而不需要configuration
我有一个在libvirt中configuration的虚拟networking,并configuration为提供DHCP(通过dnsmasq),但没有configuration为提供bootp信息(见下文),但是当我启动一个iPXE ISO,并在wireshark看stream量,我看到DHCP服务该虚拟networking似乎正在响应下一个服务器参数: bootp.ip.server 192.168.122.1 这会导致一个问题,因为我想使用另一台服务器作为DHCP代理来提供PXE信息,为此,libvirt的DHCP服务并没有提供下一个服务器的值。 如何让libvirt虚拟networking不发送该值? 编辑:似乎geeting libvirt的dnsmasq忽略bootp请求可以通过将folling语句添加到/var/lib/libvirt/dnsmasq/defaut.conf来完成: dhcp-ignore: bootp …遗憾的是,当libvirt重新启动时,thi文件被覆盖。 不知道是否有一个可configuration的模板,可以放置所有虚拟networking的参数。 虚拟networkingconfiguration: <network connections='3'> <name>default</name> <uuid>59535def-2082-42f4-8e5e-a68f6f0fffbd</uuid> <forward mode='nat'> <nat> <port start='1024' end='65535'/> </nat> </forward> <bridge name='virbr0' stp='on' delay='0'/> <mac address='52:54:00:1c:02:0e'/> <ip address='192.168.122.1' netmask='255.255.255.0'> <dhcp> <range start='192.168.122.2' end='192.168.122.254'/> </dhcp> </ip> </network> 来自iPXE的DHCP请求: 16:04:59.394149 IP (tos 0x0, ttl 64, id 2237, offset 0, flags [none], proto […]