Install Solaris In Vm

In this lab, you will learn how to install the Oracle Solaris 11.2 Image for Oracle VM VirtualBox—the easiest way to get up and running with Oracle Solaris 11.2.

Solaris Operating system installation on VirtualBox VM. Will show steps to install the Oracle version of Solaris and where to download it in both ISO and VM image formats. Also, the steps will be the same for Windows 10/7, Linux and MacOS for Solaris UNIX installation using Virtualbox.

Published April 2015

Prerequisites

Swar plugin fl studio 12. 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:

  • Operating system: Windows, Mac OS X, Linux, or Oracle Solaris on x86
  • Memory: 2 GB of RAM

Before starting the lab, ensure you have installed the following:

  • Download and install Oracle VM VirtualBox; see Installation Details for notes on installing on any of the above operating systems.
  • Download and install the Oracle VM VirtualBox Extension Pack and follow the instructions at Installing VirtualBox and extension packs.

Also, you must enable hardware virtualization support in the BIOS. Oracle Solaris depends on those capabilities.

Exercise 1: Download the Oracle Solaris 11 VM for Oracle VM VirtualBox

Download the template (that is, the virtual machine [VM]) called Oracle Solaris 11.2 Oracle VM Template for Oracle VM VirtualBox.

This page is found off the main Oracle Solaris downloads page.

Exercise 2: Import the Oracle Solaris 11.2 VM into Oracle VM VirtualBox

  1. 1. Start Oracle VM VirtualBox.
  2. 2. Select File > Import Appliance. (This lab shows screen shots on a Mac. Screens might look slightly different on a PC.)

Browse to the location where you downloaded the Oracle Solaris 11.2 VM and select it. Notice that Figure 1 mentions the OVF format, but the downloaded file is a .ova file, which is the entire archive (including OVF.xml). Click Continue.

  • 3. Before importing the VM, check the memory settings.

Scroll down to check how much memory is allocated to the image. Oracle Solaris 11.2 (or later) requires a minimum of 2 GB of memory.

  • 4. Click the Import button.

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

  • 1.Select the Oracle Solaris 11.2 VM and click the green arrow labeled Start.

On first boot, the System Configuration Tool runs, prompting you to enter system information providing an explanation of what is to follow. Note that during installation, you have to actively switch between the VM and your host OS. Oracle VM VirtualBox will open a window to explain this. After the VM boots, the environments are integrated, so when you move the mouse pointer over the VM, any input will be directed to the VM, and when you move the mouse pointer outside the VM, subsequent input will go to the host OS.

Figure 5. First screen of the System Configuration Tool

- Set the region.
- Set the country.
- Set the time zone.

  • 3. The next screen will prompt you for system name.
  • 4. The third screen will prompt for networking settings. Choose Automatic.
  • 5. Next will be three screens to set the time:
  • 6. Then set the date.
  • 7. And select the keyboard.
  • 8. Set the password. Make sure you enter user account information as well as the root password. You will log in through the user account.

Figure 6. Screen for entering user account and password information

For this example, we created the user demo during the configuration step, so we now log into that account.

  • 9. Next, there will be two screens to enable the Oracle Configuration Manager, that is, 'phone home' capability. Unless you enter your My Oracle Support credentials (e-mail address and password) this data gathering facility will not be activated. (No specific user information is collected and Oracle treats the data collected as a customer's private information.)
  • 10. Finally, you will be presented with a summary page:
    • 11. Press F2 to apply the specified configuration, and then Oracle Solaris will complete the configuration/boot process.
    • 12.Log in to Oracle Solaris using the user account you set up in Step 8 above.

    Figure 10. Investigating the Oracle VM VirtualBox package

    The Oracle Solaris guest additions package creates tighter integration between the host OS and Oracle Solaris. For example, you can cut and paste text between the two operating systems. You can also put Oracle Solaris into full-screen 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.

    zfs list

    This will print out data about all the pools and subpools created. Because there is only one pool in use on this system, a more succinct way to get information is to just look at rpool with the zpool(1M) command:

    zpool list rpool

    Figure 11. Listing data about all the pools and subpools

    sudo cat /etc/sudoers

    Doing this will give you privileges to run as the root user for five minutes. The demo account user attributes are in /etc/user_attr. If you look at the contents of the file, you will notice that when the demo user was created, it was given the role of type=root. Hence, it can operate with root privileges.

    • 13. After logging in, you should see the blank background of the user's desktop. Bring up a terminal window by clicking the icon that looks like a computer screen (located on the left side of the top bar of the Oracle VM VirtualBox window).
      • 14. To get started, investigate the Oracle VM VirtualBox package by running the command pkginfo -l SUNWvboxguest in the terminal window.
      • 15. Next, enter the following command:
      • 16. If you regularly use sudo(1), you can type in a command such as the following and enter the password of the demo account.

There are two ways to take a snapshot of your environment. The first is the traditional mechanism for VMs—capture all the information of that machine so that you can start it up from that saved state later. This includes a snapshot of the local file system.

To take a snapshot, from the VirtualBox menu, select Machine > Take Snapshot. Give the snapshot a name and optional description:

The other approach is using the capability of ZFS. There are two ways to do this: one for system administrators and one for users.

For System Administrators (SAs)

To create a snapshot (called a boot environment [BE]), use the beadm(1M) command. A BE includes all the files Oracle Solaris needs to operate.

For example, to create a snapshot of the current Oracle Solaris environment, run the following command:

# beadm create

After a snapshot has been created, the SA would then perform some action that would impact the Oracle Solaris environment, say, adding new packages. In the unlikely situation there is a problem from this action, the SA can reboot to safety-net-be to get back to a known working state.

When updating packages, for example, installing the monthly Support Repository Update, a boot environment is typically automatically created and the patches will be applied to that BE, not to the running system. In that case, after updating, the SA would reboot into the just-created BE containing the updated Oracle Solaris environment. If, after some testing, the SA is not satisfied with the update, it is easy to reboot to the pre-update state.

Creating a BE (a copy of your current Oracle Solaris environment) is a very fast process and shows off one of the key feature of ZFS: What is initially copied are mostly pointers to data blocks in the file system, not data blocks themselves. Over time, as the current Oracle Solaris environment changes, blocks might need to be rewritten. The old version of a block pointed to by the BE created earlier would not be updated, but a new block would be created for the current BE with updated data. BEs are not only fast to create, they are very economical from a storage perspective because the copy, that is, the current BE, has only blocks that are different from the original environment. Over time as changes are made, and new blocks are modified, added, or deleted, the snapshot grows. ZFS snapshots are fast and efficient, but they are only a snapshot the Oracle Solaris part of the system (for example, anything that could be patched). So user directories such as /export/home are not included in a snapshot. ZFS snapshots, though, are immensely helpful when making any system software changes, because it is a trivial reboot to get back to the previous environment.

See the beadm(1M) man page for information on how to select what BE to activate on next reboot, or any other of a number of administrative actions.

For Users

In any sort of production environment, backups are made on a regular basis. Individuals can augment these through Time Slider, a facility that allows taking frequent snapshots of a user's data. Time Slider can be accessed from the desktop through System->Administration-> Time Slider.

Wrap Up

That's it for this very brief introduction. Now you have an environment in which you can begin to learn about all the great features in Oracle Solaris 11. And with the snapshot features mentioned above, you never have to worry about messing anything up, because you can always roll back to a prior known good state.

When you are ready to halt the VM, go to the upper left corner of the display and click System. From that menu, you can shut down the system.

See Also

For additional information about Oracle Solaris 11 and the technologies used in this lab, see 'Taking Your First Steps with Oracle Solaris 11.'

About the Author

Jeff McMeekin is an Oracle Solaris product manager.

It is recommended to install VMware Tools in the guest operating system. Although the guest operating system can run without VMware Tools, you lose important functionality, convenience and performance improvement.When you install VMware Tools, you install the following components:a) The VMware Tools service (vmtoolsd.exe on Windows guests or vmtoolsd on Linux and Solaris guests). This service synchronizes the time in the guest operating system with the time in the host operating system. On Windows guests, it also controls grabbing and releasing the mouse cursor.b) A set of VMware device drivers, including an SVGA display driver, the vmxnet networking driver for some guest operating systems, the BusLogic SCSI driver for some guest operating systems, the memory control driver for efficient memory allocation between virtual machines, the sync driver to quiesce I/O for Consolidated Backup, and the VMware mouse driver. C) The VMware Tools control panel, which lets you modify settings, shrink virtual disks, and connect and disconnect virtual devices.d) You can also use the command-line interface of the VMware Tools configuration utility in the guest operating system to perform these tasks.

See the VMware Tools Configuration Utility User’s Guide.e) A set of scripts that helps you to automate guest operating system operations. The scripts run when the virtual machine’s power state changes if you configure them to do so. F) The VMware user process (VMwareUser.exe on Windows guests or vmware-user on Linux and Solaris guests), which enables you to copy and paste text between the guest and managed host operating systems.To install VMware Tools in a Solaris guest operating system, follow the following steps:1.

Ensure that your Solaris virtual machine is powered on. In the vSphere Client inventory, right-click the virtual machine and select Power Power On.2. Click VM in the virtual machine menu, then click Guest Install/Upgrade VMware Tools and click OK.3. Copy vmware-solaris-tools.tar.gz from /cdrom/vmwaretools to a temporary directory (/tmp/).root@solaris # cp /cdrom/vmwaretools/vmware-solaris-tools.tar.gz /tmproot@solaris # cd /tmp4. Decompress the file using gunzip command.root@solaris tmp# gunzip vmware-solaris-tools.tar.gz5.

Extract the contents of the tar file with the command:root@solaris tmp# tar xvf vmware-solaris-tools.tar6. Change directory using the command:root@solaris tmp# cd vmware-tools-distrib7. To install VMware Tools, run this command from the directory vmware-tools-distrib:root@solaris vmware-tools-distrib#./vmware-install.plImportant Note:It is recommended to respond to the configuration questions and press “Enter” to accept all of the default values. Reboot the virtual machine for changes to take effect. SiteGround.comA world leading hosting company that provides fully-managed innovative and secure solutions, suitable for hosting small to medium-sized websitesBuilt on the best available technologies combined with Google Cloud for strong redundancy and application availability.

Backed by skilled experts to address web security threats, a devops team to create advanced custom security solutions, and 24/7 sysadmins to watch over the platform. This powerful, hands-on approach makes your sites faster, safer, and easier to manage. Starting from only $3.95/mo. up to 30 days money back guarantee.