On Tue, Jan 27, 2015 at 2:53 PM, Stephan Seitz <
s.se...@secretresearchfacility.com> wrote:

> Erik,
>
> > I've used the iPXE iso to boot successfully multiple times. Requires
> > nothing on the hypervisor as far as I know, but I don't know how it works
> > after you have an OS installed (I'm using it to bootstrap machines).
>
> thank's for your reply!
>
> This is exactly what I was looking for.
>
> After digging a little further, I stumbled upon
> https://github.com/mindjiver/packer-cloudstack
>
> Particularly the ipxe Image that guy built is very nice, since it
> chain-loads via userdata.
>
> So what I finally did with a very similar ipxe.iso is:
>
> cat >recipe <<__EOF__
> #!ipxe
> kernel http://10.10.1.254/vmlinuz root=/dev/nfs vga=normal
> nsroot=10.10.1.254:/nfs-image-installer/install ip=dhcp rw --
> initrd http://10.10.1.254/initrd.img
> boot
> __EOF__
>
> b64recipe=$(cat recipe | base64 -w0)
>
> cloudmonkey update virtualmachine id=$vmid userdata=$b64recipe
>
>
> Well, the first steps are done. Now I have to figure out a convenient
> way for my virtualrouter to give dhcp leases also to non-ACS machines /
> make cloudstack aware of other machines...
>
> So far, thank's again!
>
>
You're most welcome. Actually I'm using packer-cloudstack myself to build
templates, and that's where I found iPXE as well :-)

-- 
Erik

Reply via email to