Thursday, October 27, 2011

Check that Oracle DB 11.2.0.2 test db is receiving connections

Logged in as oracle user this works :

Make sure ORACLE_HOME, ORACLE_SID and PATH are all set :
# echo $ORACLE_HOME
/export/home/database/11g/app/oracle/product/11.2.0/dbhome_1
# echo $ORACLE_SID
orcl
# echo $PATH
/usr/bin:/export/home/database/11g/app/oracle/product/11.2.0/dbhome_1/bin:

# $ORACLE_HOME/bin/sqlplus -s "/ as sysdba"<<! > /tmp/check_$ORACLE_SID.tom.ora
> select * from v\$database;
> exit
> !

# cat /tmp/check_$ORACLE_SID.tom.ora

     DBID NAME      CREATED   RESETLOGS_CHANGE# RESETLOGS
---------- --------- --------- ----------------- ---------
PRIOR_RESETLOGS_CHANGE# PRIOR_RES LOG_MODE     CHECKPOINT_CHANGE#
----------------------- --------- ------------ ------------------
ARCHIVE_CHANGE# CONTROL CONTROLFI CONTROLFILE_SEQUENCE# CONTROLFILE_CHANGE#
--------------- ------- --------- --------------------- -------------------
CONTROLFI OPEN_RESETL VERSION_T OPEN_MODE            PR


Command :

/bin/su - oracle -c "ORACLE_HOME=/export/home/database/11g/app/oracle/product/11.2.0/dbhome_1;export ORACLE_HOME;ORACLE_SID=orcl;export ORACLE_SID;$ORACLE_HOME/bin/sqlplus -s '/ as sysdba'<<! > /tmp/check_$ORACLE_SID.ora
select * from dual;
exit
!"

Friday, October 7, 2011

Solaris 11 AI server : client profile issue

I recently came across this issue when setting up a Solaris 11 AI server.  For each client I had a manifest file and a profile.  I added both to the client I wanted to install.  The problem was that since I did not specify a criteria for the profile it meant that the profiles for each client where being run on every install.  Here is the solution :

"By default when you add a profile via "installadm create-profile", it will get assigned to all clients for this service.

To assign profiles to specific clients/hosts you have to provide criteria that will identify it.

In your scenario I'm presuming you just have the one install service created from which you'd like to install two machines from but apply a specific profile to each machine.

Assuming the install services is called my_ai. The default means of creating a profile which will apply to all client machines that get installed via this service would be :

   $ installadm create-profile -n my_ai -f machine1.profile.xml

To ensure a specific client machine uses a specific profile you'd have to add some criteria to the create-profile sub-command :

  $ installadm create-profile -n my_ai -f machine1.profile.xml -c ipv4=192.19.82.7


This will ensure that machine with ip 192.19.82.7 will get this profile and not any other machine. Where as without the criteria all machines would get it.

List of valid Criteria are under "CRITERIA" section of installadm(1M)."

Thanks for reading,
Tom

HOWTO : Change the nodename on Solaris 11

echo 'setprop config/nodename = <nodename>' | svccfg -s svc:/system/identity:node 

svcadm refresh system/identity:node 


svcadm restart system/identity:node 


and then reboot.

Sunday, October 2, 2011

Avatars and Nanodetectors

This blog is a bit of a mind spill and offers mostly questions and very little in the way of answers.  It will touch on topics such as avatars, voice recognition, nanodetectors, health and how mankind may develop a one point interaction with the Internet.

Avatars have interested me for a while. When I talk about an avatar I'm not referring to those cartoon avatars you can create for free online or James Cameron's Avatar.  I'm interested in 3D photo realistic avatars that exhibit your behaviors, your current "status", learn as you learn and respond to your voice.  By "status"  I mean detailed health status, mood, location etc.  A 100% online representation of yourself.  Our current QWERTY interaction with the Internet is cold and in personal. In the future when you need to search online, book flights, contact a family member, read the news or whatever else you do online you may leave that up to someone else, your avatar.  Avatars will interact online in the same way humans interact in real life.  They will learn from each other, negotiate with each other and even have relationships with each other.

Currently when you feel the need to tell your friends about your mood, health, location your first reaction is to update your online status in twitter, facebook, blog etc.  Maybe in the future your avatar will communicate all of this information not just because you have told your avatar how you are feeling but because your avatar will be feeling the same??  When you have the flu will you need to tell your avatar about the phlegm or will your avatar have a greater insight into how your feeling than you do?  Your avatar may have advanced knowledge of what is happening inside your body through nanodetection and will be able to advise you on the best course of action.  An interesting aside is that as genome mapping becomes faster and may become available to Joe Bloggs, your avatar may have access to your genetic code and can look for changes in your genome.  Your avatar will be your own PA, health care physician and digital being.  So in essence your avatar could be your one point interaction to the Internet.  Will Avatars ever be able to go to work for us?

Does the technology already exist to make this a reality?  Yeah I think the majority of it does.  The problem is how we can combine existing technology, deal with storage of vast amounts of information in the cloud so that it can be accessed in real time, security of this information through genetic encryption of data and there are surely lots of ethical issues to address.

Thanks for reading.
Tom

Saturday, September 24, 2011

Fix Windows MBR using Ubuntu Live CD


A damaged or corrupt Windows MBR can be a difficult issue to fix especially if you don't have a Windows Repair CD.  Fear not.  Using a Ubuntu Live CD on a USB key you can easily repair the MBR.  These instructions are for advanced users only.  Use at your own risk.

  • Boot into your Ubuntu LiveCD on your machine. Once Ubuntu starts up, go to System -> Administration -> Software Sources and enable (by checking it off) the Universal repository.
  • Now, open a terminal session (Applications -> Accessories -> Terminal) and type the following:

sudo apt-get install ms-sys
  • ms-sys is a program used to write Microsoft compatible boot records. Now you’ll need to figure out what partition is the one hosting your Windows operating system.
  • Back in the command line, type:

sudo fdisk -l
  • That will list the available partitions. You’re looking for a partition that says something like

/dev/sda1 1 9327 74919096 83 NTFS
  • The two important bits are the ‘/dev/sda1‘ which is the partition itself and the ‘NTFS‘ which tells us it’s a Windows formatted partition.  So your Windows partition exists on your drive sda and it’s partition 1. The MBR for drive sda (assuming you boot into windows using it’s native boot loader) is what you want to repair.
  • We want to fix the MBR on /dev/sda. To do so, type:

sudo ms-sys -m /dev/sda
  • You’ll want to change the ‘sda’ bit if your results from ‘fdisk -l‘ are different.  If for instance your windows install is on sdb or hda.  Once you do that, reboot the machine, removing the Live CD USB key and Windows should come back to you.


Thanks for reading.

Tom

Time for x64 on Sparc?

Will we ever see an x86/64 OS emulated on the Sparc architecture?  Currently we can virtualize the cpu, memory, hard disk and even the network.  What would be the benefit?  Choice for the customer, flexibility and leveraging the benefits of any chosen OS.

Projects such as Bochs and WABI have attempted x86 on Sparc before but performance was terrible.  With the next generation of T4 servers on the horizon do we now have the horsepower to emulate/virtualize Windows on Sparc?  A common argument is why would you want to run Microsoft on Sparc?  Love it or hate it Windows is still the most widely used OS in the world.  

As a customer, as much as I love Sparc, I love flexibility even more. Offer me a Sparc machine in which I can run OVM for Sparc and any x86/64 OS of my choice at near native speed and I am sold.  Maybe this is just a pipe dream or maybe someone is currently working on this.

(These are my own personal opinions and in no way reflect the opinions of my employer.)  

 

Friday, September 23, 2011

Simple Bash tput menu

Nice and simple tput menu.

#!/usr/bin/env bash

# clear the screen
tput clear

# Move cursor to screen location X,Y (top left is 0,0)
tput cup 3 15

# Set a foreground colour using ANSI escape
tput setaf 3
echo "-- MAIN MENU --"
tput sgr0

tput cup 5 17
# Set reverse video mode
tput rev
echo "M A I N - M E N U"
tput sgr0

tput cup 7 15
echo "1. Run All Tests"

tput cup 8 15
echo "2. Run Specific Test"

tput cup 9 15
echo "Q. Quit Menu"

# Set bold mode
tput bold
tput cup 12 15
read -p "Enter your choice [1-4] " choice

tput clear
tput sgr0
tput rc

case $choice in
1) echo "Running All tests";;
2) echo "Run specific Test";;
q|Q) echo "Exiting Menu.";exit 0;;
*) echo "Invalid option";;

esac

Wednesday, September 21, 2011

Combining Dropbox and Virtualbox

Two of my favourite pieces of software at the moment are Dropbox and Virtualbox, both free and easy to setup.

If you find yourself using multiple Virtual Machines it may be useful to use Virtualbox's Shared Folders feature and point this to your Dropbox.  Nice if you have a set of testcases that you want to run on multiple OS'es.

So assuming you have a Windows Host and Solaris guest :

Create a shared folder in VirtualBox, point the share to your Dropbox folder, in my case "My Dropbox" which is on the desktop.

Call the share "Dropbox".

Start the Solaris VM.

Open Terminal.

login as root:

cd Desktop

mkdir Dropbox


mount -t vboxsf Dropbox ~/Desktop/Dropbox

For Ubuntu VM's you can download the Dropbox client or try this as root:

sharename="Dropbox"; 
mkdir /mnt/$sharename \
chmod 777 /mnt/$sharename \ 
mount -t vboxsf -o uid=1000,gid=1000 $sharename /mnt/$sharename \
ln -s /mnt/$sharename $HOME/Desktop/$sharename


HOWTO : Silently remove a package in Solaris

Use at own risk.

Create a file called 'noask' with the following info:

Bmail=
instance=overwrite
partial=nocheck
runlevel=nocheck
idepend=nocheck
rdepend=nocheck
basedir=default
space=nocheck
setuid=nocheck
conflict=nocheck
action=nocheck

After the file is created you should be able to run:
# pkgrm -n -a noask PKGNAME

Useful for automation.

HOWTO : Upgrade OVM 2.0 to 2.1

This is probably quite widely documented but if you need the quick steps to upgrade Oracle OVM 2.0 up to version 2.1 then here you go :

  1. Stop and unbind all guest ldoms.
  2. Stop ldmd service : svcadm disable ldmd 
  3. Remove existing ldm software : pkgrm SUNWldm;pkgrm SUNWldmp2v
  4. Download OVM 2.1 from download.oracle.com.
  5. unzip and cd into Install and run ./install-ldm
If you are using Solaris 11 Express you can use the following command to install the OVM software :  pkg install ldomsmanager

Thats it.  

What does Tom know?

My experience is primarily as a QA engineer.  This is my bread and butter and has been since my intern days (2002 - 2003) at Sun Microsystems.  Very rarely do you find a company/institution as great as Sun.  Every day was a joy.  Working with some of the greatest minds in the IT industry on a daily basis and getting paid for it was awesome.  The good old days.

I had a brief spell (2 years) in the financial industry.  Not my cup of tea, end of story.

Back to Sun in 2006 and working on virtualization tools, testing and automation.  I have one simple goal in work.  I want to execute, analyse and communicate everything with the click of one button in less than the time it takes to make a coffee.

To clarify, I like speed.  If a testsuite takes 1 hour to run then I want to run it in 10 minutes or 1 minute.  If a test machine takes 1 hour to setup I want it ready in 2 minutes.  Back in 2006 whilst in the Java QA team at Sun I worked on my own project to create an "Instant Virtual Lab".  Using Microsoft VirtualPC and cloned golden images I could generate and create multiple test machines with a clean state and testsuites included in a few minutes.  Fast forward to 2008 and I moved onto Virtualbox and VMware ESXI.  Combining Virtualbox and ZFS provided great benefits such as snapshotting and cloning (See ZFS and Virtualbox blog).

I love simplicity.  Why is Facebook such a phenomenon?  Its social simplicity at its finest.  If every tool in the IT industry was designed with this type of simplicity then the hours, days and years wasted in every company using sub standard tools would be saved.

Im currently working on testing Solaris on Oracle's latests hardware platforms.  I cant say too much but the future looks very bright for Oracle.  Combining Oracle's money making skills and Sun's IP is a force to be reckoned with.

I also enjoy idea generation and have submitted a number of invention disclosures this year through Oracle.  Unfortunately the Patent process is long and drawn out so it may be a while before reaping the rewards.

As well as my 9 to 5 job at Oracle I also do some teaching, computer repair etc through my website : TomWillFixIT.com.

Where do I see myself in 5 years time?  I'd love to work in a research and development role for an innovative IT company.  Fixing problems and working outside of the box, taking technology in different directions that benefit humanity.  Working with state of the art technology, great minds and having the freedom to develop ideas is the dream.

If you have any questions about the following then leave a comment and I'll reply asap : virtualbox, ovm, zfs, sparc, scripting, zenity, bart, webmin, jquery

Thanks for reading,
Tom

README

Hey All,

Over the years I have scattered bits of information over the web and now it is time to gather my thoughts and my bits and put them into Blogger.  Some of the blogs may be a bit old but hopefully somebody will find use for them.

I have 100's of "HOWTOS" that I have built up over the years and I will gradually add these into Blogger after all confidential info has been removed.

Feel free to leave a comment or visit my other site :  http://www.TomWillFixIT.com

Thanks for reading.

Tom


ZFS and Virtualbox

Below are step by step instructions on setting up Virtualbox on Solaris10 and using zfs to clone.

Setup:

Solaris 10u8b5 installed on machine with 4 gig RAM and duo core processor.
Downloaded Latest Virtualbox from here: http://www.virtualbox.org/wiki/Downloads to /opt

Step 1: Install Virtualbox.
  1. cd /opt
  2. tar -xvf VirtualBox-3.0.4-50684-SunOS.tar
  3. pkgadd -d VirtualBoxKern-3.0.4-SunOS-r50684.pkg
  4. pkgadd -d VirtualBox-3.0.4-SunOS-r50684.pkg
Step 2: Setup zfs filesystem. This machine only has one hard drive so we make a zfs filesystem under UFS.
  1. cd /export/home
  2. mkfile 30000m vpool
Create SWAP space under ZFS: (Use roughly double the physical RAM)
  1. zfs create -V 10gb vpool/swap
Create the ZFS vpool
  1. zpool -f create vpool /export/home/vpool
Create an area to put the GOLDEN image:
  1. zfs create -V 15g vpool/GOLDEN_IMAGE/
Step 3: Get a GOLDEN image from net10-bambi.
  1. cd vpool/GOLDEN_IMAGE/
    #ftp <golden image repository>
    usual password.
  2. cd /export/vm_images/GOLDEN_images
  3. bin
  4. get Windows7_x86_b7229_vb_GOLDEN.vdi.tar.gz
  5. bye
  6. gunzip Windows7_x86_b7229_vb_GOLDEN.vdi.tar.gz
  7. tar -xvf Windows7_x86_b7229_vb_GOLDEN.vdi.tar
(Ideally at this point you should create a VM and point to the GOLDEN image, start the VM and update the GOLDEN with any patches/updates etc you need. Then stop the VM.)

Step 4: Cloning.
Ok we have the GOLDEN image now we can clone.
First we snapshot the GOLDEN image:
  1. zfs snapshot vpool/GOLDEN_IMAGE@golden
Then we create an area for TEST_IMAGE
  1. zfs create vpool/TEST_IMAGE
And then we clone:
  1. zfs clone vpool/GOLDEN_IMAGE@golden vpool/TEST_IMAGE/disk_image1
  2. zfs clone vpool/GOLDEN_IMAGE@golden vpool/TEST_IMAGE/disk_image2
  3. zfs clone vpool/GOLDEN_IMAGE@golden vpool/TEST_IMAGE/disk_image3
Change the uuid of each disk:

VBoxManage internalcommands setvdiuuid /vpool/TEST_IMAGE/disk_image1/Windows7_x86_b7229_vb_GOLDEN.vdi

VBoxManage internalcommands setvdiuuid /vpool/TEST_IMAGE/disk_image2/Windows7_x86_b7229_vb_GOLDEN.vdi

VBoxManage internalcommands setvdiuuid /vpool/TEST_IMAGE/disk_image3/Windows7_x86_b7229_vb_GOLDEN.vdi

Each of these disk_images is very small and only grows as the VM is used.

Step 5: Create VM.
This has been covered in previous emails/blogs so I wont cover it again. Basically just create your VM's, select "existing disk" and point it to one of the disk_images in Step 4.

Cloning LDOM using ZFS

Walkthrough of the steps used to configure zfs on a server, setup your GOLDEN domain and clone from it using zfs. Some useful links too:
http://blogs.sun.com/vreality/entry/ldom_with_zfs http://blogs.sun.com/timthomas/entry/a_simple_vnc_server_and

Step 1 : Setup zfs pool
check disks you want to add to pool

bash-3.00# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
/pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/sd@0,0
1. c1t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
/pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/sd@1,0
2. c1t2d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
/pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/sd@2,0
3. c1t3d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
/pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/sd@3,0

add to pool:
zpool -f create vpool c1t1d0 c1t2d0 c1t3d0
doesnt work because /export/home is mounted.
  1. umount /export/home
remove entry from /etc/vfstab
zpool -f create vpool c1t1d0 c1t2d0 c1t3d0

bash-3.00# zfs list
NAME USED AVAIL REFER MOUNTPOINT
vpool 110K 201G 18K /vpool

Step 2 : Create 20 gig area in pool for Golden LDOM
zfs create vpool/goldenimage
zfs create -V 20g vpool/goldenimage/b111a

Step 3 : Create LDOM and point to the above area.
bash-3.00# /usr/sbin/svcadm enable vntsd

bash-3.00# /usr/bin/svcs vntsd
STATE STIME FMRI
online 11:29:18 svc:/ldoms/vntsd:default
bash-3.00# /opt/SUNWldm/bin/ldm create b111a
bash-3.00# /opt/SUNWldm/bin/ldm set-mau 1 b111a
bash-3.00# /opt/SUNWldm/bin/ldm set-vcpu 4 b111a
bash-3.00# /opt/SUNWldm/bin/ldm set-mem 1024M b111a
bash-3.00# /opt/SUNWldm/bin/ldm add-vnet vnet1 primary-vsw0 b111a
bash-3.00# ls /dev/zvol/dsk/vpool/goldenimage
b111a
/opt/SUNWldm/bin/ldm add-vdsdev /dev/zvol/dsk/vpool/goldenimage/b111a b111a@primary-vds0
/opt/SUNWldm/bin/ldm add-vdisk vdisk1 b111a@primary-vds0 b111a
bash-3.00# /opt/SUNWldm/bin/ldm set-variable auto-boot?=false b111a
bash-3.00# /opt/SUNWldm/bin/ldm set-variable boot-device=/virtual-devices@100/channel-devices@200/disk@0 b111a
bash-3.00# /opt/SUNWldm/bin/ldm bind b111a
bash-3.00# /opt/SUNWldm/bin/ldm start b111a
LDom b111a started
bash-3.00# /opt/SUNWldm/bin/ldm list
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv SP 4 1G 6.2% 23h 10m
b111a active t-- 5000 4 1G 25% 9s
opensolaris-b111a inactive ----- 4 1G
opensolaris-b111a_local inactive ----- 4 1G
Step 4 : Install LDOM
use boot net:dhcp
(There will be another post on this wiki for setting up the opensolaris install server)
Step 5 :
Configure root user:
su root (passwd is opensolaris by default)
TERM=dtterm
export TERM
vi /etc/user_attr
remove "type=role;" from the root line.
reboot
log in again as root.
  1. sys-unconfig
Sample output:
opensolaris console login: root
Password:
May 12 04:42:37 opensolaris login: ROOT LOGIN /dev/console
Sun Microsystems Inc. SunOS 5.11 snv_111a November 2008
root@opensolaris:~# sys-unconfig
WARNING
This program will unconfigure your system. It will cause it
to revert to a "blank" system - it will not have a name or know
about other systems or networks.
This program will also halt the system.
Do you want to continue (y/n) ? y
sys-unconfig started Tue May 12 04:42:47 2009
rm: cannot remove `//etc/vfstab.sys-u': No such file or directory
sys-unconfig completed Tue May 12 04:42:48 2009
Halting system...
svc.startd: The system is coming down. Please wait.
svc.startd: 83 system services are now being stopped.
May 12 04:42:57 opensolaris syslogd: going down on signal 15
svc.startd: Killing user processes.
May 12 04:43:07 The system is down. Shutdown took 16 seconds.
syncing file systems... done
Program terminated
Sun Fire T200, No Keyboard
Copyright 2008 Sun Microsystems, Inc. All rights reserved.
OpenBoot 4.28.9, 1024 MB memory available, Serial #66639941.
Ethernet address 0:14:4f:f8:d8:45, Host ID: 83f8d845.
Unknown macro: {0}
ok
Step 6:
Stop and unbind the LDOM
bash-3.00# /opt/SUNWldm/bin/ldm stop b111a
bash-3.00# /opt/SUNWldm/bin/ldm unbind b111a
Step 7:
Take a snapshot of the GOLDEN LDOM disk image:
bash-3.00# zfs snapshot vpool/goldenimage/b111a@sysunconfig
bash-3.00# zfs list
NAME USED AVAIL REFER MOUNTPOINT
vpool 25.3G 175G 1.66M /vpool
vpool/goldenimage 25.3G 175G 18K /vpool/goldenimage
vpool/goldenimage/b111a 25.3G 195G 5.32G -
vpool/goldenimage/b111a@sysunconfig 0 - 5.32G -
Create a new area for the new domain:
bash-3.00# zfs create vpool/domain1
bash-3.00# zfs list
NAME USED AVAIL REFER MOUNTPOINT
vpool 25.3G 175G 1.66M /vpool
vpool/domain1 18K 175G 18K /vpool/domain1
vpool/goldenimage 25.3G 175G 18K /vpool/goldenimage
vpool/goldenimage/b111a 25.3G 195G 5.32G -
vpool/goldenimage/b111a@sysunconfig 0 - 5.32G -
Clone the GOLDEN LDOM disk to the new domain:
zfs clone vpool/goldenimage/b111a@sysunconfig vpool/domain1/disk_image
bash-3.00# zfs list
NAME USED AVAIL REFER MOUNTPOINT
vpool 25.3G 175G 1.66M /vpool
vpool/domain1 18K 175G 18K /vpool/domain1
vpool/domain1/disk_image 0 175G 5.32G -
vpool/goldenimage 25.3G 175G 18K /vpool/goldenimage
vpool/goldenimage/b111a 25.3G 195G 5.32G -
vpool/goldenimage/b111a@sysunconfig 0 - 5.32G -
Step 8:
Create a new guest LDOM and point to this newly cloned disk
bash-3.00# /opt/SUNWldm/bin/ldm create domain1
bash-3.00# /opt/SUNWldm/bin/ldm set-mau 1 domain1
bash-3.00# /opt/SUNWldm/bin/ldm set-vcpu 4 domain1
bash-3.00# /opt/SUNWldm/bin/ldm set-mem 1024M domain1
bash-3.00# /opt/SUNWldm/bin/ldm add-vnet vnet1 primary-vsw0 domain1
bash-3.00# ls /dev/zvol/dsk/vpool/domain1
disk_image
bash-3.00# /opt/SUNWldm/bin/ldm add-vdsdev /dev/zvol/dsk/vpool/domain1/disk_image vol2@primary-vds0
bash-3.00# /opt/SUNWldm/bin/ldm add-vdisk vdisk1 vol2@primary-vds0 domain1
bash-3.00# /opt/SUNWldm/bin/ldm set-variable auto-boot?=false domain1
bash-3.00# /opt/SUNWldm/bin/ldm bind domain1
bash-3.00# /opt/SUNWldm/bin/ldm start domain1
LDom domain1 started
Step 9 : Log into the newly cloned LDOM
telnet localhost <port number>
from ok prompt : boot
Answer the sys-unconfig questions;
terminal type: dtterm
select dhcp,
domain:
nameserver:
ip of nameserver:
Sample output after answering questions:
System identification is completed.
rebooting system due to change(s) in /etc/default/init
syncing file systems... done
rebooting...
Resetting...
Sun Fire T200, No Keyboard
Copyright 2008 Sun Microsystems, Inc. All rights reserved.
OpenBoot 4.28.9, 1024 MB memory available, Serial #66694113.
Ethernet address 0:14:4f:f9:ab:e1, Host ID: 83f9abe1.
Boot device: disk File and args:
SunOS Release 5.11 Version snv_111a 64-bit
Copyright 1983-2009 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Hostname:
NIS domain name is
Reading ZFS config: done.
Mounting ZFS filesystems: (6/6)
console login: root
Password:
Last login: Tue May 12 12:42:37 on console
Sun Microsystems Inc. SunOS 5.11 snv_111a November 2008
root@jdub65:~#
Step 10 : Check zfs on domain
root@jdub65:~# zpool list
NAME SIZE USED AVAIL CAP HEALTH ALTROOT
rpool 19.9G 4.70G 15.2G 23% ONLINE -
Thats it. You have created a GOLDEN LDOM that you can clone from multiple times.

LDOM in your pocket...

Im currently looking at ways to make an (LDOM) OVM guest more portable.  I'm a massive fan of Virtualbox and love the fact that you can download an ovf, import it and within a few minutes have a live system running.  I know that there is not much demand for a portable OVM guest due to hardware restrictions but still it would be cool (nerdy).

Using cold and warm migration is fine but I'd like to be able to grab an OVM.ovf file from a repository, import into OVM and have a running system in a few minutes.  There are a few approaches to this such as using zfs snapshot and clone or just using a 16g chunk of disk, install the guest, sys-unconfig and then copy.  None of these are clean and simple.

From a testing perspective OVM is class especially when combined with ZFS.  If you haven't tried OVM or VirtualBox (Also works great with ZFS) I highly recommend both.

If anyone has any ideas, suggestions, thoughts or even better answers feel free to comment.

Tom