Hi, folks,
I've got two problems with grub2 that I thought others might have solved already. My initial attempts haven't been fruitful.
I have an f20 Dom0. xen-4.3.2-1.fc20.x86_64 grub2-2.00-25.fc20.x86_64
Problem #1
My /etc/default/grub looks like [1].
I try to set the Dom0 to boot with:
grub2-set-default 'Fedora, with Xen 4.3.2 and Linux 3.12.10-300.fc20.x86_64'
and the default non-Xen menuentry gets booted instead.
It's definitely there in the config file [2] and I can boot it manually. I really need the machine to be able to boot unattended. I tried setting it manually in /etc/grub/default but that doesn't work either.
I'm generating the grub.cfg with grub2-mkconfig > /boot/grub2/grub.cfg and have re-installed grub2 on my /dev/sda and /dev/sdb (raid-1 /boot).
Problem #2
When I try to boot from grub manually, I first get an error message saying "xen_rm_opts" unknown command. In each Xen menuentry, I see, e.g.:
echo 'Loading Xen xen ...' if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then xen_rm_opts else xen_rm_opts="no-real-mode edd=off" fi
whereas in previous times I remember the first conditional block saying:
xen_rm_opts=
I presume that makes the difference between a statement and an assignment in whatever sh-ish language grub is using. I'm not sure where to fix that as I'm no grub2 expert. I kinda miss the simplicity of 'default=6'. :)
My third possible-grub problem relates to memory and I'm not sure it really is a problem in grub2 yet, so I'll post that separately.
Thanks in advance! -Bill
[1]
GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR="Fedora" GRUB_DEFAULT="saved" GRUB_CMDLINE_LINUX="root=LABEL=librescu-root rootflags=data=journal rd_NO_LUKS rd.md=auto rd.lvm=0 rd.dm=0 KEYTABLE=us SYSFONT=lata rcyrheb-sun16 rd.luks=0 LANG=en_US.UTF-8 selinux=0 elevator=deadline mem=4096M max_loop=32 selinux=0 ipv6.disable=1" GRUB_CMDLINE_XEN="dom0_max_vcpus=2 dom0_vcpus_pin dom0_mem=4096M,max:4096M" GRUB_SERIAL_COMMAND="serial --unit=0 --speed=19200 --word=8 --parity=no --stop=1" GRUB_TIMEOUT=10 GRUB_TERMINAL="serial console"
[2]
# grep "'Fedora, with Xen 4.3.2 and Linux 3.12.10-300.fc20.x86_64'" /boot/grub2/grub.cfg menuentry 'Fedora, with Xen 4.3.2 and Linux 3.12.10-300.fc20.x86_64' --class fedora --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-3.12.10-300.fc20.x86_64-advanced-9ccf2a16-82bf-41b0-a35f-1d79d63b3e28' {
On Mon, Mar 24, 2014 at 03:53:32PM -0400, Bill McGonigle wrote:
Hi, folks,
I've got two problems with grub2 that I thought others might have solved already. My initial attempts haven't been fruitful.
I have an f20 Dom0. xen-4.3.2-1.fc20.x86_64 grub2-2.00-25.fc20.x86_64
Problem #1
My /etc/default/grub looks like [1].
I try to set the Dom0 to boot with:
grub2-set-default 'Fedora, with Xen 4.3.2 and Linux 3.12.10-300.fc20.x86_64'
and the default non-Xen menuentry gets booted instead.
It's definitely there in the config file [2] and I can boot it manually. I really need the machine to be able to boot unattended. I tried setting it manually in /etc/grub/default but that doesn't work either.
I'm generating the grub.cfg with grub2-mkconfig > /boot/grub2/grub.cfg and have re-installed grub2 on my /dev/sda and /dev/sdb (raid-1 /boot).
Change this: GRUB_DEFAULT="saved"
to GRUB_DEFAULT="Fedora GNU/Linux, with Xen hypervisor"
Problem #2
When I try to boot from grub manually, I first get an error message saying "xen_rm_opts" unknown command. In each Xen menuentry, I see, e.g.:
echo 'Loading Xen xen ...' if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then xen_rm_opts else xen_rm_opts="no-real-mode edd=off" fi
whereas in previous times I remember the first conditional block saying:
xen_rm_opts=
I presume that makes the difference between a statement and an assignment in whatever sh-ish language grub is using. I'm not sure where to fix that as I'm no grub2 expert. I kinda miss the simplicity of 'default=6'. :)
That looks like a bug in GRUB. If you use the upstream version of GRUB do you see it?
My third possible-grub problem relates to memory and I'm not sure it really is a problem in grub2 yet, so I'll post that separately.
OK.
Thanks in advance! -Bill
[1]
GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR="Fedora" GRUB_DEFAULT="saved" GRUB_CMDLINE_LINUX="root=LABEL=librescu-root rootflags=data=journal rd_NO_LUKS rd.md=auto rd.lvm=0 rd.dm=0 KEYTABLE=us SYSFONT=lata rcyrheb-sun16 rd.luks=0 LANG=en_US.UTF-8 selinux=0 elevator=deadline mem=4096M max_loop=32 selinux=0 ipv6.disable=1" GRUB_CMDLINE_XEN="dom0_max_vcpus=2 dom0_vcpus_pin dom0_mem=4096M,max:4096M" GRUB_SERIAL_COMMAND="serial --unit=0 --speed=19200 --word=8 --parity=no --stop=1" GRUB_TIMEOUT=10 GRUB_TERMINAL="serial console"
[2]
# grep "'Fedora, with Xen 4.3.2 and Linux 3.12.10-300.fc20.x86_64'" /boot/grub2/grub.cfg menuentry 'Fedora, with Xen 4.3.2 and Linux 3.12.10-300.fc20.x86_64' --class fedora --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-3.12.10-300.fc20.x86_64-advanced-9ccf2a16-82bf-41b0-a35f-1d79d63b3e28' {
-- Bill McGonigle, Owner BFC Computing, LLC http://bfccomputing.com/ Telephone: +1.855.SW.LIBRE Email, IM, VOIP: bill@bfccomputing.com VCard: http://bfccomputing.com/vcard/bill.vcf Social networks: bill_mcgonigle/bill.mcgonigle -- xen mailing list xen@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/xen
Thanks for the response, Konrad!
On 03/24/2014 08:48 PM, Konrad Rzeszutek Wilk wrote:
It's definitely there in the config file [2] and I can boot it manually. I really need the machine to be able to boot unattended. I tried setting it manually in /etc/grub/default but that doesn't work either.
I'm generating the grub.cfg with grub2-mkconfig > /boot/grub2/grub.cfg and have re-installed grub2 on my /dev/sda and /dev/sdb (raid-1 /boot).
Change this: GRUB_DEFAULT="saved"
to GRUB_DEFAULT="Fedora GNU/Linux, with Xen hypervisor"
Sorry, that's what I meant by "tried setting it manually in /etc/grub/default". I believe this *used to* work.
I wonder if anybody else is successfully booting Xen with f20's grub2?
That looks like a bug in GRUB. If you use the upstream version of GRUB do you see it?
I haven't gotten far enough along to compile and install an upstream, but just to note progress, this looks like the commit that started the option (which seems OK at first glance):
http://git.savannah.gnu.org/cgit/grub.git/commit/util/grub.d/20_linux_xen.in...
and here's a general git browser search for xen (not seeing an obvious breaking commit):
http://git.savannah.gnu.org/cgit/grub.git/log/?qt=grep&q=xen
-Bill
On Tue, 2014-03-25 at 15:07 -0400, Bill McGonigle wrote:
On 03/24/2014 08:48 PM, Konrad Rzeszutek Wilk wrote:
Change this: GRUB_DEFAULT="saved"
to GRUB_DEFAULT="Fedora GNU/Linux, with Xen hypervisor"
Sorry, that's what I meant by "tried setting it manually in /etc/grub/default". I believe this *used to* work.
Have you tried this: http://wiki.xen.org/wiki/Fedora_Host_Installation#Booting_Xen_by_Default
I wonder if anybody else is successfully booting Xen with f20's grub2?
Indeed and all the time. :-)
Dario
Hi Bill,
On Wed, Mar 26, 2014 at 3:07 AM, Bill McGonigle bill@bfccomputing.com wrote:
Thanks for the response, Konrad!
On 03/24/2014 08:48 PM, Konrad Rzeszutek Wilk wrote:
It's definitely there in the config file [2] and I can boot it manually. I really need the machine to be able to boot unattended. I tried setting it manually in /etc/grub/default but that doesn't work either.
I'm generating the grub.cfg with grub2-mkconfig > /boot/grub2/grub.cfg and have re-installed grub2 on my /dev/sda and /dev/sdb (raid-1 /boot).
Change this: GRUB_DEFAULT="saved"
to GRUB_DEFAULT="Fedora GNU/Linux, with Xen hypervisor"
Sorry, that's what I meant by "tried setting it manually in /etc/grub/default". I believe this *used to* work.
Manually editing may not be a good idea:
# # DO NOT EDIT THIS FILE # # It is automatically generated by grub2-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub #
I can confirm that I can change the default entry for grub2 on F20 to Xen:
I use a script I wrote which you can download at https://github.com/zma/usefulscripts/blob/master/script/grub2-select.bash which summarize the steps from http://www.fclose.com/3826/setting-default-entry-in-grub2-and-grub/ .
I wonder if anybody else is successfully booting Xen with f20's grub2?
I just tried and unfortunately Xen can not boot either for me ;( It got stuck. I made a video recording it: http://file.pkill.info/file/f12-xen-fail-to-boot.mov (25MB). It worked well for me last time I tried it on F19. No idea what is wrong.
The versions of Xen and Kernel:
xen-4.3.2-2.fc20.x86_64 kernel-3.13.10-200.fc20.x86_64
Best, Eric
On Sat, Apr 26, 2014 at 02:52:30PM +0800, Eric Zhiqiang Ma wrote:
Hi Bill,
On Wed, Mar 26, 2014 at 3:07 AM, Bill McGonigle bill@bfccomputing.com wrote:
Thanks for the response, Konrad!
On 03/24/2014 08:48 PM, Konrad Rzeszutek Wilk wrote:
It's definitely there in the config file [2] and I can boot it manually. I really need the machine to be able to boot unattended. I tried setting it manually in /etc/grub/default but that doesn't work either.
I'm generating the grub.cfg with grub2-mkconfig > /boot/grub2/grub.cfg and have re-installed grub2 on my /dev/sda and /dev/sdb (raid-1 /boot).
Change this: GRUB_DEFAULT="saved"
to GRUB_DEFAULT="Fedora GNU/Linux, with Xen hypervisor"
Sorry, that's what I meant by "tried setting it manually in /etc/grub/default". I believe this *used to* work.
Manually editing may not be a good idea:
# # DO NOT EDIT THIS FILE # # It is automatically generated by grub2-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub #
I can confirm that I can change the default entry for grub2 on F20 to Xen:
I use a script I wrote which you can download at https://github.com/zma/usefulscripts/blob/master/script/grub2-select.bash which summarize the steps from http://www.fclose.com/3826/setting-default-entry-in-grub2-and-grub/ .
I wonder if anybody else is successfully booting Xen with f20's grub2?
I just tried and unfortunately Xen can not boot either for me ;( It got stuck. I made a video recording it: http://file.pkill.info/file/f12-xen-fail-to-boot.mov (25MB). It worked well for me last time I tried it on F19. No idea what is wrong.
It looks to crash.
Can you do: 'vga=ask,keep noreboot console=vga" on the Xen command line to capture the crash? (please, no video, just one screenshot is good).
It will ask you for a VGA console output = pick the highest one.
Thanks!
The versions of Xen and Kernel:
xen-4.3.2-2.fc20.x86_64 kernel-3.13.10-200.fc20.x86_64
Best, Eric
xen@lists.stg.fedoraproject.org