Solaris, MacBook and Parallels
By lr on Jul 17, 2007
I recently switched from Ferrari 3400 laptop to MacBook Pro. After I got familiar with Mac OS X (one of the first tasks was to find Terminal ;-) ) I started to play with Parallels Desktop for Mac in order to be able to install Solaris.
Parallels is easy to install but there is not actually too much information at their web site how to set up the virtual machine for Solaris installation. After a some searching I found very useful blog entry Getting Solaris 10 working in Paralles by Martin MC Brown. I did not use Solaris 10 but Solaris Express Community Edition (SXCE, Nevada, build 68). The virtual machine has the following parameters:
|OS Version||Solaris 10|
|Main memory||1024 MB|
|Video memory||16 MB|
|1 x HDD, size||25600 MB|
|1 x CD/DVD ROM||Image file with SXCE image|
|2 x Serial port||Emulation / Use output file|
|Network adapter||Bridged Ethernet / Default Adapter|
Set Options/Booting/Boot Sequence to boot from CD-ROM at first and the SXDE installation can start. I choose the "Solaris Express" option at the begin because I wanted to use this machine to compile ON/Nevada from the sources later on (Solaris Express Developer Edition installs Sun Studio 12 while Sun Studio 11 is recommended for building ON/Nevada).
The installation went on without any problems. The only thing to really decide
was the slice layout. I used a simple one -- slice 0 for
/, slice 1 for
slice 2 is the
overlay, and slice 3 for
When the Solaris Express booted first time I logged as a root using Failsafe Session
/root directory and set it as home directory for the
super user (edit the file
/etc/passwd. This way all the Gnome stuff
generated for root goes to the
/root directory and
not get polluted.
The next step was to install driver for the Realtek 8029(AS) network adapter provided
by the Parallels virtual machine. As
Martin MC Brown's blog
says, the driver is located on vmtools.iso CD image located inside
/Library/Parallels/Tools directory. So, I shut down the Solaris Express,
stopped the virtual machine, set the vmtools.iso at the CD/DVD-ROM Options/Image File,
and booted the Solaris Express again.
The vmtools.iso gets automatically mounted and inside
is located device driver for the Realtek network adapter.
I installed the driver using the
network.sh script and choose
to get the IP address using DHCP. After another reboot I get assigned DHCP
address from my home DHCP server and another (virtual) machine appeared on
After getting the network up an running I set up
I used slice 3 (
/dev/dsk/c0d0s3), which was originally mounted as
UFS file system (under
/data in my case). Here are the steps to
convert this slice to ZFS pool:
/etc/vfstaband remove (mark as a comment) the line, specifying how the
/dev/dsk/c0d0s3should be mounted.
Create the ZFS pool:
zpool create -f mypool /dev/dsk/c0d0s3(the
-fparameter forces to overwrite the existing UFS file system.
Check the ZFS pool:
Once the ZFS pool is set then actual file systems can be created inside it. One
of the obvious choices would file system for
/export/home. This can
be achieved in two simple commands, for example:
zfs create mypool/home
zfs set mountpoint="/export/home" mypool/home
And this is all folks :-) -- the Solaris Express, Comunity Edition is ready for the game!