LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 04-02-2009, 04:12 AM   #1
ic_torres
Member
 
Registered: Nov 2005
Location: ABAP
Distribution: slackware 12.0, Vector Linux STD 6.0 and 5.8, ZenWalk 4.6.1, OpenBSD 3.9
Posts: 389

Rep: Reputation: 34
solaris zones: what is it for?


hi newbie here in solaris. . .just wondering, what's the easiest description of a solaris zone? i cannot really get the idea even in wiki.

tried doing one in my vm :

Code:
bash-3.00# zonecfg -z testzone
testzone: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:testzone> create
zonecfg:testzone> set zonepath=/zones/testzone
zonecfg:testzone> set autoboot=true
zonecfg:testzone> info
zonename: testzone
zonepath: /zones/testzone
brand: native
autoboot: true
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
zonecfg:testzone> verify
zonecfg:testzone> commit
zonecfg:testzone>
bash-3.00# zoneadm list -cv
  ID NAME             STATUS     PATH                           BRAND    IP
   0 global           running    /                              native   shared
   - testzone         configured /zones/testzone                native   shared
bash-3.00#

bash-3.00# zoneadm -z testzone install
Preparing to install zone <testzone>.
Creating list of files to copy from the global zone.
Copying <2455> files to the zone.
Initializing zone product registry.
Determining zone package initialization order.
Preparing to initialize <1020> packages on the zone.
Initialized <1020> packages on zone.
Zone <testzone> is initialized.
The file </zones/testzone/root/var/sadm/system/logs/install_log> contains a log of the zone installation.
bash-3.00# zoneadm list -cv
  ID NAME             STATUS     PATH                           BRAND    IP
   0 global           running    /                              native   shared
   - testzone         installed  /zones/testzone                native   shared
bash-3.00# zoneadm -z testzone ready
bash-3.00# zoneadm list -cv
  ID NAME             STATUS     PATH                           BRAND    IP
   0 global           running    /                              native   shared
   1 testzone         ready      /zones/testzone                native   shared




bash-3.00# zoneadm -z testzone boot
bash-3.00# zlogin -C testzone
[Connected to zone 'testzone' console]
138/138




also encountered the following errors:

System identification is completed.

rebooting system due to change(s) in /etc/default/init


[NOTICE: Zone rebooting]


SunOS Release 5.10 Version Generic_120012-14 32-bit
Copyright 1983-2007 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
Hostname: icey

icey console login: Apr  2 15:31:50 icey sendmail[8415]: My unqualified host name (localhost) unknown; sleeping for retry
Apr  2 15:32:50 icey sendmail[8415]: unable to qualify my own domain name (localhost) -- using short name
Apr  2 15:32:50 icey sendmail[8443]: My unqualified host name (localhost) unknown; sleeping for retry
Apr  2 15:32:50 icey sendmail[8444]: My unqualified host name (localhost) unknown; sleeping for retry
Apr  2 15:33:50 icey sendmail[8443]: unable to qualify my own domain name (localhost) -- using short name
Apr  2 15:33:50 icey sendmail[8444]: unable to qualify my own domain name (localhost) -- using short name
^C

icey console login: ^C
icey console login: ^C
icey console login: ~.
Password:
^C^CLogin incorrect
how can i "edit" my console login info?
how can i "exit" from the "console"?


note: i specified "icey" as the hostname, of course i gave a passwd, but upon login i don't know what's the user login. ..


my goal is to try installing/running solaris zones. .. and of course be familiar

Last edited by ic_torres; 04-02-2009 at 04:17 AM.
 
Old 04-02-2009, 08:23 AM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Hi.

A zone is a lightweight virtual host. It's a largely independent OS sitting inside the main Solaris OS.

how can i "edit" my console login info?
Just the same as you normally would - useradd, passwd, and all that. The zone has its own copy of /etc, so it has its own login database in /etc/passwd

how can i "exit" from the "console"?
If you logged in with 'zlogin -C <zone>', then you can do: ~. to exit the connection. Hit return, then do ~. and you should get out. Be aware, though, that the same key sequence drops SSH connections too.

upon login i don't know what's the user login. ..
It's 'root' and whatever password you supplied at the first boot of the zone.

Dave
 
Old 04-08-2009, 04:22 AM   #3
ic_torres
Member
 
Registered: Nov 2005
Location: ABAP
Distribution: slackware 12.0, Vector Linux STD 6.0 and 5.8, ZenWalk 4.6.1, OpenBSD 3.9
Posts: 389

Original Poster
Rep: Reputation: 34
Quote:
Originally Posted by ilikejam View Post
Hi.

A zone is a lightweight virtual host. It's a largely independent OS sitting inside the main Solaris OS.

how can i "edit" my console login info?
Just the same as you normally would - useradd, passwd, and all that. The zone has its own copy of /etc, so it has its own login database in /etc/passwd

how can i "exit" from the "console"?
If you logged in with 'zlogin -C <zone>', then you can do: ~. to exit the connection. Hit return, then do ~. and you should get out. Be aware, though, that the same key sequence drops SSH connections too.

upon login i don't know what's the user login. ..
It's 'root' and whatever password you supplied at the first boot of the zone.

Dave

hi, thanks thanks i have tried it now :

bash# zoneadm -z testzone boot -- do i have to boot always before logging in?

# zlogin -C testzone
[connetcted to zone 'testzone' console]


icey console login : root
passwd:


icey login: ROOT LOGIN /dev/console

Sun Microsystems Inc. SunOS 5.10 Generic January 2005
#

#~.
[connection to zone 'testzone' console closed]


in my own understanding as per my zone trial. . a zone is a "virtual OS" inside your existing OS? is it like that?
 
Old 04-08-2009, 06:21 AM   #4
crisostomo_enrico
Member
 
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Rep: Reputation: 35
Solaris containers and solaris zones are operating system level virtualization technologies, indeed.

I strongly suggest you google for it. Sun's BigAdmin website has many articles about the topic and I suggest you read the official zones documentation, too:
http://docs.sun.com/app/docs/doc/817-1592?l=en
 
Old 04-10-2009, 06:18 PM   #5
ic_torres
Member
 
Registered: Nov 2005
Location: ABAP
Distribution: slackware 12.0, Vector Linux STD 6.0 and 5.8, ZenWalk 4.6.1, OpenBSD 3.9
Posts: 389

Original Poster
Rep: Reputation: 34
Quote:
Originally Posted by crisostomo_enrico View Post
Solaris containers and solaris zones are operating system level virtualization technologies, indeed.

I strongly suggest you google for it. Sun's BigAdmin website has many articles about the topic and I suggest you read the official zones documentation, too:
http://docs.sun.com/app/docs/doc/817-1592?l=en

whoa whoa . .. nice doc! thanks. . btw i am in the process of letting a friend of mine print a Solaris10 all in one book document in pdf. .. hoping to have in binded in the next months. . .

having a hard time of reading ebooks. .it tires my eyes. . . i prefer reading a book instead
 
Old 04-11-2009, 04:22 AM   #6
crisostomo_enrico
Member
 
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Rep: Reputation: 35
The same thing happens to me: I cannot bear reading more than 2 pages on a monitor screen. Sun's documentation is pretty detailed and you might find it pretty "redundant": for every topic there is an introductory chapter, a task overview and then detailed steps. I usually examine the documentation first and then print only the relevant sections: two pages a sheet, double sided. You'll spare a good number of sheets and the environment will thank you, too, instead of printing the entire book.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Creating And Deleting Local Zones On Solaris 10 Unix LXer Syndicated Linux News 0 10-24-2008 12:10 PM
LXer: Solaris 10 5/08 Released: ZFS-Rooted Zones Getting Better! LXer Syndicated Linux News 0 10-16-2008 07:50 AM
LXer: Branded Linux Zones In Open Solaris? LXer Syndicated Linux News 0 08-01-2008 03:10 PM
LXer: Dealing With ZFS-Rooted Zones on Solaris 10 Unix LXer Syndicated Linux News 0 07-02-2008 07:30 AM
Is my solaris 10 with zones? xpucto Solaris / OpenSolaris 7 02-26-2006 10:20 AM


All times are GMT -5. The time now is 08:42 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration