Version 3.1-enSolaris 10 Container Guide - 3.1 A. Solaris Container in OpenSolaris

Effective: 30/11/2009

A.1. Cookbook: Configuring an ipkg zone

 

The configuration of the zone is done as usual with zonecfg(1M).

root@cantaloup:~# zonecfg -z keetonga keetonga: No such zone configured

Use 'create' to begin configuring a new zone. zonecfg:keetonga> create zonecfg:keetonga> set zonepath=/zones/keetonga zonecfg:keetonga> add net zonecfg:keetonga:net> set physical=e1000g0 zonecfg:keetonga:net> set address=192.168.1.21/24 zonecfg:keetonga:net> end

zonecfg:keetonga> info zonename: keetonga zonepath: /zones/keetonga brand: ipkg

autoboot: false bootargs: pool: limitpriv: scheduling-class: ip-type: shared hostid:

net:

address: 192.168.1.21/24

physical: e1000g0 defrouter not specified

zonecfg:keetonga> verify zonecfg:keetonga> commit zonecfg:keetonga> exit

zoneadm list displays the ipkg brand.

root@cantaloup:~# zoneadm

list -cv

 

 

ID

NAME

STATUS

PATH

BRAND

IP

0

global

running

/

native

shared

-

keetonga

configured

/zones/keetonga

ipkg

shared

A.2. Cookbook: Installing an ipkg zone

root@cantaloup:~# zoneadm -z keetonga install

A ZFS file system has been created for this zone.

Publisher:

Using opensolaris.org (http://pkg.opensolaris.org/release/).

Image:

Preparing at /zones/keetonga/root.

Cache:

Using /var/pkg/download.

 

Sanity Check:

Looking for 'entire' incorporation.

Installing:

Core System (output follows)

 

DOWNLOAD

PKGS

FILES

XFER (MB)

Completed

20/20

3021/3021

42.55/42.55

PHASE

ACTIONS

 

 

Install Phase

5747/5747

 

Installing:

Additional Packages (output follows)

DOWNLOAD

PKGS

FILES

XFER (MB)

Completed

37/37

5598/5598

32.52/32.52

PHASE

ACTIONS

 

 

Install Phase

7332/7332

 

Note:

Man pages can be obtained by installing SUNWman

Postinstall:

Copying SMF seed repository ... done.

Postinstall:

Applying workarounds.

 

 

Done:

Installation completed in 648,952 seconds.

Next Steps: Boot the zone, then log into the zone console (zlogin -C) to complete the configuration process

root@cantaloup:~#

113

Page 120
Image 120
Sun Microsystems 10 manual Cookbook Configuring an ipkg zone, Cookbook Installing an ipkg zone, 113