Introduction
Welcome, earthlings and Solaris aficionados! Today we embark on a heroic quest to install the legendary Oracle Solaris Operating System (yes, it’s technically Unix, not Linux, but who’s counting?). Whether you’re a system administrator seeking ZFS enlightenment or a curious soul wanting to bask in the glow of the SVR4 heritage, this guide will take you by the hand (metaphorically—no OS installations are risk-free) and lead you to Solaris nirvana.
Prerequisites
- Hardware Requirements: See table below for minimum specs (don’t worry, it runs on ancient sunspots).
- Solaris ISO: Available free from Oracle’s website.
- USB stick or DVD: At least 4 GB for Solaris 11.x.
- Network access: For patching, package installation, and bragging rights.
- Patience: You might press “Enter” a few dozen times.
| Component | Minimum | Recommended |
|---|---|---|
| CPU | 1 GHz SPARC/x86 | 2 cores (64-bit) |
| RAM | 1 GB | 4 GB |
| Disk Space | 10 GB | 40 GB |
| Network | Ethernet | 1 Gbps |
1. Downloading Solaris ISO
-
Visit Oracle’s Solaris download page:
https://www.oracle.com/solaris/solaris11/downloads/ - Accept the license agreement (read carefully if you really want to sleep tonight).
- Choose the appropriate ISO for your architecture (x86 or SPARC).
-
Verify checksum:
sha256sum Solaris-11_4-live-media.iso
Creating a Bootable USB
- On Linux or macOS:
dd if=Solaris-11_4-live-media.iso of=/dev/diskN bs=4m syncReplace
/dev/diskNwith your device identifier. - On Windows: Use Rufus or Win32DiskImager.
2. Booting and Installation
BIOS/UEFI Settings
- Enable UEFI or legacy boot as required by your platform.
- Set boot priority: USB/DVD gt HDD/SSD.
- Disable secure boot if it causes problems (Solaris doesn’t like excessive handshakes).
Starting the Installer
- Insert your boot media and reboot.
- At the GRUB or OpenBoot prompt, select Install Oracle Solaris.
- Watch the kernel messages scroll by in a mesmerizing dance.
3. Disk Partitioning with format and zpool
Solaris now encourages ZFS as the root filesystem. Here’s how to carve your disk:
Using the Text Installer
- Select Custom or Guided ZFS layout.
- If custom:
- Launch
formatto create a Solaris slice (slice 2 for /). - Create ZFS pool:
zpool create -O compression=on -O atime=off rpool c0t0d0s2 - Create datasets:
zfs create rpool/ROOT zfs create rpool/home zfs create rpool/var
- Launch
- Proceed with installer it’ll detect and use
rpool.
4. Configuring Networking
After disk tasks, configure your network:
- Select Automatic (DHCP) or Manual.
- For manual:
ifconfig net0 plumb ifconfig net0 192.168.1.100 netmask 255.255.255.0 up route add default 192.168.1.1 exit
Note: Replace net0 and addresses per your LAN.
5. Package Selection
Choose your software profile:
- Standard: CLI tools, editors, network utilities.
- Developer: GCC, Make, debugging tools.
- Database: Oracle DB, libraries (beware disk hungry!).
Tip: You can always add or remove packages later with pkg.
6. Post-Installation Tasks
First Boot
- Remove installation media.
- Reboot into your new Solaris.
- Login as
rootwith the password you set.
Configure SMF Services
Solaris uses the Service Management Facility. To enable SSH:
svcadm enable ssh svcs ssh
Patch and Update
pkg refresh pkg update
Create a Non-Root User
useradd -m -G staff,bin,wheel joe passwd joe
7. Advanced Topics Tips
Zones (Lightweight Virtualization)
- Create a zone configuration:
zonecfg -z webzone > create -t SYSsolaris > set zonepath=/zones/webzone > commit > exit - Install the zone:
zoneadm -z webzone install zoneadm -z webzone boot zlogin webzone
ZFS Snapshots Rollbacks
zfs snapshot rpool/ROOT@install_day # Make changes... zfs rollback rpool/ROOT@install_day
System Monitoring
prstat: A la top.iostat: Disk I/O.netstat -m: Network buffers.
8. Troubleshooting Resources
- If installer freezes, switch to console
ALT F2and check/var/svc/log/install.log. - Check hardware compatibility:
Solaris Internals Wiki. - Join mailing lists:
Oracle Solaris Community. - Gotchas: BIOS bugs, unsupported RAID controllers, unexpected panics—welcome to Unix land!
Conclusion
Congratulations! You’ve traversed the depths of disk partitioning, tamed the ZFS beast, and unleashed your inner Solaris guru. Remember: “To err is human to have a solid backup and snapshot strategy is divine.” Now go forth, explore Immutable Zones, compile legacy SVR3 apps, and, most importantly, invite your friends to marvel at your Solaris prowess!
Leave a Reply