Oracle Blog

Arun Gupta's Weblog

TOTD #68: Installing Zones in Open Solaris 2008/11 on Virtual Box

The TOTD
#64 describes how to install Open Solaris2008/11
using Virtual Box.
This Tip Of The Day (TOTD) is going
to explain how to install non-global zones
(aka Solaris Containers) on this Open Solaris image. Containers provide
an operating-system level virtualization technology.

This blog is going to focus on installing couple of non-global
containers/zones in the Virtual Box image with all gory details. A
later blog will show how to leverage these zones to demonstrate GlassFish
High Availability.

Lets get started!

To begin with, there is one global zone always installed as shown below
(user
inputs highligted in bold):

- Host Name for e1000g0:1
------------------------------------------------------
Enter the host name which identifies this system on the
network. The name
must be unique within your domain; creating a duplicate host
name will cause
problems on the network after you install Solaris.

A host name must have at least one character; it can contain
letters,
digits, and minus signs (-).

Host name for e1000g0:1 zone1

- Confirm Information for e1000g0:1
--------------------------------------------
> Confirm the following information. If it
is correct, press F2;
to change any information, press F4.

Host name: zone1

No Kerberos ...

- Configure Security Policy:
---------------------------------------------------
Specify Yes if the system will use the Kerberos security
mechanism.

- Confirm Information
----------------------------------------------------------
> Confirm the following information. If it
is correct, press F2;
to change any information, press F4.

Configure Kerberos Security: No

Specify the name service, domain, and domain resolver ...

- Name Service
-----------------------------------------------------------------
On this screen you must provide name service
information. Select the name
service that will be used by this system, or None if your
system will either
not use a name service at all, or if it will use a name
service not listed
here.

> To make a selection, use the arrow keys to
highlight the option
and press Return to mark it [X].

Name service
------------
[ ] NIS+
[ ] NIS
[X] DNS
[ ] LDAP
[ ] None

- Domain Name
------------------------------------------------------------------
On this screen you must specify the domain where this system
resides. Make
sure you enter the name correctly including capitalization
and punctuation.

Domain name: sfbay.sun.com

- DNS Server Addresses
---------------------------------------------------------
On this screen you must enter the IP address of your DNS
server(s). You
must enter at least one address. IP addresses must
contain four sets of
numbers separated by periods (for example 129.200.9.1).

The value of IP address for your DNS server is copied from
"/etc/resolv.conf" in the global zone. Specify DNS search list and
confirm the information ...

- DNS Search List
--------------------------------------------------------------
On this screen you can enter a list of domains that will be
searched when a
DNS query is made. If you do not enter any
domains, DNS will only search
the DNS domain chosen for this system. The domains
entered, when
concatenated, may not be longer than 250 characters.

- Name Service Error
-----------------------------------------------------------
Unable to find an address entry for zone1 with the specified
DNS
configuration.

Enter new name
service information?
-----------------------------------
[ ] Yes
[X] No

Specify and confirm NFSv4 domain name ...

- NFSv4 Domain Name
------------------------------------------------------------
NFS version 4 uses a domain name that is automatically
derived from the
system's naming services. The derived domain name is
sufficient for most
configurations. In a few cases, mounts that cross domain
boundaries might
cause files to appear to be owned by "nobody" due to the
lack of a common
domain name.

The current NFSv4 default domain is: "sfbay.sun.com"

NFSv4 Domain
Configuration
----------------------------------------------
[X] Use the NFSv4
domain derived by the system
[ ] Specify a
different NFSv4 domain

- Confirm Information for NFSv4 Domain
-----------------------------------------
> Confirm the following information. If it
is correct, press F2;
to change any information, press F4.

NFSv4 Domain Name:
<< Value to be derived dynamically >>

Timezone ...

- Confirm Information
----------------------------------------------------------
> Confirm the following information. If it
is correct, press F2;
to change any information, press F4.