This assumes you are already [using VMWare|UsingVMWare] or are using Paralllels.
A version of Solaris that is known to work with the instructions in this wiki is Solaris Express Developer Edition (last checked for version 5/2007). You can find it here:
http://developers.sun.com/sxde/
Download your the image (or send for DVD) and follow the installation instructions.
Luckily for the customer, there are two Mac virtualization products competing for your business, and both work reasonably well with Solaris.
[VMWare Fusion|UsingVMWare] is a good way to run Solaris on your Intel-based Mac. Although an immature product, it is already more usable for Solaris than Parallels. It will probably improve quickly, given the depth of VMWare's other technology.
[Parallels|UsingParallels] is also reasonable for some. It lags behind VMWare in Unix integration (as of 8/2007). The 1.0 version has terrible clock skew problems, which drive the Unix {{make}} and {{emacs}} utilities crazy.
Before you set up your copy of Solaris, be sure your settings of VMWare or Parallels make sense. (If you need to change settings later, you might have to re-install Solaris. It's not a huge deal, since presumably you kept your copy of the download.)
Here is a blog entry that describes Solaris installation in great detail. Use your judgement as to the details:
http://vegdave.wordpress.com/2006/09/05/solaris-10-on-vmware-installation-complete-notes/
High points to watch:
* Use NAT. (Network address translation, which piggybacks on your Mac's networking.)
* Don't forget to install VMWare tools ASAP. It is a menu entry in the VMWare GUI.
* Change the root password immediately.
* Be sure you enable NFS, X11, ssh.
* When you create your user, [do not accept the default user ID if you are going to use NFS|FileSharing#userID].
* After you create your user, change the home directory to be hosted on your Mac disk.
Here is an outline of the initialization process:
* Start VMWare. Select File => New... to create a new virtual machine.
* Start the solaris-devx image you downloaded from Sun.
* Log in as root (pass='root' or some such; see download documentation).
* Disconnect physical network; do sys-unconfig.
* Name it 'solaris-devx' again.
* Pick a new root password. _(Or risk an insecure system!)_
* Log in as root and start up a terminal window.
* Set up the display.
{noformat}
# gnome-display-properties
...or, in the GUI, Start => Preferences => Screen Resolution
Select 1152x768 (to fit inside host window). Select "Make default", Apply, and confirm.
{noformat}
* Install VMWare tools.
{noformat}
(In VMWare GUI, select Virtual Machine => Install VMWare Tools.)
# cd /tmp; gunzip < /cdrom/vmwaretools/vmware-solaris-tools.tar.gz | tar xf -
# cd /tmp; ./vmware-install.pl
...press 'return' a lot to accept all the default choices...
...Installed 7.3.2, build-51348
# /usr/bin/vmware-toolbox
Select Options tab, Check "Time synchronization between the virtual machine and the host operating system."
# /usr/bin/vmware-user
(Turns on cross-platform copy and paste support.)
{noformat}
* Tell Solaris that you exist. ([Do not accept the default user ID if you are going to use NFS|FileSharing#userID].)
{noformat}
# users-admin
...or, in the GUI, Start => Administration => Users and Groups
... make my user joeuser; go to Advanced and set my UID correctly.
{noformat}
* Introduce Solaris to Mac, under the name {{/net/macosx}}. (See script below.)
{noformat}
# ifconfig -a
... should show a pcn0 device with an inet addr of 172.16.135.128
# ifconfig -a | sed -n '/pcn0:/,/inet/p' # for example:
pcn0: flags=201004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4,CoS> mtu 1500 index 2
inet 172.16.135.128 netmask ffffff00 broadcast 172.16.135.255
# network-admin
...or, in the GUI, Start => Administration => Network
...configure and activate the pcn0 interface (use DHCP)
...add macosx in the Hosts tab, or just do this from the shell:
# echo >> /etc/hosts 172.16.135.1 macosx macosx.local
# echo >> /etc/hosts 172.16.135.128 solaris-devx solaris-devx.local
# ping 172.16.135.1
... should get a response, since VMWare probably assigned this to the host OS
# shares-admin #AKA Start => Administration => Shared Folders
...Share root '/' with NFS, allowed host is macosx, read-only.
{noformat}
* Rehost your Solaris home directory to your Mac disk.
{noformat}
# mv /export/home/joeuser{,.orig}
# ln -s /net/macosx/Users/joeuser/solaris-devx-home /export/home/joeuser
{noformat}
* Make sure {{ssh}} is running, so you can log into Solaris.
{noformat}
# svcadm clear physical
...this will start network-dependent services
# svcs -xv ssh
...should show ssh is online
{noformat}
At this point you can log out of your root session, and minimize (hide) the VMWare window. You might want to checkpoint this state. All future interactions can be performed through a [Mac Terminal window (with ssh)|UsingMacDesktop] or an [X11 window (with xterm or XEmacs)|UsingX11].
A version of Solaris that is known to work with the instructions in this wiki is Solaris Express Developer Edition (last checked for version 5/2007). You can find it here:
http://developers.sun.com/sxde/
Download your the image (or send for DVD) and follow the installation instructions.
Luckily for the customer, there are two Mac virtualization products competing for your business, and both work reasonably well with Solaris.
[VMWare Fusion|UsingVMWare] is a good way to run Solaris on your Intel-based Mac. Although an immature product, it is already more usable for Solaris than Parallels. It will probably improve quickly, given the depth of VMWare's other technology.
[Parallels|UsingParallels] is also reasonable for some. It lags behind VMWare in Unix integration (as of 8/2007). The 1.0 version has terrible clock skew problems, which drive the Unix {{make}} and {{emacs}} utilities crazy.
Before you set up your copy of Solaris, be sure your settings of VMWare or Parallels make sense. (If you need to change settings later, you might have to re-install Solaris. It's not a huge deal, since presumably you kept your copy of the download.)
Here is a blog entry that describes Solaris installation in great detail. Use your judgement as to the details:
http://vegdave.wordpress.com/2006/09/05/solaris-10-on-vmware-installation-complete-notes/
High points to watch:
* Use NAT. (Network address translation, which piggybacks on your Mac's networking.)
* Don't forget to install VMWare tools ASAP. It is a menu entry in the VMWare GUI.
* Change the root password immediately.
* Be sure you enable NFS, X11, ssh.
* When you create your user, [do not accept the default user ID if you are going to use NFS|FileSharing#userID].
* After you create your user, change the home directory to be hosted on your Mac disk.
Here is an outline of the initialization process:
* Start VMWare. Select File => New... to create a new virtual machine.
* Start the solaris-devx image you downloaded from Sun.
* Log in as root (pass='root' or some such; see download documentation).
* Disconnect physical network; do sys-unconfig.
* Name it 'solaris-devx' again.
* Pick a new root password. _(Or risk an insecure system!)_
* Log in as root and start up a terminal window.
* Set up the display.
{noformat}
# gnome-display-properties
...or, in the GUI, Start => Preferences => Screen Resolution
Select 1152x768 (to fit inside host window). Select "Make default", Apply, and confirm.
{noformat}
* Install VMWare tools.
{noformat}
(In VMWare GUI, select Virtual Machine => Install VMWare Tools.)
# cd /tmp; gunzip < /cdrom/vmwaretools/vmware-solaris-tools.tar.gz | tar xf -
# cd /tmp; ./vmware-install.pl
...press 'return' a lot to accept all the default choices...
...Installed 7.3.2, build-51348
# /usr/bin/vmware-toolbox
Select Options tab, Check "Time synchronization between the virtual machine and the host operating system."
# /usr/bin/vmware-user
(Turns on cross-platform copy and paste support.)
{noformat}
* Tell Solaris that you exist. ([Do not accept the default user ID if you are going to use NFS|FileSharing#userID].)
{noformat}
# users-admin
...or, in the GUI, Start => Administration => Users and Groups
... make my user joeuser; go to Advanced and set my UID correctly.
{noformat}
* Introduce Solaris to Mac, under the name {{/net/macosx}}. (See script below.)
{noformat}
# ifconfig -a
... should show a pcn0 device with an inet addr of 172.16.135.128
# ifconfig -a | sed -n '/pcn0:/,/inet/p' # for example:
pcn0: flags=201004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4,CoS> mtu 1500 index 2
inet 172.16.135.128 netmask ffffff00 broadcast 172.16.135.255
# network-admin
...or, in the GUI, Start => Administration => Network
...configure and activate the pcn0 interface (use DHCP)
...add macosx in the Hosts tab, or just do this from the shell:
# echo >> /etc/hosts 172.16.135.1 macosx macosx.local
# echo >> /etc/hosts 172.16.135.128 solaris-devx solaris-devx.local
# ping 172.16.135.1
... should get a response, since VMWare probably assigned this to the host OS
# shares-admin #AKA Start => Administration => Shared Folders
...Share root '/' with NFS, allowed host is macosx, read-only.
{noformat}
* Rehost your Solaris home directory to your Mac disk.
{noformat}
# mv /export/home/joeuser{,.orig}
# ln -s /net/macosx/Users/joeuser/solaris-devx-home /export/home/joeuser
{noformat}
* Make sure {{ssh}} is running, so you can log into Solaris.
{noformat}
# svcadm clear physical
...this will start network-dependent services
# svcs -xv ssh
...should show ssh is online
{noformat}
At this point you can log out of your root session, and minimize (hide) the VMWare window. You might want to checkpoint this state. All future interactions can be performed through a [Mac Terminal window (with ssh)|UsingMacDesktop] or an [X11 window (with xterm or XEmacs)|UsingX11].