This discussion is archived
2 Replies Latest reply: Sep 3, 2013 1:13 PM by CyberNinja RSS

Issue installing a zone

CyberNinja Newbie
Currently Being Moderated

Hello,

I'm tring to install a zone via a script. I was able to get the 1st part done with this command.

 

zonecfg -z test "create -b; set zonepath=/export/zones/test; set autoboot=true; add net; set physical=e1000g0; set address1=10.1.1.232/24; end; verify; commit; exit"

 

The part I'm having issues with getting the sysidcfg file to work right when I boot the zone. The sysidcfg file will answer the questions you get after you boot the zone.

 

I get this error.

< sudo zlogin -C test

[Connected to zone 'test' console]

 

[NOTICE: Zone booting up]

 

 

SunOS Release 5.10 Version Generic_148888-05 64-bit

Copyright (c) 1983, 2013, Oracle and/or its affiliates. All rights reserved.

Hostname: test

  network_interface=e1000g0 {hostname=test protocol_ipv6=no}

  ^

e1000g0 is not a valid network interface  line 8 position 19


So I guess the error above is stopping the file from doing it's job. Can some one tell me what I'm doing wrong.

 

Links to pages I'm using for reference.

sysidcfg(4) (man pages section 4: File Formats)

Configuring, Verifying, and Committing a Zone - Oracle Solaris Administration: Oracle Solaris Zones, Oracle Solaris 10 Z…

How to Use an /etc/sysidcfg File to Perform the Initial Zone Configuration (System Administration Guide: Oracle Solaris C…

Solaris Zones

 

Copy of the sysidcfg file

< sudo cat /export/zones/test/root/etc/sysidcfg

keyboard=US-English
system_local=C
timezone=US/Eastern
name_service=NONE
timeserver=10.1.1.7
nfs4_domain=dynamic
terminal=dtterm
network_interface=e1000g0 {hostname=test protocol_ipv6=no}

 

root_password=$6$passwordhash

security_policy=NONE

 

See any errors in this file?

  • 1. Re: Issue installing a zone
    CyberNinja Newbie
    Currently Being Moderated

    Update,

    I changed the line from

    network_interface=e1000g0 {hostname=test protocol_ipv6=no}

    to

    network_interface=PRIMARY {hostname=test protocol_ipv6=no}

     

    The error is now gone but the file is still not working. I still get asked for info and the sysidcfg file is supposed to take care of that.

  • 2. Re: Issue installing a zone
    CyberNinja Newbie
    Currently Being Moderated

    Update

    I changed the sysidcfg file and now it works. I have posted the file below.

     

    cat /export/zones/test/root/etc/sysidcfg

    system_locale=en_US

    timezone=US/Eastern

    terminal=vt100

    timeserver=localhost

    root_password=$1passwordhash

    network_interface=PRIMARY {hostname=test

                            default_route=NONE

                            ip_address=10.1.1.232

                            netmask=255.255.254.0

                            protocol_ipv6=no}

    nfs4_domain=sun

    security_policy=NONE

    name_service=NONE

Legend

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