Notes for installing Solaris 10

These notes won’t be of too much use to anyone but me, I’m putting them here so that I can refer to them later on when I need to…

Install a minimal system. Once installed, find where the CDROM is by


iostat -En

in the case of the VM I was using, it was on c0t0d0

mount the CDROM (the Solaris 10 installation disc)
mount -F hsfs -o ro /dev/dsk/c0t0d0s0 /mnt/cdrom/
cd /mnt/cdrom/Solaris_10/Product/

If the cdrom has been mounded by the automounter (vold) the packages will be located at /cdrom/sol_10_1009_x86/Solaris_10/Product/

install vold, ssh, wget, bash, man pages, java:

vold (automounts the cdrom)
pkgadd -d . SUNWvolr SUNWvolu
ssh:
pkgadd -d . SUNWsshcu SUNWsshdr SUNWsshdu SUNWsshr SUNWsshu
wget:
pkgadd -d . SUNWwgetr SUNWwgetu
man pages
pkgadd -d . SUNWman SUNWdoc
java
pkgadd -d . SUNWj5rt SUNWj5dev SUNWj5cfg SUNWj5man SUNWj5dmo

generate ssh host keys: /lib/svc/method/sshd -c
enable and start sshd: svcadm enable ssh && svcadm restart ssh
unmount the cdrom, and enable vold
svcadm restart volfs
I think this may only be needed in the VM that I’m using as the virtual CDROM is actually disconnected from the machine when I eject it.

Mirror the root disk with zfs mirroring

Use format to check the installed disks

Format the second disk (c1t0d0s0) properly:
sudo format
(choose fdisk)
(create 100% Standard Solaris Partition over the full Disk)

Install the disk toc/partition map off the boot disk
sudo -s
prtvtoc /dev/rdsk/c1t0d0s2 | fmthard -s - /dev/rdsk/c1t1d0s2

(NOTE: it’s slice 2 (s2)! on BOTH Disks)

Attach the second disk to the ZFS Root Pool:
sudo zpool attach -f rpool c1t0d0s0 c1t1d1s0

Install the GRUB boot loader to the second disk:
installgrub -m /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c1t1d0s0
If you’re running on SPARC, use the installboot command instead
installboot -F zfs /usr/platform/`uname -i`/lib/fs/zfs/bootblk /dev/rdsk/c0t1d0s0

This article was posted by Kai Howells. If you liked this content and have any technical work in the Melbourne area, say hello via my contact form or give me a call on 0419 361 653 - I cover most of the greater Melbourne area and my rates are competitive.

Leave a Reply

Your email address will not be published. Required fields are marked *