Jeroen van Meeuwen wrote:
Hi,
In an attempt to boot a virtual QEMU-KVM system from the local hard
drive using a PXE menu entry, I've come up with the following;
Add chain.c32 to the cobbler distribution.
chain.c32 is particularly useful when you are using qemu(-kvm)
where the BIOS isn't capable of switching boot devices. In these
cases, using "localboot 0" will just restart the PXE boot. With
chain.c32 though, you can use the following snippet in
/etc/cobbler/pxe/pxelocal.template to boot from the local hard-
drive:
label local
menu label Boot from local harddrive
kernel chain.c32
append hd0 0
where "hd0" is the hard drive number (use fd0 for floppy, etc.),
and 0 is the partition number.
Attached is a patch that adds chain.c32 to cobbler (just like
menu.c32), but if applied, you will need to copy
/usr/lib/syslinux/chain.c32 to loaders/chain.c32 manually (as binary
foo does not show in git patches).
Kind regards,
Jeroen van Meeuwen
-kanarip
------------------------------------------------------------------------
_______________________________________________
cobbler mailing list
cobbler(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler
James Laska and I were talking about this previously. We were looking
into PXE'ing KVM mainly for test purposes and encountered the root cause
of KVM's issues, and it's going to be fixed in IIRC upstream KVM. I'm
missing the exact BZ item.
Most users should know that they can just use koan as follows if they
are wishing to install Linux (and a similar process for virt images with
--image instead of --profile or --system): koan --virt --profile=foo
--server=cobbler.example.com
Of course, for other distributions and such, it's desirable to be able
to launch KVM via PXE -- James and I have also discussed adding a
"kvmpxe" virt type specifically for this. (Incidentally, xenfv also
uses PXE today, qemu/KVM and xenpv do not)
I can look at this after we release 1.4, so I'll put this into my "hold"
folder for now.
Thanks!
--Michael