RE: Using Smartfrog to create Solaris 10 Containers

"Dascalu, Daniel" <[email protected]>
Newsgroups gmane.comp.java.smartfrog.user
Message-ID <3F2D8E441D18A24B8818B024F31D714503E0D4C2@sdcexc01.emea.cpqcorp.net>
Hi Patrick,

 

Thanks for your reply. Hi Andrew,

 

Please find here the procedure to create a new zone in Solaris 10.
Solaris Zones mechanism provides separate environments on a machine and
logically isolates applications from one another. Each application
receives a dedicated namespace in which to run, and cannot see, monitor,
or affect applications running in another zone.

 

What I would like to know is whether this functionality can be created
-as a workflow- using Smartfrog. Could you please let me know?

 

"To configure and define a new zone: 

1.              Enter the zone configuration tool by using the
zonecfg(1M) command.

global# zonecfg -z email-zone

This will return the message No such zone configured before prompting
you to begin configuring a new zone, you are now in the zonecfg shell
that is identified by its prompt:"zonecfg:email-zone>". 

2.              Create a new zone definition with the create command.

zonecfg:email-zone> create

3.              Assign the zone to a file system, using the set zonepath
command.

zonecfg:email-zone> set zonepath=/export/home/zones/email-zone

. 

4.              Decide if the zone should boot automatically at system
boot time. Use the set autoboot command to specify this behavior.

zonecfg:my-zone> set autoboot=true

"True" indicates the zone should be booted at system boot time, while
"no" indicates it should not be booted automatically. 

5.              Configure networking parameters, using the add net
command and its subcommands.

zonecfg:email-zone> add net
zonecfg:email-zone:net> set address=10.0.0.1
zonecfg:email-zone:net> set physical=eri0
zonecfg:email-zone:net> end

In this example, the virtual network interface with IP address 10.0.0.1
is configured on the eri0 interface. 

6.              Assign the zone to the email pool.

zonecfg:email-zone> set pool=email-pool

7.              Verify the configuration is syntactically correct, using
the verify command.

zonecfg:email-zone> verify

This will only return a message if any errors in the configuration were
found. 

8.              Write the in-memory configuration to stable memory,
using the commit command, and then exit the shell

zonecfg:email-zone> commit zonecfg:email-zone> exit (or ^D [Ctrl d])

A standard zone automatically shares the /usr, /lib, /platform, and
/sbin file systems with the global zone. It is important to note that a
standard zone configuration mounts all global file systems as read-only.
As a result, an attempt to install an application to any of these
directories will fail. See the section Creating the First Web Server
Container(page 9) to learn how to mount a global zone file system with
write permissions in the directory in which the application is
installed. 

9.              Install the zone, using the zoneadm(1M) command.

global# zoneadm -z email-zone install
Preparing to install zone email-zone
Creating list of files to copy from the global zone.
[Some output was omitted here for brevity]
Zone email-zone is initialized.

This can take a few minutes. 

 

10.          Boot the zone, using the zoneadm(1M) boot command.

global# zoneadm -z email-zone boot

Since this is the first time the zone is booted after installation,
standard system identification questions must be answered. You must log
in to the zone's console to answer these questions."

Thanks,

 

Daniel

 

 

-----Original Message-----
From: Goldsack, Patrick 
Sent: 16 March 2006 16:15
To: Dascalu, Daniel; smartfrog-support-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: RE: [Smartfrog-support] Using Smartfrog to create Solaris 10
Containers

 

Daniel

Not being a frequent user of Solaris... I presume that the containers
are provisionable through the use of comand-lines and scripts - in which
case the answer is yes. We do not have such components already written
for you - but this would not be hard to do using the shell- command
components provided by SmartFrog - you will probbaly only need to
provide sf templates and not need to write any Java to do so. Actually,
this is one the the better documented parts of SmartFrog - see the
document sfShellScript.pdf for details.

 

If you need to run the scripts as root, you can either run SmartFrog as
root (if you dare!), or use setuid commands to carry out the tasks and
invoke these from a daemon running as another user. Either way, but most
expressly in the former case, I encourage you to use the security
features provided.

 

Patrick

 

________________________________

From: smartfrog-support-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
[mailto:smartfrog-support-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of
Dascalu, Daniel
Sent: 16 March 2006 15:22
To: smartfrog-support-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: [Smartfrog-support] Using Smartfrog to create Solaris 10
Containers
Importance: High

Hello,

Can Smartfrog be used to provision Solaris 10 Containers? 

Thanks,

Daniel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.