X

News, tips, partners, and perspectives for the Oracle Solaris operating system

Getting Started with Oracle Solaris 11.4 on Oracle Cloud Infrastructure (OCI)

Dave Miner
Sr. Principal Software Engineer
With today's release of Oracle Solaris 11.4, we're making pre-built images available for use in Oracle Cloud Infrastructure (OCI).  The images aren't part of the official OCI image catalog at this time, but using them is easy, just follow these steps, which are the same as in my previous post on the 11.4 beta images.
  1. Login to your OCI console and select Compute->Custom Images from the main menu, this will display the Images page.
  2. Press the blue Import Image button.  This will display the Import Image dialog.
  3. In the dialog, select a compartment into which the image will be imported, and enter a name, such as "Solaris 11.4".  Select Linux for the operating system since OCI doesn't yet know about Solaris and that will avoid any special handling that OCI has for Windows images.  At this point, choose which image you wish to import:
  • Bare Metal: Copy this link and paste it into the Object Storage URL field.  Select QCOW2 as the Image Type, and Native Mode as the Launch Mode. Enter any tags you wish to apply, and then press Import Image.
  • Virtual Machine: Copy this link and paste it into the Object Storage URL field.  Select VMDK as the Image Type, and Emulated Mode as the Launch Mode.  Enter any tags you wish to apply, and then press Import Image.

It'll take a few minutes for OCI to copy the image from object storage into your tenant's image repository.  Once that's complete, you can launch an instance using the image.  First, one tip: if you've imported the Bare Metal image, you should go to its Image Details page and press the Edit Details button.  In the Edit Image Details dialog that comes up, there's a Compatible Shapes list.  You'll find that all of the shapes have a blue checkmark.  You should uncheck all of the VM shapes and then Save the image.  The reason is that Solaris is not capable of booting in OCI's native virtual machine shapes at this time and this will prevent anyone who uses that image from inadvertently launching a VM that won't be accessible.  We're working on running Solaris under OCI's native VM technology, but since it's not ready yet, we've made the emulated mode image available for now.

When creating an instance, select Custom Image as the boot volume type and select the image you've imported along with a compatible shape.  You'll need to supply an ssh key in order to login to the instance once it's started; when creating a VM, it's necessary to click the Show Advanced Options link to access the SSH Keys settings.

After you start an instance, login using ssh opc@<instance ip>.  The image contains a relatively minimal Solaris installation suitable for bootstrapping into a cloud environment - this is the solaris-cloud-guest group package.  You'll likely need to install more software to do anything beyond some simple exploration; to add more Solaris packages, just use the pkg command to install from the Solaris release repository.

Now that you've got an instance running, there's a lot more you can do with it, including saving any modifications you make as a new Custom Image of your own that you can then redeploy directly to a new instance (note, though, that at this point a modified bare metal image will only be deployable to bare metal, and a VM image will only be deployable to a VM).  Leave a comment here, post on the Solaris 11 community forum, or catch me @dave_miner on Twitter if you have topic suggestions or questions.  And of course check out my previous post on automatically configuring Solaris guests in OCI.

Join the discussion

Comments ( 12 )
  • Dave Miner Monday, January 7, 2019
    OCI is x86-only at present.
  • Maria Mikhno Thursday, January 17, 2019
    Tell me please where can I fing other pre-built Solaris images?
  • Dave Miner Thursday, January 17, 2019
    I'm unaware of any other pre-built Solaris images at this time.
  • Bob Netherton Friday, May 31, 2019
    Hey Dave,

    Is there any way to specify the AI manifest for a bare metal install ? I'm trying to use terraform to deploy an instance and it looks like it might be getting to the compute node too early in the install for the package commands to work.
  • Dave Miner Monday, June 3, 2019
    There's no AI going on here - the disk image is cloned by the OCI infrastructure and booted directly. Drop me a line directly if you want help sorting out what your problem might be.
  • Rich Rutkowski Wednesday, June 5, 2019
    Thanks for the info in the blog. Works well but I do have one question. When I try to login using the ssh opc@ command it will request a password. Turning on debug for ssh seems to indicate that the self-signed cert is not being recoginized and ssh finally fails to a password authentication. I seem to recall that OCI required the certs to be generated by putty. Is that correct?
  • Dave Miner Wednesday, June 5, 2019
    Rich, there's nothing special about OCI that should cause that issue. If you can use that cert to login to Solaris elsewhere, it should work here.
  • Rich Rutkowski Friday, June 7, 2019
    The problem was using the wrong form of the ssh command. I assumed that the default location for the private key was the .ssh directory. Not for Solaris 10 and 11.3. Using ssh -i opc@ works. I also needed chmod 400 on the private key as ssh would not work with an unprotected private key. Using pkg install --accept solaris-desktop vncserver is now available. I have not setup the desktop access but I can use either Solaris 11.3 or Windows 8.1. What do you think?
  • Rich Rutkowski Wednesday, June 12, 2019
    I just looked at my last message to you and it does not make too much sense when the html is removed. In any event it all appears to work except that the public IP address does not show with and ifconfig -a command. The private IP does show. That is an issue with postgres that I need to resolve. I hate to have to put in the database schema from the command line.
  • Marius Scholtz Thursday, June 27, 2019
    This works great. Thanks a lot.
  • Javier Chirino Monday, August 19, 2019
    Hi, I am trying to attach new volumes to a VM deployed from your image, it is possible? is any special config?

    Thanks.
  • Dave Miner Tuesday, August 20, 2019
    Yes, please see the post on using storage resources, https://blogs.oracle.com/solaris/how-to-use-oci-storage-resources-with-solaris-v2 for how to attach using iSCSI.
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.