This discussion is archived
2 Replies Latest reply: Nov 14, 2012 7:41 AM by Paisley RSS

Cannot create zone

974096 Newbie
Currently Being Moderated
Hi, I am trying to create a zone, but there is a problem, there are some missing files in /etc/ like /etc/inittab...

Here are the steps:

root@gzone00 # zonecfg -z pam03
zonecfg:pam03> create
zonecfg:pam03> set zonepath=/zonepool/pam03
zonecfg:pam03> set autoboot=true
zonecfg:pam03> verify
zonecfg:pam03> add net
zonecfg:pam03:net> set address=200.34.12.110/25
zonecfg:pam03:net> set physical=igb2
zonecfg:pam03:net> set defrouter=200.34.12.4
zonecfg:pam03:net> end
zonecfg:pam03> verify
zonecfg:pam03> commit
zonecfg:pam03> exit


root@gzone00 # zoneadm -z pam03 install
A ZFS file system has been created for this zone.
Preparing to install zone <pam03>.
Creating list of files to copy from the global zone.
Copying <2994> files to the zone.
Initializing zone product registry.
Determining zone package initialization order.
Preparing to initialize <1149> packages on the zone.
Initialized <1149> packages on zone.
Zone <pam03> is initialized.
Installation of these packages generated errors: <SUNWcar SUNWcsl SUNWcsr SUNWcsu SUNWckr SUNWesu SUNWgss SUNWcslr SUNWpostgr-82-server-data-root SUNWpmu SUNWnfscr SUNWnfsckr SUNWnfscu SUNWnfssu SUNWpostgr-83-server-data-root SUNWssad SUNWzfskr SUNWzfsr SUNWzfsu SUNWzoneu SUNWs9brandr SUNWnfsskr SUNWmptsas SUNWmdbr SUNWn2cp SUNWftdur SUNWmdb SUNWpdu SUNWpd SUNWhea SUNWftpr SUNWust2 SUNWfss SUNWdtrc SUNWdtrp SUNWust1>
Installation of <3> packages was skipped.
Installation of these packages generated warnings: <SUNWsmbar>
The file </zonepool/pam03/root/var/sadm/system/logs/install_log> contains a log of the zone installation.



root@gzone00 # zoneadm -z pam03 boot
root@gzone00 # zlogin -C pam03
[Connected to zone 'pam03' console]


INIT: Cannot stat /etc/inittab, errno: 2

INIT: Absent svc.startd entry or bad contract template. Not starting svc.startd.
Requesting maintenance mode
(See /lib/svc/share/README for additional information.)

*** Unable to retrieve `root' entry in shadow password file ***

Entering System Maintenance Mode

# #





Any ideas whats the problem?
  • 1. Re: Cannot create zone
    974096 Newbie
    Currently Being Moderated
    *** package <SUNWcakr> was not installed:

    The package <SUNWcakr> is either not fully installed in the
    global zone, or the package contains a request script. Only packages
    that are fully installed in the global zone and that do not contain a
    request script can be installed when a new zone is created. If this
    package does not contain a request script, you can correct this
    problem by removing and reinstalling the package in the global zone.

    *** package <CTEact> was not installed:

    The package <CTEact> is registered to be installed in the
    global zone only. The package may have been installed in the global
    zone using the pkgadd '-G' option, or the package may contain a
    request script, or the package may directly set the package attribute
    SUNW_PKG_THISZONE=true in the pkginfo file.

    *** package <SUNWrda> was not installed:

    The package <SUNWrda> is registered to be installed in the
    global zone only. The package may have been installed in the global
    zone using the pkgadd '-G' option, or the package may contain a
    request script, or the package may directly set the package attribute
    SUNW_PKG_THISZONE=true in the pkginfo file.

    *** package <SUNWexplo> was not installed:

    The package <SUNWexplo> is registered to be installed in the
    global zone only. The package may have been installed in the global
    zone using the pkgadd '-G' option, or the package may contain a
    request script, or the package may directly set the package attribute
    SUNW_PKG_THISZONE=true in the pkginfo file.

    *** package <SUNWexplu> was not installed:

    The package <SUNWexplu> is registered to be installed in the
    global zone only. The package may have been installed in the global
    zone using the pkgadd '-G' option, or the package may contain a
    request script, or the package may directly set the package attribute
    SUNW_PKG_THISZONE=true in the pkginfo file.

    *** package <SUNWsneep> was not installed:

    The package <SUNWsneep> is either not fully installed in the
    global zone, or the package contains a request script. Only packages
    that are fully installed in the global zone and that do not contain a
    request script can be installed when a new zone is created. If this
    package does not contain a request script, you can correct this
    problem by removing and reinstalling the package in the global zone.

    *** package <EMCpower> was not installed:

    The package <EMCpower> is either not fully installed in the
    global zone, or the package contains a request script. Only packages
    that are fully installed in the global zone and that do not contain a
    request script can be installed when a new zone is created. If this
    package does not contain a request script, you can correct this
    problem by removing and reinstalling the package in the global zone.


    *** package <SUNWcar> failed to install - interrupted:

    pkgadd: ERROR: packaging file </var/sadm/pkg/SUNWcar/save/pspool/SUNWcar/pkginfo> is corrupt
    file size <10539> expected <11118> actual

    Installation of <SUNWcar> on zone <pam03> failed (internal error).
    No changes were made to the system.



    *** package <SUNWcsl> failed to install - interrupted:

    pkgadd: ERROR: packaging file </var/sadm/pkg/SUNWcsl/save/pspool/SUNWcsl/pkginfo> is corrupt
    file size <21173> expected <21752> actual

    Installation of <SUNWcsl> on zone <pam03> failed (internal error).
    No changes were made to the system.


    *** package <SUNWcsr> failed to install - interrupted:

    pkgadd: ERROR: packaging file </var/sadm/pkg/SUNWcsr/save/pspool/SUNWcsr/pkginfo> is corrupt
    file size <26953> expected <27667> actual

    Installation of <SUNWcsr> on zone <pam03> failed (internal error).
    No changes were made to the system.


    *** package <SUNWcsu> failed to install - interrupted:

    pkgadd: ERROR: packaging file </var/sadm/pkg/SUNWcsu/save/pspool/SUNWcsu/pkginfo> is corrupt
    file size <29667> expected <30381> actual

    Installation of <SUNWcsu> on zone <pam03> failed (internal error).
    No changes were made to the system.


    *** package <SUNWckr> failed to install - interrupted:

    pkgadd: ERROR: packaging file </var/sadm/pkg/SUNWckr/save/pspool/SUNWckr/pkginfo> is corrupt
    file size <23603> expected <24182> actual

    Installation of <SUNWckr> on zone <pam03> failed (internal error).
    No changes were made to the system.


    *** package <SUNWesu> failed to install - interrupted:

    pkgadd: ERROR: packaging file </var/sadm/pkg/SUNWesu/save/pspool/SUNWesu/pkginfo> is corrupt
    file size <18511> expected <19090> actual

    Installation of <SUNWesu> on zone <pam03> failed (internal error).
    No changes were made to the system.


    *** package <SUNWgss> failed to install - interrupted:

    pkgadd: ERROR: packaging file </var/sadm/pkg/SUNWgss/save/pspool/SUNWgss/pkginfo> is corrupt
    file size <6736> expected <7315> actual

    Installation of <SUNWgss> on zone <pam03> failed (internal error).
    No changes were made to the system.


    *** package <SUNWsmbar> installed with warnings:

    pkgadd: ERROR: preinstall script did not complete successfully

    Installation of <SUNWsmbar> on zone <pam03> partially failed.



    *** package <SUNWcslr> failed to install - interrupted:

    pkgadd: ERROR: packaging file </var/sadm/pkg/SUNWcslr/save/pspool/SUNWcslr/pkginfo> is corrupt
    file size <20293> expected <20872> actual

    Installation of <SUNWcslr> on zone <pam03> failed (internal error).
    No changes were made to the system.


    *** package <SUNWpostgr-82-server-data-root> failed to install with fatal errors:

    Error: No "postgres" uid and/or gid found.
    Please install the patch for 6438076 (Add default uid/group for Postgres).
    The patch needed is 125367-01 for SPARC and 125368-01 for x86 systems.
    pkgadd: ERROR: checkinstall script did not complete successfully

    Installation of <SUNWpostgr-82-server-data-root> on zone <pam03>
    failed.
    No changes were made to the system.



    *** package <SUNWpmu> failed to install - interrupted:

    pkgadd: ERROR: packaging file </var/sadm/pkg/SUNWpmu/save/pspool/SUNWpmu/pkginfo> is corrupt
    file size <10602> expected <11181> actual

    Installation of <SUNWpmu> on zone <pam03> failed (internal error).
    No changes were made to the system.


    *** package <SUNWnfscr> failed to install - interrupted:

    pkgadd: ERROR: packaging file </var/sadm/pkg/SUNWnfscr/save/pspool/SUNWnfscr/pkginfo> is corrupt
    file size <13674> expected <14253> actual

    Installation of <SUNWnfscr> on zone <pam03> failed (internal error).
    No changes were made to the system.


    *** package <SUNWnfsckr> failed to install - interrupted:

    pkgadd: ERROR: packaging file </var/sadm/pkg/SUNWnfsckr/save/pspool/SUNWnfsckr/pkginfo> is corrupt
    file size <17821> expected <18400> actual

    Installation of <SUNWnfsckr> on zone <pam03> failed (internal error).
    No changes were made to the system.


    *** package <SUNWnfscu> failed to install - interrupted:

    pkgadd: ERROR: packaging file </var/sadm/pkg/SUNWnfscu/save/pspool/SUNWnfscu/pkginfo> is corrupt
    file size <16548> expected <17127> actual

    Installation of <SUNWnfscu> on zone <pam03> failed (internal error).
    No changes were made to the system.


    *** package <SUNWnfssu> failed to install - interrupted:

    pkgadd: ERROR: packaging file </var/sadm/pkg/SUNWnfssu/save/pspool/SUNWnfssu/pkginfo> is corrupt
    file size <18022> expected <18685> actual

    Installation of <SUNWnfssu> on zone <pam03> failed (internal error).
    No changes were made to the system.


    *** package <SUNWpostgr-83-server-data-root> failed to install with fatal errors:

    grep: can't open /zonepool/pam03/root/etc/passwd
    Error: 'postgres' user not found.
    Please install the patch for 6438076 (Add default uid/group for Postgres).
    The patch needed is 125367-01 for SPARC and 125368-01 for x86 systems.
    pkgadd: ERROR: checkinstall script did not complete successfully

    Installation of <SUNWpostgr-83-server-data-root> on zone <pam03>
    failed.
    No changes were made to the system.


    *** package <SUNWssad> failed to install - interrupted:

    pkgadd: ERROR: packaging file </var/sadm/pkg/SUNWssad/save/pspool/SUNWssad/pkginfo> is corrupt
    file size <18263> expected <18842> actual

    Installation of <SUNWssad> on zone <pam03> failed (internal error).
    No changes were made to the system.


    *** package <SUNWzfskr> failed to install - interrupted:

    pkgadd: ERROR: packaging file </var/sadm/pkg/SUNWzfskr/save/pspool/SUNWzfskr/pkginfo> is corrupt
    file size <15033> expected <15612> actual

    Installation of <SUNWzfskr> on zone <pam03> failed (internal error).
    No changes were made to the system.


    *** package <SUNWzfsr> failed to install - interrupted:

    pkgadd: ERROR: packaging file </var/sadm/pkg/SUNWzfsr/save/pspool/SUNWzfsr/pkginfo> is corrupt
    file size <15016> expected <15595> actual

    Installation of <SUNWzfsr> on zone <pam03> failed (internal error).
    No changes were made to the system.


    *** package <SUNWzfsu> failed to install - interrupted:

    pkgadd: ERROR: packaging file </var/sadm/pkg/SUNWzfsu/save/pspool/SUNWzfsu/pkginfo> is corrupt
    file size <15021> expected <15600> actual

    Installation of <SUNWzfsu> on zone <pam03> failed (internal error).
    No changes were made to the system.


    *** package <SUNWzoneu> failed to install - interrupted:

    pkgadd: ERROR: packaging file </var/sadm/pkg/SUNWzoneu/save/pspool/SUNWzoneu/pkginfo> is corrupt
    file size <14306> expected <14885> actual

    Installation of <SUNWzoneu> on zone <pam03> failed (internal error).
    No changes were made to the system.


    *** package <SUNWs9brandr> failed to install - interrupted:

    pkgadd: ERROR: packaging file </var/sadm/pkg/SUNWs9brandr/save/pspool/SUNWs9brandr/pkginfo> is corrupt
    file size <11727> expected <12306> actual

    Installation of <SUNWs9brandr> on zone <pam03> failed (internal
    error).
    No changes were made to the system.


    *** package <SUNWnfsskr> failed to install - interrupted:

    pkgadd: ERROR: packaging file </var/sadm/pkg/SUNWnfsskr/save/pspool/SUNWnfsskr/pkginfo> is corrupt
    file size <14523> expected <15102> actual

    Installation of <SUNWnfsskr> on zone <pam03> failed (internal error).
    No changes were made to the system.


    *** package <SUNWmptsas> failed to install - interrupted:

    pkgadd: ERROR: packaging file </var/sadm/pkg/SUNWmptsas/save/pspool/SUNWmptsas/pkginfo> is corrupt
    file size <7265> expected <7844> actual

    Installation of <SUNWmptsas> on zone <pam03> failed (internal error).
    No changes were made to the system.


    *** package <SUNWmdbr> failed to install - interrupted:

    pkgadd: ERROR: packaging file </var/sadm/pkg/SUNWmdbr/save/pspool/SUNWmdbr/pkginfo> is corrupt
    file size <17855> expected <18434> actual

    Installation of <SUNWmdbr> on zone <pam03> failed (internal error).
    No changes were made to the system.


    *** package <SUNWn2cp> failed to install - interrupted:

    pkgadd: ERROR: packaging file </var/sadm/pkg/SUNWn2cp/save/pspool/SUNWn2cp/pkginfo> is corrupt
    file size <9227> expected <9806> actual

    Installation of <SUNWn2cp> on zone <pam03> failed (internal error).
    No changes were made to the system.


    *** package <SUNWftdur> failed to install - interrupted:

    pkgadd: ERROR: packaging file </var/sadm/pkg/SUNWftdur/save/pspool/SUNWftdur/pkginfo> is corrupt
    file size <12830> expected <13409> actual

    Installation of <SUNWftdur> on zone <pam03> failed (internal error).
    No changes were made to the system.



    *** package <SUNWmdb> failed to install - interrupted:

    pkgadd: ERROR: packaging file </var/sadm/pkg/SUNWmdb/save/pspool/SUNWmdb/pkginfo> is corrupt
    file size <17796> expected <18375> actual

    Installation of <SUNWmdb> on zone <pam03> failed (internal error).
    No changes were made to the system.


    *** package <SUNWpdu> failed to install - interrupted:

    pkgadd: ERROR: packaging file </var/sadm/pkg/SUNWpdu/save/pspool/SUNWpdu/pkginfo> is corrupt
    file size <15601> expected <16180> actual

    Installation of <SUNWpdu> on zone <pam03> failed (internal error).
    No changes were made to the system.



    *** package <SUNWpd> failed to install - interrupted:

    pkgadd: ERROR: packaging file </var/sadm/pkg/SUNWpd/save/pspool/SUNWpd/pkginfo> is corrupt
    file size <16658> expected <17237> actual

    Installation of <SUNWpd> on zone <pam03> failed (internal error).
    No changes were made to the system.


    *** package <SUNWhea> failed to install - interrupted:

    pkgadd: ERROR: packaging file </var/sadm/pkg/SUNWhea/save/pspool/SUNWhea/pkginfo> is corrupt
    file size <22069> expected <22648> actual

    Installation of <SUNWhea> on zone <pam03> failed (internal error).
    No changes were made to the system.


    *** package <SUNWftpr> failed to install - interrupted:

    pkgadd: ERROR: packaging file </var/sadm/pkg/SUNWftpr/save/pspool/SUNWftpr/pkginfo> is corrupt
    file size <3774> expected <4353> actual

    Installation of <SUNWftpr> on zone <pam03> failed (internal error).
    No changes were made to the system.


    *** package <SUNWust2> failed to install - interrupted:

    pkgadd: ERROR: packaging file </var/sadm/pkg/SUNWust2/save/pspool/SUNWust2/pkginfo> is corrupt
    file size <12970> expected <13549> actual

    Installation of <SUNWust2> on zone <pam03> failed (internal error).
    No changes were made to the system.

    *** package <SUNWfss> failed to install - interrupted:

    pkgadd: ERROR: packaging file </var/sadm/pkg/SUNWfss/save/pspool/SUNWfss/pkginfo> is corrupt
    file size <8271> expected <8850> actual

    Installation of <SUNWfss> on zone <pam03> failed (internal error).
    No changes were made to the system.

    *** package <SUNWdtrc> failed to install - interrupted:

    pkgadd: ERROR: packaging file </var/sadm/pkg/SUNWdtrc/save/pspool/SUNWdtrc/pkginfo> is corrupt
    file size <17758> expected <18337> actual

    Installation of <SUNWdtrc> on zone <pam03> failed (internal error).
    No changes were made to the system.

    *** package <SUNWdtrp> failed to install - interrupted:

    pkgadd: ERROR: packaging file </var/sadm/pkg/SUNWdtrp/save/pspool/SUNWdtrp/pkginfo> is corrupt
    file size <12608> expected <13187> actual

    Installation of <SUNWdtrp> on zone <pam03> failed (internal error).
    No changes were made to the system.



    *** package <SUNWust1> failed to install - interrupted:

    pkgadd: ERROR: packaging file </var/sadm/pkg/SUNWust1/save/pspool/SUNWust1/pkginfo> is corrupt
    file size <17815> expected <18394> actual

    Installation of <SUNWust1> on zone <pam03> failed (internal error).
  • 2. Re: Cannot create zone
    Paisley Explorer
    Currently Being Moderated
    One solutiom might be to use live upgrade to create an alternate boot environment, and then use luupgrade. Missing packages/files will be added when you do the luupgrae. I have used this in the past to restore files and missing packages. You can upgrade to the same os version. This is pretty easy operation. If you have LU experience then it should only take about 90 minutes and would only required one reboot.

    Good Luck.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points