Hi Scott,
On Mon, 2010-06-21 at 10:01 -0400, Scott Henson wrote:
On Mon, 21 Jun 2010 13:37:54 +0100, Matt Wallace
<lists(a)truthisfreedom.org.uk> wrote:
> Hi all,
>
> For various reasons I'm rewriting a lot of what koan does in Ruby. I
> have to use Ruby to provision my virtual machines from cobbler and
> shelling out to Koan is not what I want to do.
>
> I've got the system to pull the system definition from cobbler using the
> XMLRPC::get_system_for_koan() call and I'm defining and provisioning the
> VMs as well as the storage and this works, however they won't PXE boot.
What do you mean by, "won't PXE boot"? Do they not even attempt to PXE
boot, do they attempt and never get a dhcp reply, or are they having
trouble with downloading the kernel and initrd from tftp?
Also, what virt technology are you using?
> The VMs are defined by XML and are set to use the network as their boot
> medium, they can receive an IP Address but they do not get a file
> provided by cobbler despite the MAC Address matching the definition in
> Cobbler.
Which file? The kernel/initrd over tftp or the kickstart over http?
> If I use Koan, it works fine, however the XML Files that Koan saves to
> disk only have a HDD boot option, not a network one!
Yes, koan downloads the kernel and initrd and hands it off to
virt-installer, which then boots them with the proper command line
arguments.
Are you going through libvirtd to do provisioning or are you interacting
directly with the virtualization provider?
Meh, I should know better than that and provide more details... :)
I've played around further and I now have the VMs connecting to the
virbr0 interface, obtaining an IP Address, starting to download
pxelinux.0 and then continuing to d/l the file for over an hour.
I'm using KVM and libvirt-ruby. I'm starting to think it may be quicker
to d/l the files in the same way as koan and do things that way.
I'll let you know how I get on,
Matt.