[fedora-virt] default tftp root dir in virt-manager or qemu?

Mark McLoughlin markmc at redhat.com
Wed Jun 24 06:43:09 UTC 2009


On Tue, 2009-06-23 at 21:44 +0100, Daniel P. Berrange wrote:
> On Tue, Jun 23, 2009 at 04:50:12PM +0000, Mark McLoughlin wrote:
> > Hey,
> > 
> > On Mon, 2009-06-15 at 19:28 +0200, Gianluca Cecchi wrote:
> > > It seems that the guest gets one of the available ip provided by
> > > dhcpd, also it founds dhcpd and tftp server: both are set to
> > > 192.168.122.1 (the server itself with its virbro default interface).
> > > No configuration done by me.
> > > I see /etc/libvirt/qemu/networks/default.xml with some parameters but
> > > I don't know if and how I can put here also tftp settings....
> > 
> > Yeah, what we really need here is to have support for setting up TFTP
> > for libvirt's virtual networks - e.g.
> > 
> >   <tftp root="/var/lib/tftpboot/linux-install" />
> >   <bootp file="pxelinux.0" />
> > 
> > which would cause dnsmasq to be run with:
> > 
> >   --enable-tftp --tftp-root=/var/lib/libvirt/tftp \
> >   --dhcp-boot=pxelinux.0
> > 
> > we'd also need to open port 69 in our iptables rules.
> > 
> > Please file an RFE for this in bugzilla.redhat.com/Virtualization ...
> > maybe even give a shot at cooking up a patch?
> 
> I really question what the point in going to setup a PXE server install
> on each individual host OS is. The 'virtual network' is local only, so
> you might as well just install the guest using a direct kernel+initrd
> boot, avoiding all the host OS configuration steps, and extra PXE boot
> complexity in libvirt. 

It's a fair point - the main use case I see for it is as a way of
testing your PXE server config locally before booting remote machines.

Cheers,
Mark.




More information about the Fedora-virt mailing list