Create Solaris 10 Branded Zone on Exalogic
By Leo Yuen on Mar 11, 2012
In this entry, I will show you the steps to create a Solaris 10 branded zone on Exalogic.
1. Install the s10 Package:
First of all, login to the compute node where you are going to create a Solaris 10 branded zone, the host environment is called a global zone while the to be created brand zone is called a non-global zone.
Run the following command as root to install s10 package.
#pkg install system/zones/brand/s10
2. Create a ZFS File system for the Zone
Create a ZFS file system to hold the branded zone. In the following example, I’m using “/cpool” as the mountpoint.
#zfs create -o mountpoint=/cpool rpool/cpool
3. Create a VNIC for the Zone
To allow the zone to communicate over the Exalogic management network, a VNIC over igb0 should be created.
#dladm create-vnic -l igb0 s10zone0
4. Create template for Zone
Create a template file called /etc/zones/my-s10-zone.xml with the following content:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE zone PUBLIC "-//Sun Microsystems Inc//DTD Zones//EN" "file:///usr/share/lib/xml/dtd/zonecfg.dtd.1">
<zone name="s10-zone" zonepath="/cpool/s10-zone" autoboot="false" brand="solaris10" ip-type="exclusive" hostid="12345678">
5. Configure the Zone
Now we can configure the zone with the template we just created above.
#zonecfg -z s10-zone 'create -t my-s10-zone'
6. Install the Zone
Now we need a flash archive of a solaris 10 installation to install the zone.
You can run the following command in any solaris 10 x86 environment to create a flash archive.
#flarcreate -S -n solaris10 -L cpio /u01/common/images/solaris10
Instead of a physical environment, you may run the above command in a virtualbox running Solaris 10 x86.
You can find Oracle Solaris 10 8/11 Virtual Machine for Oracle VM VirtualBox here.
Once you have the flash archive ready, run the following command in the global zone.
#zoneadm -z s10-zone install -a /u01/common/images/solaris10 -u
7. Configure the Branded Zone
In the global zone, create a file called /cpool/s10-zone/root/etc/sysidcfg with the following content:
You may change hostname, ip_address etc according to your environment
The above root password is "solaris".
8. Boot the Zone
Run the following command to boot the zone.
#zoneadm -z s10-zone boot
Wait for a few minutes for the zone to boot up.
9. Login to the Zone’s console
Use the following command to login to the console of the newly created zone.
#zlogin -C s10-zone
Now you have a Solaris 10 branded zone up and running!
In next entry, I’ll show you how to add a network interface for your branded zone to connect to the shared storage over InfiniBand.