Rapid Deployment of Logical Domains / A Free Tutorial from SkillBuilders

Learn how to use ZFS backend storage for rapid deployment of Oracle VM Server for SPARC logical domains running the Solaris operating system.  Another name for this tutorial could be, “creating Solaris operating systems in minutes, not hours!”

This 1-hour free training covers the following topics:

  • Review of Control Domain configuration, using ZFS as the bootable root file system.
  • Creating a guest domain for use as a template (“Golden image”).
  • Creating a snapshot of the template logical domain.
  • Cloning the template to provision a new logical domain.
  • Creating and booting the cloned logical domain.


Free Video Tutorial: Deploying Logical Domains on a T-Series Server

  1. Introduction. Brief Review, Agenda and Introduction to Control Domains (10:36)
  2. Control Domains Demonstration, Guest Domains, IO Domains and more… (10:15)
  3. Guest Domains Demonstration (10:49)
  4. Guest Domains (continued) (9:46)
  5. Guest Domains Golden Image, Snapshots (10:09) (click on video below)


Date: Oct 26, 2011

NOTE: Some corporate firewalls will not allow videos hosted by YouTube.


Guest Domains Golden Image, Snapshots,

Solaris Training Rapid Deployment of Logical Domains Part 5


>> Mick:  We then added a disk device as golddisk to our initial domain. Unfortunately, the commands do get a little bit convoluted and quite complex, so although the disk is known as one name to the actual virtual service, it’s then known as another name to each virtual domain and that hpfdisk1 which we set up as the boot device and then built the operating system on that together.




Just out of interest, within the actual Logical Domain, the disk just shows up as a normal disk name, c0d0, etc. I hope that’s clear. It is a little bit hard to get your head around it when you first see it and you have to keep good records so that you can look back and think, “What was that I did two weeks ago?” Try and work things out.




So we’ve patched it and stored it, rebooted to make sure the patches are applied properly and then sys-unconfig which is the stage you’re at now. Let’s go and create a new Logical Domain. Let’s clone.


First of all, we have to snapshot. And we snapshot goldvol. This will effectively create a read-only snapshot. The way that the snapshot syntax works is to say, “zfs snapshot,” the name of the volume and then @ and some character string like useme, for example. You can have your own conventions, date and time, whatever you like.




There’s our snapshot. Now, zfs allows me to create a clone of the snapshot which is a rewritable copy.




Zfs clone, the name of the snapshot, and then the name that I want to give it. Again, what shall I call it? I’m going to create a domain called sb1 and so I’m going to call this volume sb1vol.


I’ve effectively created another operating system. All I need to do now is to create my new Logical Domain and then assign that as a disk service to it. Remember this isn’t anything to do with the Logical Domain configuration. This just is opening out disk tray and letting in other disk to our virtual disk server.




>> Dave:  Mick, there’s a question in the queue.


>> Mick:  Yeah.


>> Dave:  What’s a good storage solution?


>> Mick:  To go with this?


>> Dave:  Yeah. A good partner for a T-series server.


>> Mick:  I would think probably the Unified Storage, the 7000 Series because that’s being put forward as an ideal solution especially for something like Logical Domains and virtualization generally. With the capacities ranging from 20 terabytes up to three petabytes. Brilliant performance and nice and easy to manage. A T3 server and something like that would go very well together in this sort of technology.


>> Dave: Is that under the category of ZFS Appliance?


>> Mick:  Yes, it would be. Yeah, that’s exactly what it is.


>> Dave:  Excellent. Thanks, Mick.


>> Mick: Okay.




Now as you can see, that’s already been done from a thing I did earlier. There we’ve already assigned the disk to the disk service. Apologies, the commands are slightly complicated. This is adding that device as an identified disk onto the disk controller, which I can then assign to my guest domain.




So now I can go and create my guest domain.




That’s the mathematical unit, eight virtual CPUs, three gigs of memory, and then I can do ldm add-vdisk. I’ll call it sb1rootdisk and this name up here.




I forgot to put the domain name.


I hope that’s clear. I know it’s quite complicated the sequence of steps, but you do get used to it. So I’m adding a virtual disk which is going to be known sb1rootdisk to the sb1 domain using the disk that I’ve created just now from the clone.


Then I can do ldm list-bindings sb1, just to make sure everything looks okay.




Then ldm bind sb1.




Now you can see the new resources that have been assigned this time. I could also set variables like autoboot and so forth, but let’s get the domain started.


Let’s see what port we need to get the console on, 5001. It’s booting, as you can see.


We’ve created the operating system instantaneously. What we really have to do was defining the actual domain. There we go. and it’s going to come up now – because it’s a sys-unconfig operating system, it’s going to go into interactive mode and ask us to define all the particular features of the machine. Here we go.


You may be familiar with the step if you’ve ever done this yourself, similar to part of the stage of building the machine in the first place. One thing that springs to mind that you might ask is, “Is it possible to put a configuration for it to define some of this stuff?” If you’ve been used to using Solaris Jumpstart, you’d be talking about sysidcfg file.


The answer is no, not really. Although you can actually build one into your sys-unconfig image that does a partial configuration for you but configuring things when you do a first boot, the old trick of creating an image script. But you can’t really. You have to go through the actual machines basic configuration unfortunately.




As I’m in the U.K., I’ll choose U.K. keyboard. But you’re probably all familiar with this. So here we are booting the machine and you can see it’s working fine other than creating the identity information.


So there we are. We’ve provisioned our domain very, very rapidly. All we have to do is complete the identity information.




Here, in order to preserve the golden image, I don’t need the initial hpf1 domain anymore so I’m just stopping it. I’m binding it and getting rid of it. So I’m left just with the golden image that I can clone and there’s no danger of losing the domain and corrupting it in any way.


We have a couple of minutes left and I’ll carry on just configuring the machine just so you can see it’s all there working correctly. But this has been a real demonstration. I have done things for real. Nothing has been concocted, so you had a chance to see everything as it actually happens.


Copyright 2017

Free Online Registration Required

The tutorial session you want to view requires your registering with us.

It’s fast and easy, and totally FREE.

And best of all, once you are registered, you’ll also have access to all the other 100’s of FREE Video Tutorials we offer!