Re: [OpenIndiana-discuss] [discuss] OpenIndiana iso boot problem using GRUB2

2017-11-04 Thread Peter Tribble
On Sat, Nov 4, 2017 at 9:29 PM, Ganapathy S A  wrote:

> ​​Hello All,
>
> Booted the four illumos distributions (iso): SmartOS, OmniOSce, Tribblix,
> and OpenIndiana by following this SmartOS wiki
> . All
> booted properly but OpenIndiana! I know this isn't the recommended way to
> boot but this seems very convenient, i.e., download the iso image, then
> boot either by burning it to CD/DVD or by using GRUB2 like most Linux
> distributions do! Please have a look at the boot message and the grub.cfg
> file below.
>

The fundamental difference here is that the ISO for
SmartOS/OmniOSce/Tribblix has a boot_archive
that is a complete instance of the OS, whereas OpenIndiana has a split-root
structure where it
subsequently mounts /usr from a file on the media.

If you want to boot OI this way then you need some way of fooling it into
finding the solaris.zlib file
where it's expecting it. It looks for physical USB or optical media, which
I'm guessing you're trying to
avoid. The other option might be to fool it into thinking it's doing a
network boot by adding something like
-B install_media=http://some.site/location/
where that URL contains the two .zlib files off the iso. But generally the
old Caiman boot/install
didn't have this kind of boot mechanism in mind when it was developed.

(Earlier versions of Tribblix and OmniOS also had the same split-off /usr,
but both have changed to a
single archive to make implementation easier and more flexible.)


>
> *OpenIndiana boot message: *
>
> SunOS Release 5.11 Version illumos-2727bb055f 64-bit
> Copyright (c) 1983, 2010, Oracle and/or its affiliates. All rights
> reserved.
> ERROR: failed to attach AMD IOMMU
> Hostname: openindiana
> Remounting root read/write
> Probing for device nodes ...
> Preparing live image for use
> Requesting System Maintenance Mode
> (See /lib/svc/share/README for more information.)
> Console login service(s) cannot run
>
> Enter user name for system maintenance (control-d to bypass): jack
> Enter jack password (control-d to bypass):
> Login incorrect or user jack not authorized
>
> Enter user name for system maintenance (control-d to bypass): root
> Enter root password (control-d to bypass):
> single-user privilege assigned to root on /dev/console.
> Entering System Maintenance Mode
>
> Nov 4 20:12:07 su: 'su root' succeeded for root on /dev/console
> ld.so.1: bash: fatal: libncurses.so.5: open failed: No such file or
> directory
> ld.so.1: bash: fatal: relocation error: file /usr/bin/bash: symbol PC:
> referenced symbol not found
> Requesting System Maintenance Mode
> (See /lib/svc/share/README for more information.)
> Console login service(s) cannot run
>
> Enter user name for system maintenance (control-d to bypass):
>
> */boot/grub/grub.cfg*
>
> set timeout=5
> set default=0
> set color_normal="white/black"
> set menu_color_normal="white/black"
> set menu_color_highlight="black/white"
>
> menuentry " SmartOS 201708 " {
> loopback loop (hd0,msdos1)/smartos-20170831T155808Z.iso
> multiboot (loop)/platform/i86pc/kernel/amd64/unix
> /platform/i86pc/kernel/amd64/unix -B smartos=true
> module (loop)/platform/i86pc/amd64/boot_archive
> /platform/i86pc/amd64/boot_archive type=rootfs name=ramdisk
> }
>
> menuentry " OmniOS 201709 " {
> loopback loop (hd0,msdos1)/omniosce-r151022s.iso
> multiboot (loop)/platform/i86pc/kernel/amd64/unix
> /platform/i86pc/kernel/amd64/unix
> module (loop)/platform/i86pc/amd64/boot_archive
> /platform/i86pc/amd64/boot_archive
> }
>
> menuentry " Tribblix 201709 " {
> loopback loop (hd0,msdos1)/tribblix-0m20.1.iso
> multiboot (loop)/platform/i86pc/kernel/amd64/unix
> /platform/i86pc/kernel/amd64/unix
> module (loop)/platform/i86pc/boot_archive
> /platform/i86pc/boot_archive
> }
>
> menuentry " OpenIndiana 201710 " {
> loopback loop (hd0,msdos1)/OI-hipster-gui-20171031.iso
> multiboot (loop)/platform/i86pc/kernel/amd64/unix
> /platform/i86pc/kernel/amd64/unix
> module (loop)/platform/i86pc/amd64/boot_archive
> /platform/i86pc/amd64/boot_archive
> }
>
>
> Any help is appreciated. Thanx.
>
>
> Regards,
> Ganapathy
> ​​
> *illumos-discuss* | Archives
> 
> | Powered by Topicbox 
>



-- 
-Peter Tribble
http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] Another GRUB/loader problem, or two

2017-11-04 Thread Gary Mills
I just did an upgrade on one of my systems, from a hipster of
2017-04-29 to a hipster of 2017-11-04.  It ran normally, with no
errors.

On reboot, I got the GRUB menu, but it didn't show the new BE, but
only the old ones.  When I let it reboot automatically, the BE of
2017-04-29 was running again.  Clearly, the GRUB BE menu had not been
updated.

I decided it was time to change from GRUB to loader.  I mounted the
new BE as instructed, and ran:

bootadm install-bootloader -MfvR  /mnt

Then I unmounted the BE and rebooted once again.  This time, I got the
loader menu.  When I let it boot automatically, I got these two lines:

Loading unix...
Loading /platform/i86pc/amd64/boot_archive...

After that, there was no further output.  The console was dead.

This system uses a remote console, through ipmitool.  It had worked
before with GRUB.  The GRUB BE menu had specified:

kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS,console=ttyc

A remote login worked, even though the console was dead.  It was
running the new BE.

So, I added:

console="ttyc"

to /boot/loader.conf, did the second `bootadm install-bootloader', and
rebooted again.

This time, it all seemed to work.  I could see the whole boot process
on the console, followed by the banner and the login prompt.

We have one, or perhaps two, problems with the upgrade still.  It
didn't go as smoothly as I'd hoped, but ultimately it did work.  At
least, there are solutions for all the problems.


-- 
-Gary Mills--refurb--Winnipeg, Manitoba, Canada-

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss