> > This may be a code snippet instead of an actual RFE. Would
use the
> > perl toolkit and give you the ability to create a VM, then pass the
> > information to cobbler to have it start building upon boot. Would
> have
> > to be written in perl. Thinking I can knock this out pretty quick,
> just
> > need to figure out how to interface w/Cobbler .. Either command
line,
> or
> > I think I read there is a XML type API?
> >
>
> So the VMs would technically install via PXE, but it's a script to
kick
> off the "shell" of the VM, hopefully getting the information about
how
> much RAM and disk and so forth from Cobbler before talking to VMware?
>
> Yes, this sounds good to me.
Yes, create a system in cobbler, have the script then create a new VM
via
the toolkit in Virtual Center, then update the Cobbler profile with the
MAC
of the new VM, boot the VM, then have it build.
I think I saw that the command line will just be an interface for the
XMLRPC
API, so I should look into just calling this API directly?
Ok,
Thought about this a bit more.
The Perl script would query the Cobbler server, if it find a machine with
a certain "tag" such as Virt Type = VirtualCenter or whatever, it will then
check if a MAC has been assigned. If no MAC is assigned, it would then
send a request to VirtualCenter to create the VM, which would then in turn
return the MAC address. It would then update the Cobbler profile for the server
with the MAC address, power on the server, and let the auto build start.
This could be either daemonized or ran how ever often from cron, with the idea
of it being seamless .. Just let it handle all the backend communication with
the VirtualCenter server and manage everything else in Cobbler.
Question would be, would I want to add another "Virt Type" to Cobbler with
something like "ESX", or would I want to just add something in the Comments
that could be parsed out?
Any other suggestions welcomed on this as well ;-)