Sunday, 21 October 2018

Installing Oracle solaris 11 in Virtualbox By Devan

Installing Oracle solaris 11 in Virtualbox

A lot has been already said on Solaris 11 new features, its performance etc.. So, I just wanted get my hands dirty by testing the new Solaris 11. And what could be better than installing a Solaris 11 Virtual machine in virtual box. Here is how, you can also do it :

Prerequisites :

1. A laptop with atleast 2 GB RAM and around 50 GB of disk space
2. Oracle virtualbox software. (download here)
3. Oracle Solaris 11.1 iso image ( sol-11_1-text-x86.iso )
Solaris 11 iso image
Let us setup a virtualbox virtual machine with solaris 11. Open the virtualbox software and click on new.
create new virtual machine solaris 11
We need to name the new virtual machine and set the type/version as Solaris/Oracle Solaris 11 (64bit)
name virtual machine solaris 11
Set the Memory of the virtual machine to atleast 1.5 GB for a optimum performance.
set memory solaris 11
 We will be creating a new hard drive for the solaris 11 virtual machine.
create virtual hard drive now
 Now in case you want the virtual machine to be used in other virtualization softwares like VMware workstation etc., then select appropriate hard drive file type. I will be using the VM in virtualbox itself, so I am going to go with VDI (VirtualBox Disk Image)
hard drive file type
 In case of a dynamically allocated hard drive file, space is filled only when some data is written to it. I usually prefer fixed size hard drive as it is faster than the other dynamically allocated hard drive.
storage on physical hard drive
Name the HDD file we are going to create. You can also choose the location to store the hard disk file. I will be setting the size of hard disk as 10 GB.
file location and size
We are almost done with all the settings. There are few more settings to be done, so click on settings.
edit settings
We do not need audio device for the virtual machine , so disable it.
audio
We also do not need the USB ports, So disable the USB controller too.
ports usb
To be able to connect the Virtual machine from the host machine, select the bridged Adapter as the adapter 1 type and select the appropriate network hardware to be used from the host machine. I use Wi-Fi network in the host machine so I selected the Wi-Fi port. You may be using a ethernet card in host machine, so select it appropriately.
network
For the first time boot of the virtual machine, we need to boot it from the solaris 11 text install ISO image. Select the ISO of solaris 11 and click start to start the installation.
select iso image to install from
Select the default US-English keyboard layout and press enter.
keyboard selection
On the next screen select the default language as English and press enter.
language
Select the option 1 to install the Oracle solaris 11.
installation menu
Now appears the Welcome screen of solaris 11. On this screen and all other screen we need to use ESC + 2 to go to the next screen.
welcome screen
We will be installing solaris 11 on the local disk so select Local Disk as a discovery selection.
local disk for installation
The installer would discover the only hard disk we allocated for this installation. Select this hard drive and press ESC + 2.
select boot device
You can change the layout of the disk on the next screen. We would go with the default layout and use the entire disk.
select partition layout
On the next screen give the hostname for the virtual machine (geeklab) and select manual configuration of the network configuration. As shown you can configure network automatically using the DHCP as well. But for this LAB let us use the manual configuration itself.
hostname
Provide the IP address and netmask for the interface net0. (192.168.1.20/24)
IP address
We do not need to use any DNS name service for this installation so select “Do not configure DNS”.
DNS
Select “None” For the Alternate Name Service option.
alternate name service
Now set the time zone according to your location. For me its india so I would choose Asia/India.
time zone asia
time zone india
time zone asia:kolkata
Confirm the time settings and go to the next screen.
confirm time zone
On the next screen set the root password . here you can also create any additional users if you want.
root password
The enrollment for support is not required for this LAB setup so just go to next screens.
support registration
Select a no proxy network configuration as we are not going to use any proxy settings to connect to the internet.
no proxy
Check the final installation summary and verify them to start the installation of Oracle Solaris 11.
confirm all settings
Now the installation would start which will not take more than 15 minutes.
installing solaris 11
Once the installation is complete we need to reboot the OS. The key to reboot is ESC + 8 on this screen.
installation complete
Do remember to remove the ISO image from the virtual machine or else the installation would start again. The OS would reboot and you can see the latest Solaris 11.1 OS up and running.
starting solaris 11

Enabling GNOME Graphical Desktop

Be default you won’t be able to use the graphical desktop in solaris 11. To enable the graphical desktop we need to add a package (solaris-desktop) from the IPS repository (refer Solaris 11 IPS series).
# pkg install solaris-desktop
# init 6
After rebooting the Virtual Machine and you should see the Graphical Desktop.
Desktop GUI solaris 11
I hope the post was informative. Do subscribe to stay tuned to the latest happenings on the blog.

No comments:

Post a Comment