Re: grub2 vs. Xen

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx           
> VCard: http://bfccomputing.com/vcard/bill.vcf
> Social networks: bill_mcgonigle/bill.mcgonigle
> --
> xen mailing list
> xen@xxxxxxxxxxxxxxxxxxxxxxx
> https://admin.fedoraproject.org/mailman/listinfo/xen
--
xen mailing list
xen@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/xen





[Index of Archives]     [Fedora General]     [Fedora Music]     [Linux Kernel]     [Fedora Desktop]     [Fedora Directory]     [PAM]     [Big List of Linux Books]     [Gimp]     [Yosemite News]

  Powered by Linux