Creating Zones in Solaris 10

September 22, 2008 Prasanna Kumar 4 comments

Zone is a virtual machine in solaris which isolates the processes. There are two kind of zones possible

1. Global zone

2. Non-Global zone ( or simply ‘zones’ or ‘containers’).

The Non-Global zones are made from the global zones. 

Now i gonna show, how to create zones in solaris 10. Lets get it started.

1. Create a separate filesystem for the zone if you want to….for my demo purpose, i’ll jus create a directory on my existing filesystem.

bash-3.00# mkdir /sunZone

bash-3.00# chmod 700 /sunZone/

2. Type in the following commands,

bash-3.00# zonecfg -z sunZone

sunZone: No such zone configured

Use ‘create’ to begin configuring a new zone.

zonecfg:sunZone> create

zonecfg:sunZone> set zonepath=/sunZone

zonecfg:sunZone> add net

zonecfg:sunZone:net> set physical=eri0

zonecfg:sunZone:net> set address=192.168.5.59

zonecfg:sunZone:net> end

zonecfg:sunZone> verify

zonecfg:sunZone> commit

zonecfg:sunZone> exit

3. You can also check all the configuration by typing info at the zone configuration mode.

zonecfg:sunZone> info

zonename: sunZone

zonepath: /sunZone/

brand: native

autoboot: false

bootargs:

pool:

limitpriv:

scheduling-class:

ip-type: shared

inherit-pkg-dir:

        dir: /lib

inherit-pkg-dir:

        dir: /platform

inherit-pkg-dir:

        dir: /sbin

inherit-pkg-dir:

        dir: /usr

net:

        address: 192.168.5.59

        physical: eri0

4. Now check whether the zone is created or not:

bash-3.00# zoneadm list -cv

  ID   NAME             STATUS           PATH                    BRAND    IP

   0   global            running           /                           native     shared

   -   sunZone        configured      /sunZone              native     shared

There is a zone state model in solaris which depicts the current state of the zone. In the above output, the staus is configured. In later part of the demo, this will change to installed and running.

IP is showing as shared coz the sunZone also is using the same NIC as the global zone. One other possible value for the IP type is exclusive.

5. Now lets install the configured zone:

bash-3.00# zoneadm -z sunZone install

Preparing to install zone <sunZone>.

Creating list of files to copy from the global zone.

Copying <2552> files to the zone.

Initializing zone product registry.

Determining zone package initialization order.

Preparing to initialize <1113> packages on the zone.

Initializing package <426> of <1113>: percent complete: 38%

-

-

-

- This will go on for a while

-

-

Initialized <1113> packages on zone.

Zone <sunZone> is initialized.

The file </sunZone/root/var/sadm/system/logs/install_log> contains a log of the zone installation.

6. Check the status of the zone:
bash-3.00# zoneadm list -cv

 ID   NAME             STATUS           PATH                 BRAND    IP

   0   global            running           /                       native     shared

   -   sunZone        installed      /sunZone              native     shared

7. Boot the zone:

bash-3.00# zoneadm -z sunZone boot

now check the status, its should be in running.

8. Login to zone:

bash-3.00# zlogin -C sunZone

This will take u to the configuration steps like, root password, time zone, language etc., 

finish all the steps, you are done creating your first zone.

9. Logout from the zone.

press ‘ ~.

 

Google Chrome Offline Installer

September 4, 2008 Prasanna Kumar Leave a comment

Here is the link for the Google Chrome web browser :

Download Google Chrome Installer – size – 7.34 MB

I am already a big fan of chrome. This browser rocks!!! :) ……… 

* GUI is excellent

* Its a treat for the power users. :)

Categories: Google Chrome

Google IPv6 Conference 2008: IPv6, Nokia, and Google

Categories: IPv6

E-Book – Programming the Network with Perl – Wiley 2002

Categories: Home

Watch Heroes Online

Season 1 :

E1 – Genesis

E2 – Don’t look back

E3 – One Giant Leap

E4 – Collision

E5 – Hiros

E6 – Better Halves

E7 – Nothing to Hide

E8 – Seven Minutes to Midnight

E9 – Homecoming

E10 - Six Months Ago

E11 – Fallout

Categories: Heroes

NBC Heroes Countdown

Categories: Home

Perl program to convert hostnames to IPs

 
 

This little program will convert the list of hostnames inside the hostnames.txt to their respective IPs.

 
 

#!/usr/local/bin/perl

use Socket;

open(FILE,” hostnames.txt”);

die(“Couldn’t open the file”);

 
 

$name = <FILE>;

chop($name);

 
 

while($name ne “”){

$packed_address = gethostbyname($name); # returns ip in packed format.

unless($packed_address){

print “$name => ?\n”;

}

$unpacked_add = inet_ntoa($packed_address);

print “$name => $unpacked_add\n”;

$name = <FILE>;

chop($name);

}

 
 

Hostnames.txt

www.yahoo.com

prasannakumar.asdasdasd.com

www.google.com

 
 

Output :

www.yahoo.com => 209.191.93.52

prasannakumar.asdasdasd.com => ?

www.google.com => 66.52.32.12

  

Categories: Home

Little Poem

A grade 5 teacher one day asked the children in her class to make rhymes with their names

First up was Dan. A very adventurous child.

My name is Dan,
When I grow up to be a man,
I want to go to India and Japan ,
If I can, If I can, If I can.

“Very good”, the teacher said to Dan. She then asked Sally that it was now her turn.

My name is Sally,
When I grow up to be a lady,
I want to have a baby
If I can, if I can, if I can.

“That is good Sally,” the teacher said. “But maybe one day you will change your mind.”

Next up was john. He was the best one in the class. Here is his rhyme:

My name is john,
When I grow up to be a man,
Never mind India and Japan ,
I’m gonna help Sally with her plan,
I know I can, I can, I can.

 


 

Categories: Home

PhpScheduleIt

Administrative Features

  • Blackout times are easy to add and manage to restrict reservations.
  • User permissions allow the administrator to decide on what resources users can place reservations. This feature can be turned on or off from the configuration file.
  • Reservation minimum and maximum time limits can be set on a per-resource basis.
  • Administrator has power to add and manage an unlimited number of resources. All which can be toggled active and inactive at any point.
  • Administrator has control over all reservations and can browse, modify and delete any reservation in the system.
  • Resources can be set to require administrator approval for all reservations using the resource.
  • Mass email feature allows the administrator to send out a system-wide email to notify users of resource downtime or other important information.
  • Administrators can search through the reservation database with a very flexible search tool. Search results can be viewed as HTML, plain-text, XML or CSV.
  • Database data can be dumped to the screen in XML or CSV format.
  • Administrators can view a bar graph showing reservation statistics.
  • Complete logging feature logs all activity through the system.

User Features

  • Users can manage how and when they receive email notifications about their reservation activity.
  • Recurring reservations and reservation summaries are completely supported.
  • Support for multi-day reservations.
  • Users can invite and manage reservation participants.
  • A printer-formatted signup sheet can be printed for any resource.
  • Schedule is GUI based with easy to identify reservations.

Configuration Options

  • Time format, database server, email program and much more can be set in the config file.
  • The code is object-based and there is a strong attempt to maintain complete separation of business logic and presentation. This makes it easy to change the look and feel or functionality of the system. The provided phpDocumentor-generated documentation is complete and easy to follow for any PHP programmer.
Categories: Home

E-books – Computer and Networking

Category : Computer science and networking

site : ftp://194.44.214.3/pub/e-books/

Categories: Home