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

[libvirt] setting up dnsmasq options for PXE boot


I want to use PXE boot in kvm's virtual machines, but I've not found, how to 
configure libvirt for starting dhcp server with correct options for this.

Now i have libvirt-0.5.1-2.fc10.x86_64 and virt-manager-0.6.0-5.fc10.x86_64,
I've created VM using virt manager, with specifying PXE boot option. VM config 
contains following sections:
    <type arch='x86_64' machine='pc'>hvm</type>
    <boot dev='network'/>
    <interface type='network'>
      <mac address='54:52:00:0a:f6:00'/>
      <source network='nat_net'/>
      <model type='virtio'/>

and config for virtual network nat_net:
  <forward dev='eth0' mode='nat'/>
  <bridge stp='on' forwardDelay='0' />
  <ip address='' netmask=''>
      <range start='' end='' />

dnsmasq starts with following command line:
/usr/sbin/dnsmasq --keep-in-foreground --strict-order --bind-interfaces--pid-
file  --conf-file  --listen-address --except-interface lo --dhcp-
leasefile=/var/lib/libvirt/dhcp-nat_net.leases --dhcp-range,

But for working PXE boot it should have also something like

So after starting VM it tries to boot from network, gets DHCP response and 
reports, that it doesn't contains filename option.

So the question is - how to get it working correctly ? (If i start dnsmasq by 
hand with option --dhcp-boot=pxelinux.0,itchy, PXE boot works)

Dmitry Guryanov

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