System Admins and Developers
Hands-On Labs
In this lab you will learn how to install the Oracle Solaris 11 Image for Oracle VM VirtualBox, the easiest way to get up and running with Oracle Solaris 11.
This lab is the first is a series of labs for Oracle Solaris 11. All of the labs in the series have these prerequisites in common:
bleonard@solaris:~/Download$ unzip OracleSolaris11_11-11_VM.zip Archive: OracleSolaris11_11-11_VM.zip inflating: OracleSolaris11_11-11.mf inflating: OracleSolaris11_11-11.ovf inflating: OracleSolaris11_11-11-disk1.vmdk inflating: README.txt
In this exercise, we will import the Oracle Solaris 11 VM into VirtualBox.



In this exercise we will run Oracle Solaris 11 for the first time - getting a basic understand of what's there:


3. Select Automatically when prompted for network configuration:

4. Select Time Zone (press F2 to continue on each screen). Select region first.

Then select the country.

and the correct time zone

5. Choose root password. Do not create user account, it is already created for you in this virtual image. If you install Oracle Solaris you must create user account. Now you just import an appliance with Oracle Solaris preinstalled.

6. Review the summary page and if it is correct, press F2 to finish the configuration.

7. Wait for login prompt.
8. When prompted, enter the username oracle and the password oracle

You'll find an icon in the top panel to open a terminal:

Note, the VirtualBox Guest Additions are pre-installed:
oracle@solaris:~$ pkginfo -l SUNWvboxguest
PKGINST: SUNWvboxguest
NAME: Oracle VM VirtualBox Guest Additions
CATEGORY: application
ARCH: i386
VERSION: 4.1.2,REV=r73507.2011.08.15.14.54
BASEDIR: /
VENDOR: Oracle Corporation
DESC: Oracle VM VirtualBox Guest Additions for Solaris guests
PSTAMP: vboxguest20110815145457_r73507
INSTDATE: Nov 03 2011 08:15
HOTLINE: Please contact your local service provider
EMAIL: info@virtualbox.org
STATUS: completely installed
FILES: 68 installed pathnames
3 linked files
4 directories
19 executables
30146 blocks used (approx)
The Solaris guest additions allow for tighter integration between the host OS and Oracle Solaris. For example, you can cut and paste text between the 2 operating systems. You can also put Oracle Solaris into Fullscreen mode. Do this now by selecting Machine > Switch to Fullscreen.
Exiting full screen mode is most easily accomplished by moving your mouse cursor to the bottom middle of the screen, which will cause a menu to appear as follows. You can either exit via the Machine menu or the blue window icon to the right:

Other items of note, we have 63.5 GB of hard disk space (this is a potential, the image does not consume that much at the moment):
oracle@solaris:~$ zpool list rpool NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT rpool 63.5G 5.19G 58.3G 8% 1.00x ONLINE -
Finally, it would probably help to know the root password. It is exactly what you setup earlier at system configuration stage.
Actually, the user oracle can be in the /etc/sudoers file, so you don't really need the root password. To have user oracle in /oracle/sudoers file, please do the following:
oracle@solaris:~$ su Password: <root password you entered on configuration stage> # cat >> /etc/sudoers oracle ALL=(ALL) ALL <Ctrl-D> #
Please note that there are two > signs after cat in the command above.
Now you can check sudo command works for you.
oracle@solaris:~$ sudo su We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things: \#1) Respect the privacy of others. \#2) Think before you type. \#3) With great power comes great responsibility. Password: oracle root@solaris:/home/oracle#
Now that we have our virtual machine in a clean state, let's take a snapshot in case we want to roll back. You can take the snapshot while the machine is running.

That's it. Now you have an environment in which you can begin to learn about all the great features in Oracle Solaris 11. And with VirtualBox's snapshot feature, you never have to worry about messing anything up as you can always rollback to a prior state.
For additional information about Oracle Solaris 11 and the technologies used in this lab, please see the following links: