• Simple Zone Construction

    bash-3.00# zoneadm list -iv
    ID NAME STATUS PATH
    0 global running /
    11 foo running /export/zones/foo
    13 bar running /export/zones/bar
    bash-3.00# zonecfg -z fubar
    fubar: No such zone configured
    Use ‘create’ to begin configuring a new zone.

    zonecfg:fubar> create
    zonecfg:fubar> set zonepath=/export/zones/fubar
    zonecfg:fubar> set autoboot=true
    zonecfg:fubar> add net
    zonecfg:fubar:net> set physical=eth0
    zonecfg:fubar:net> set address=192.168.1.1
    zonecfg:fubar:net> end
    zonecfg:fubar> add attr
    zonecfg:fubar:attr> set name=comment
    zonecfg:fubar:attr> set type=string
    zonecfg:fubar:attr> set value=”FOOBED”
    zonecfg:fubar:attr> end
    zonecfg:fubar> verify
    zonecfg:fubar> commit
    zonecfg:fubar> exit

    bash-3.00# zoneadm -z fubar install

    Preparing to install zone .
    Creating list of files to copy from the global zone.
    Copying <2434> files to the zone.
    Initializing zone product registry.
    Determining zone package initialization order.
    Preparing to initialize <980> packages on the zone.
    Initialized <980> packages on zone.
    Zone is initialized.
    Installation of these packages generated warnings:
    The file contains a log of the zone installation.

    bash-3.00# zoneadm -z fubar boot

    bash-3.00# zlogin -C fubar


     Leave a reply




    *