OpenSolaris Virtual Box
From Genunix
This page gives instructions on how to setup guest operating systems with Virtual Box. Feel free to add and update entries. Please make it as step-by-step as possible.
Here's a wiki if you want OpenSolaris on the Metal.
OpenSolaris on MacOS
1. Backup User Data
Backup your data prior to attempting any of these procedures (ie. use at your own risk)
2. Virtual Box on MacOS
From the Virtual Box downloads website, http://www.virtualbox.org/wiki/Downloads you can access the binaries, Open Source Edition (OSE) and User Manuals. To comply with U.S. export regulations, VirtualBox downloads have temporarily been moved to the Sun Download Center. It says that a more permanent solution is being worked on that will simplify downloads for various distributions and re-enable old versions as well.
Take the link Binaries (all platforms) to the Sun Download Center page for Virtual Box. VirtualBox 1.5.6 (released 2008-02-19) is the latest. Use the selection pull down list to select MacOS, download the latest disk image file, VirtualBox-osx-1.5.51-r27946-beta3.dmg, about 21MB. I downloaded to my Donwloands folder on the MacBook. The .dmg file can be thought of as the virtual equivalent of a CD. The actual data in the disk image is contained within a single file. Go to the Downloads folder and double click the VirtualBox-osx-1.5.51-r27946-beta3.dmg icon. A pop up window shows several icons, the first is VirtualBox.mpkg, double click on this to proceed with installation. Select <continue> to approve proceeding, then <continue> again to go past the introduction, then <continue> again for the license, then <agree> to agree to the license. Select the disk volume where you want to install VirtualBox and click <continue>, 39.9MB are required. Click <install> for a standard installation. Enter your MacOS user password. The install runs to completion and you are now back in the pop up window which is still open. You can close it and go to Applications in the Finder. Double click on the VirtualBox icon to start it. VirtualBox is now installed and ready for you to build virtual machines to contain guest operating systems.
3. OpenSolaris Developer Preview 2 (Indiana) as Guest OS
OpenSolaris Developer Preview 2 is the current product of project Indiana, the advance preview of Sun's binary distribution of OpenSolaris. It is available as a single Live CD image from http://opensolaris.org/os/project/indiana/resources/getit/ or from http://www.genunix.org/distributions/indiana/in-preview2.iso
I downloaded this .iso file and burned the image to a CD. On a Solaris or OpenSoalris system you can use the command
cdrw -i /{path to the .iso file}/in-preview2.iso.
On a Windows system you can use many programs to burn .iso images. I sometimes use Img-Burn from http://www.imgburn.com/.
- Start VirtualBox by double clicking its icon in the Applications folder in the Finder.
- Create a new virtual machine to contain OpenSoalris Preview 2
- click the <New> button to start the New Virtual Machne Wizard
- click <Next>
- enter a name for your new VM, e.g. OpenSolaris Preview 2
- select OS type = Solaris from the pull down list and click <next>
- set a memory size, I used 512MB. This depends somewhat on what you have available on your sysem, click <Next>
- now you will set the disk size for a file that will contain VirtualBox's working set of information comprising your OS image for this VM. Click <New...> to use the wizard, then <Next>.
- I selected Image Type = Dynamically expanded image, click <Next>
- I set the size to 10GB, click <Next>
- click <Finish> to complete this wizard
- click <Next>, click <Finish> to complete creation of the VM container
- click the <Settings> button
- select CD/DVD-Rom, check the Mount CD/DVD Rom box, check the Enable Passthrough box
- click <OK>
- Load OpenSolaris Preview 2 Live CD
- insert the CD containing the OpenSolaris Preview 2 .iso image (wait a few seconds to allow the MacBook to spin it up and recognize it)
- click the <Start> button in VirtualBox's top menu, a notification popup informs you what the "Host" key is. You will use this key to bring the cursor focus out of the VM and back to the MacBook desktop when needed. click <OK>
- the Grub menu appears, press <Enter> or wait a few seconds for the default to start loading the Live CD
- at the question enter the keyboard map number of your choice
- OpenSolaris Preview 2 proceeds to load the OS into memory
- click anywhere inside the VM window, you are informed that the cursor will be captuerd into the VM, again the "Host" key notice is displayed. click <Capture>
- click <Close> to accept the license
- OpenSolaris Preview 2 is now running as a Live CD OS
- Install OpenSolaris Preview 2 on the VirtualBox Hard Disk
- Double click on the <Install OpenSolaris> icon to start the GUI Installer
- click <Next> to proceed with the install
- click <Next> this will use the "existing partition" (i.e. the disk space you allocated in VirtualBox), click <Next>
- select your time zone and set the system time, for me it is:
- Region = Americas, Location = United States, Time Zone = Pacific Time
- set Date and Time, click <Next>
- enter your root password and user account information, click <Next>
- click <Install> This will take some time - about 25 minutes depending on your system, when the install is done eject the CD then click <reboot>, select the first option in the Grub menu
- OpenSolaris Preview 2 comes up in your new Virtual Machine
- Shutdown OpenSolaris using the System Menu
- Exit VirtualBox
- Set up networking for the OpenSolaris Preview 2 Virtual Machine
We need to install a network driver here, we'll use a Nevada (SXCE) DVD to do it. If you don't have a Nevada DVD yet, download the image from opensolaris.org- Insert the Nevada DVD
- Start VirtualBox, select the OpenSolaris Preview 2 VM
- Go to Settings > General > Advanced and make the boot order be Hard Disk 1st, then CD/DVD Rom
- In CD/DVD Rom settings make sure you have checked to mount the CD/DVD Rom drive
- Start the OpenSolaris Preview 2 VM
- Login as the user you created in the install, open a terminal and become root
- You should see the Nevada DVD icon on the Desktop
if not, from the VirtualBox 'Devices' menu, mount the DVD, and wait until you see it inside of your VB-OpenSolaris. - $ su -
- password:
- Create a directory /sw and extract the PCN drivers from the Nevada DVD
- mkdir /sw
- cd /media/sol_11_x86/Solaris_11/Product/SUNWos86r/archive
- ls
none.bz2 - cp none.bz2 /sw
- cd /sw
- bunzip2 -c none.bz2 | cpio -icdu
1314 blocks - ls
etc kernel none.bz2 - cd kernel/drv
- cp pcn* /kernel/drv
- add_drv -i '"pci1022,2000" "pci103c,104c"' pcn
- reboot (this reboot will take a minute or two)
- Login as the user you created in the install
- Open Firefox and go to opensolaris.org
