Skip to contentSkip to conversation

Solaris 9 x86 installation?

Qemu-devel Pavel Janík 4 participants 19 messages May 2, 2004 – May 20, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

I have just install 0.5.4. I configured it with:

./configure --cc="ccache gcc" --target-list="i386-softmmu"

Install prefix    /tmp/QEMU
BIOS directory    /tmp/QEMU/share/qemu
binary directory  /tmp/QEMU/bin
Manual directory  /tmp/QEMU/share/man
ELF interp prefix /usr/gnemul/qemu-%M
Source path       /home/pavel/Tmp/QEMU/qemu-0.5.4
C compiler        ccache gcc
make              make
host CPU          i386
host big endian   no
target list       i386-softmmu
gprof enabled     no
static build      no
SDL support       yes
SDL static link   no
mingw32 support   no

qemu compiled and installed. It seems to work correctly, e.g.

qemu -boot a -fda DOS_bootable.img

gives me DOS prompt.

I have read that qemu can now install Windows XP, so I tried to boot from Solaris-9-x86 install image with:

qemu -cdrom /tmp/Solaris-9-x86/sol-9-u6-install-x86.iso

But it gave me an error shown at
http://tmp.janik.cz/QEMU/Solaris-9-x86-install.png:

SunOS Secondary Boot version 3.00
prom_panic: Could not mount filesystem.
Entering boot debugger:
[1363d9]:

Exactly this error message is discussed at
http://supportforum.sun.com/sunos/index.php?t=msg&goto=2595&rid=0#msg_2595
but the problem was about SATA devices not supported.

Does it work for you? How can I debug this?

Signature · 4 lines
Pavel Janík

Test input for validity and plausibility.
                  --  The Elements of Programming Style (Kernighan & Plaugher)
#1 lore raw

Am Sonntag, 2. Mai 2004 14:29 schrieb Pavel Janík:

Quoted 1 line

qemu -cdrom /tmp/Solaris-9-x86/sol-9-u6-install-x86.iso

you have no disk!

qemu -hda SomeDisk.img -cdrom /tmp/Solaris-9-x86/sol-9-u6-install-x86.iso -boot d

#2 lore raw

From: matthias jahn <[email protected]>
Date: Sun, 2 May 2004 15:27:13 +0200

Quoted 5 lines
Quoted 1 line

qemu -cdrom /tmp/Solaris-9-x86/sol-9-u6-install-x86.iso

you have no disk!

qemu -hda SomeDisk.img -cdrom /tmp/Solaris-9-x86/sol-9-u6-install-x86.iso -boot d

Yes, I do not have disk, but it is not needed at all. I can boot that image on the system without any disk.

But I have tried it also with disk:

dd if=/dev/zero of=/tmp/disk bs=1048576 count=2048

-rw-r--r-- 1 pavel users 2147483648 May 2 15:52 /tmp/disk

./qemu -cdrom /tmp/Solaris-9-x86/sol-9-u6-install-x86.iso -hda /tmp/disk -boot d

Both disk and CD are identified in BIOS:
http://tmp.janik.cz/QEMU/qemu-0.5.4-BIOS.png

But the result is the same.

I tried to boot from the same ISO using vmware without disk with success
(http://tmp.janik.cz/QEMU/vmware-Solaris-9-x86-install.png).

I also tried to boot using Bochs (unbeliavably slow ;-):

http://tmp.janik.cz/QEMU/bochs-2.1.1-BIOS.png
http://tmp.janik.cz/QEMU/bochs-Solaris-9-x86-install.png

but it is the same as using QEMU, ie. doesn't boot.

Signature · 4 lines
Pavel Janík

-EINVAL    ISO madness, if this happens: Log off and go home.
                  -- Error code description in Linux's USB code
#3 lore raw

From: [email protected] (Pavel Janík)
Date: Sun, 02 May 2004 16:55:50 +0200

Quoted 1 line

but it is the same as using QEMU, ie. doesn't boot.

I have also tried qemu from CVS with the same result.

Signature · 5 lines
Pavel Janík

Perl is a strange, strange language.  At the 32nd try, I got my
modifications to work.
                  -- Lars Magne Ingebrigtsen in gnus.ding
#4 lore raw
Quoted 6 lines · Pavel Janík

From: [email protected] (Pavel Janík)
Date: Sun, 02 May 2004 16:55:50 +0200

Quoted 1 line

but it is the same as using QEMU, ie. doesn't boot.

I have also tried qemu from CVS with the same result.

This is a problem in the Bochs BIOS : it cannot emulate a hard disk in El-Torito mode.

Fabrice.

#5 lore raw
Quoted 11 lines · Fabrice Bellard
Quoted 6 lines · Pavel Janík

From: [email protected] (Pavel Janík)
Date: Sun, 02 May 2004 16:55:50 +0200

Quoted 1 line

but it is the same as using QEMU, ie. doesn't boot.

I have also tried qemu from CVS with the same result.

This is a problem in the Bochs BIOS : it cannot emulate a hard disk in El-Torito mode.

I spoke too fast: in fact it is an error in the int 13 for CDROMs. I updated the Bochs BIOS included in the CVS. I also added a 'bios.diff' file so that the patches can be applied back in the Bochs BIOS project.

Now the Solaris x86 install goes further...

Fabrice.

#6 lore raw

From: Fabrice Bellard <[email protected]>
Date: Sun, 16 May 2004 16:28:02 +0200

Quoted 6 lines

I spoke too fast: in fact it is an error in the int 13 for CDROMs. I updated the Bochs BIOS included in the CVS. I also added a 'bios.diff' file so that the patches can be applied back in the Bochs BIOS project.

Now the Solaris x86 install goes further...

Thanks!

But only a little bit further. The situation is the same for Solaris 9 x86 and Solaris 10 x86, so I'll describe it together:

QEMU (current CVS):

/tmp/QEMU/bin/qemu -boot d -cdrom Solaris-10-x86/sol-10-install-b54-x86.iso -hda hda.img -m 256 -fda floppy.img

Solaris now boots, but when you press F2 to continue (with full device scan), it will end up with

Scanning: Windows Sound System Compatible

thus you have to reboot and do Specific Scan (F3) instead. Disable all devices except sound related (ie. Windows Sound System Compatible and ADS Sound Blaster) and continue.

Then you mark CD as boot device and continue.

http://tmp.janik.cz/QEMU/Solaris-10-x86-boot.png

But this is everything. Installation process stops here. For both 9 and 10.

In one of several tries, Solaris installation program also printed No RTC date!? to the screen:

http://tmp.janik.cz/QEMU/Solaris-10-x86-no-RTC-date.png

Signature · 6 lines
Pavel Janík

I was going to compile a list of innovations that could be attributed to
Microsoft. Once I realized that Ctrl-Alt-Del was handled in the BIOS,
I found that there aren't any.
                  -- Richard B. Johnson in linux-kernel
#7 lore raw

I just commited new fixes. Now the hardware scan does not hang and the OS boot goes a few log lines further. The remaining problem may be PCI related (I am not sure whether Solaris x86 can boot without PCI).

Fabrice.

Quoted 27 lines · Pavel Janík

But only a little bit further. The situation is the same for Solaris 9 x86 and Solaris 10 x86, so I'll describe it together:

QEMU (current CVS):

/tmp/QEMU/bin/qemu -boot d -cdrom Solaris-10-x86/sol-10-install-b54-x86.iso -hda hda.img -m 256 -fda floppy.img

Solaris now boots, but when you press F2 to continue (with full device scan), it will end up with

Scanning: Windows Sound System Compatible

thus you have to reboot and do Specific Scan (F3) instead. Disable all devices except sound related (ie. Windows Sound System Compatible and ADS Sound Blaster) and continue.

Then you mark CD as boot device and continue.

http://tmp.janik.cz/QEMU/Solaris-10-x86-boot.png

But this is everything. Installation process stops here. For both 9 and 10.

In one of several tries, Solaris installation program also printed No RTC date!? to the screen:

http://tmp.janik.cz/QEMU/Solaris-10-x86-no-RTC-date.png

#8 lore raw

From: Fabrice Bellard <[email protected]>
Date: Sun, 16 May 2004 18:03:12 +0200

Quoted 2 lines

I just commited new fixes. Now the hardware scan does not hang and the OS boot goes a few log lines further.

Great - I can confirm that - both S9 and S10 continue through complete hardware scan and also boot.

Quoted 2 lines

The remaining problem may be PCI related (I am not sure whether Solaris x86 can boot without PCI).

Yes, the current status is:

http://tmp.janik.cz/QEMU/Solaris-9-x86-current-status.png

Thanks!

Signature · 4 lines
Pavel Janík

I hope to die before I *have* to use Microsoft Word.
                  -- Donald E. Knuth
#9 lore raw
Quoted 11 lines · Pavel Janík

From: Fabrice Bellard <[email protected]>
Date: Sun, 16 May 2004 18:03:12 +0200

Quoted 2 lines

I just commited new fixes. Now the hardware scan does not hang and the OS boot goes a few log lines further.

Great - I can confirm that - both S9 and S10 continue through complete hardware scan and also boot.

Quoted 2 lines

The remaining problem may be PCI related (I am not sure whether Solaris x86 can boot without PCI).

In fact this is not a PCI problem, but a PIC one. With the current CVS you can now launch the Solaris x86 kernel :-) I did not try the whole install, but it should work much better now.

Fabrice.

#10 lore raw
Quoted 10 lines · Fabrice Bellard
Quoted 9 lines · Pavel Jan�k

From: Fabrice Bellard <[email protected]>
Date: Sun, 16 May 2004 18:03:12 +0200

Quoted 2 lines

I just commited new fixes. Now the hardware scan does not hang and the OS boot goes a few log lines further.

Great - I can confirm that - both S9 and S10 continue through complete hardware scan and also boot.

Quoted 6 lines
Quoted 2 lines
Quoted 2 lines

The remaining problem may be PCI related (I am not sure whether Solaris x86 can boot without PCI).

In fact this is not a PCI problem, but a PIC one. With the current CVS you can now launch the Solaris x86 kernel :-) I did not try the whole install, but it should work much better now.

I have just tried it and it doesn't work for me. My command-line is:

thinkpad:/mnt/karel/solaris9$ /opt/qemu-x86/bin/qemu -pci -m 256 -boot d -cdrom sol-9-u6-install-x86.iso

and I always end in Solaris' boot debugger:

SunOS Secondary Boot version 3.00

prom_panic: Could not mount filesystem.
Entering boot debugger:
[1363d9]: <cursor is here>

Have I done any mistake?

Thanks,

Karel
--
Karel Gardas [email protected]
ObjectSecurity Ltd. http://www.objectsecurity.com

#11 lore raw

From: Karel Gardas <[email protected]>
Date: Thu, 20 May 2004 20:52:39 +0200 (CEST)

Hi,

Quoted 1 line
thinkpad:/mnt/karel/solaris9$ /opt/qemu-x86/bin/qemu -pci -m 256 -boot d -cdrom sol-9-u6-install-x86.iso

I tried the same with the current CVS and it works correctly, even without disk.

I'm now after the first reboot of Solaris-10-x86 installation and am now booting from disk without CD!

Signature · 4 lines
Pavel Janík

printk(KERN_ERR "happy meal: Transceiver BigMac ATTACK!");
                  -- Linux kernel: drivers/net/sunhme.c
#12 lore raw
Quoted 5 lines · On Thu, 20 May 2004, [iso-8859-2] Pavel Jan�k wrote:

From: Karel Gardas <[email protected]>
Date: Thu, 20 May 2004 20:52:39 +0200 (CEST)

Hi,

Quoted 7 lines
Quoted 1 line
thinkpad:/mnt/karel/solaris9$ /opt/qemu-x86/bin/qemu -pci -m 256 -boot d -cdrom sol-9-u6-install-x86.iso

I tried the same with the current CVS and it works correctly, even without disk.

I'm now after the first reboot of Solaris-10-x86 installation and am now booting from disk without CD!

Thanks, but have you tried Solaris 9? If so, please could you be so kind and tell me your compiler/binutils/glibc/kernel of your target system? (compiler/binutils which were used for qemu compilation).

Thanks,

Karel
--
Karel Gardas [email protected]
ObjectSecurity Ltd. http://www.objectsecurity.com

#13 lore raw
In reply to Fabrice Bellard

From: Fabrice Bellard <[email protected]>
Date: Thu, 20 May 2004 18:15:53 +0200

Quoted 3 lines

In fact this is not a PCI problem, but a PIC one. With the current CVS you can now launch the Solaris x86 kernel :-) I did not try the whole install, but it should work much better now.

Fabrice, you made my day!

Solaris installation continues. I will post full report tonight.

Signature · 6 lines
Pavel Janík

... feels much better than any (2.4?) kernel before. I do not know what
happend/changed exactly, but this is the first kernel which does not swap
out exact this application I will need next.
                  -- Adrian Schroeter about 2.4.10-pre14aa
#14 lore raw
Quoted 10 lines · On Thu, 20 May 2004, [iso-8859-2] Pavel Jan�k wrote:

From: Fabrice Bellard <[email protected]>
Date: Thu, 20 May 2004 18:15:53 +0200

Quoted 3 lines

In fact this is not a PCI problem, but a PIC one. With the current CVS you can now launch the Solaris x86 kernel :-) I did not try the whole install, but it should work much better now.

Fabrice, you made my day!

Solaris installation continues. I will post full report tonight.

Hu? Pavle,

do you install Solaris 10 or Solaris 9? I've already reported my unsuccesfull attempt to install 9.

Thanks,

Karel
--
Karel Gardas [email protected]
ObjectSecurity Ltd. http://www.objectsecurity.com

#15 lore raw
Quoted 9 lines · Karel Gardas
Quoted 7 lines · On Thu, 20 May 2004, [iso-8859-2] Pavel Jan�k wrote:

From: Fabrice Bellard <[email protected]>
Date: Thu, 20 May 2004 18:15:53 +0200

Quoted 3 lines

In fact this is not a PCI problem, but a PIC one. With the current CVS you can now launch the Solaris x86 kernel :-) I did not try the whole install, but it should work much better now.

Quoted 8 lines
Quoted 3 lines

Fabrice, you made my day!

Solaris installation continues. I will post full report tonight.

Hu? Pavle,

do you install Solaris 10 or Solaris 9? I've already reported my unsuccesfull attempt to install 9.

OK, so thanks to Pavel, I'm now able to start Solaris 9 installation. The problem was that I used "i386" target, while I should use "i386-softmmu" target.

Thanks,

Karel
--
Karel Gardas [email protected]
ObjectSecurity Ltd. http://www.objectsecurity.com

#16 lore raw
In reply to Fabrice Bellard
Quoted 3 lines · Fabrice Bellard

I just commited new fixes. Now the hardware scan does not hang and the OS boot goes a few log lines further. The remaining problem may be PCI related (I am not sure whether Solaris x86 can boot without PCI).

If I recall correctly, you are working on PCI emulation. Is that right?

BTW: I have just tried my Solaris9 boot CD and it really boots to the point which Pavel Janik already reported. I'm very surprised by its speed (last time I had tried system emulation in bochs, it was terribly slow) -- in qemu it seems OSes might be even usable to do real things and that's great! :-)

I just hope SolarisX will install and run succesfull some day in the future.

Thanks for your great work!

Karel
--
Karel Gardas [email protected]
ObjectSecurity Ltd. http://www.objectsecurity.com

#17 lore raw

From: Karel Gardas <[email protected]>
Date: Sun, 16 May 2004 23:17:58 +0200 (CEST)

Quoted 3 lines

I'm very surprised by its speed (last time I had tried system emulation in bochs, it was terribly slow) -- in qemu it seems OSes might be even usable to do real things and that's great! :-)

Yes, qemu is unbelievably fast! I plan do use qemu running on very fast x86 machine with Solaris/x86 inside it for building OpenOffice.org ;-)

Signature · 5 lines
Pavel Janík

Deletion of Windows:
         Deleting a window means eliminating it from the screen.
                  -- An unknown author in GNU Emacs 21 manual
#18 lore raw
Quoted 9 lines · On Sun, 16 May 2004, [iso-8859-2] Pavel Jan�k wrote:

From: Karel Gardas <[email protected]>
Date: Sun, 16 May 2004 23:17:58 +0200 (CEST)

Quoted 3 lines

I'm very surprised by its speed (last time I had tried system emulation in bochs, it was terribly slow) -- in qemu it seems OSes might be even usable to do real things and that's great! :-)

Yes, qemu is unbelievably fast! I plan do use qemu running on very fast x86 machine with Solaris/x86 inside it for building OpenOffice.org ;-)

I plan the same, but for testing/building MICO on Solaris9/x86. Although I don't have that much super fast x86 machine, qemu has to be faster for me. ;-)

Karel
--
Karel Gardas [email protected]
ObjectSecurity Ltd. http://www.objectsecurity.com