In article <
b369008c-c024-4d72...@googlegroups.com>,
Basil Huffman <
bahu...@gmail.com> writes:
> Hello all, to start: I have been trying to get this question answered using the QEMU listserv as well but as I am unsure of whether this is an issue relating to QEMU or Solaris.
> At any rate, I am emulating Solaris 2.5.1 on Xubuntu 12.04 using QEMU 1.2.0. I followed Artyom Tarasenko's tutorial on how to do this (link:
http://w=
>
ww.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CCEQFjAA&url=http%3A%2F%2Ftyom.blogspot.com%2F2009%2F12%2Fsolaris-under-qemu-how-to.html&ei=lH59UPngI5T9qAG2z4GgDA&usg=AFQjCNFA94ms2FkRGjuvyl2omkBM3L6gzA)
> I am able to get it up and running fine using the following command:
> "qemu-system-sparc -M SS-5 -nographic -bios ~/ss5.bin -hda ~/solaris.disk"
> Notes:
> - "-M SS-5" means the machine being emulated is SPARCstation 5
> - "-m 256" means 256k memory
> - "-bios ss5.bin" means that its running the appropriate bios for SPARCstation 5 (this was a file I downloaded from the site above)
> - "-hda ~/solaris.disk" this is the disk file I am using as my hd
> I then have a cd which I have made an image of. I have two ways of passing this in to QEMU:
> 1. as a CD "-cdrom ~/File.iso"
> 2. as a separate hd image "-hdb ~/File.iso"
> I had to install to my disk image by treating the solaris install cd as a separate hd (i.e. passed in as "-hdb ~/SOLARIS_2.5.1.iso" because when passing it in as a cdrom, I would get overflow errors.
> At any rate, when I load into Solaris, I am unable to mount the cd image to install.
> When I load it in as a cdrom, I get the following error message:
> # /etc/mount -o ro -F hsfs /dev/sr0 /mnt
> mount: /dev/sr0 is already mounted, /mnt is busy,
> or allowable number of mount points exceeded
> When I load it in as a separate hd, I get the same error message:
> # /etc/mount /dev/dsk/c0t2d0s0 /mnt
> mount: /dev/dsk/c0t2d0s0 is already mounted, /mnt is busy,
> or the allowable number of mount points has been exceeded
> Now, assuming this is not a QEMU issue (I am following that up separately). What would I need to do to fix this problem? Some people have suggested to me already that this could be a case of the automounter stepping up (but I don't see anywhere where it is auto-mounted when I run df), and some have suggested that there are some settings I might want to look at in vfstab.
> Any thoughts/ideas/help you all can share would be appreciated. Hopefully, I clarified things sufficiently. If not, let me know.
ISTR that OBP in systems of that age required the CD drive to operate
in 512 bytes/sector mode, which is probably why you have to pretend
it's a hard disk to boot from it. (CD's are actually 2048 bytes/sector.)
It was very handy that you could copy a cd image onto a raw disk and
boot the system from it, when testing out installation cds.
I can't remember in detail how a SPARC install CD worked back in 2.5.1,
but I suspect it's already mounted as the root disk by the time you
are in a position to type any commands into Solaris, or at least one
of the slices on it is. What does mount(1M) say is already mounted at
this point? You may need to specify the s2 slice to mount the HSFS at
the beginning of the cdrom, which is where the installation files are.
I did know all this once, as I wrote software to rebuild the install
cds for an OEM who added their own software to them, but that's a long
time ago.
IIRC, to install, you issue the OBP command:
boot cdrom -- install
--
Andrew Gabriel
[email address is not usable -- followup in the newsgroup]