|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] /etc/grub.d/09-xen for generating grub.cfg for hypervisor boot entries.
I like the idea myself and I haven't seen anything in the wiki's other than manual creation steps. Just an opinion here, but why not use "dummy=dummy" as opposed to first parameter duplication? My understanding is that dummy is used to avoid this same bug. Either way we it avoids having to hardcode root= into the kernel cmdline .config parameter :) I don't know if parameter duplication would break things when the bug is fixed or not, but the dummy parameter shouldn't. I also think it might be viewed as something more familiar, perhaps self explanatory, whereas the parameter duplication may cause confusion. I skimmed the code and have not tested it. I don't see that it is specifically trying to ensure that the kernel is Xenlinux or pvops... Not that I know of a proper way to do such or if its even pratical. Aren't most kernels now pvops (thus bootable under xen) but not necessarily dom0 capable? I think a spin on this would be if one wanted to limit the Xen entries to kernels with "xen" (ie. --append-to-version) in the name. Perhaps the code would change as follows?
<snip>
list=`for i in /boot/vmlinu[xz]-*xen* /vmlinu[xz]-*xen* ; do
if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi
done`
<snip>
Bruce Edge wrote:
If this has already been done, please forgive me. However, if not, I'd like to submit this as a mechanism for generating a bootable grub2 stanza for hypervisors.As the /etc/grub.d/* files rely on defaults in /etc/default/grub, I added the following Xen specific variable:GRUB_CMDLINE_XEN_DEFAULT="console=com1 115200,8n1 dom0_mem=512M dom0_max_vcpus=1 dom0_vcpus_pin=true iommu=1,passthrough,no-intremap loglvl=all loglvl_guest=all loglevl=10 debug acpi=force apic=on apic_verbosity=verbose numa=on"The script itself is a hacked version of the10-linux that comes with grub2. This is 09-xen so it places it's boot entries ahead of the non-xen entries. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |