!!!Listing 1: VNIC in drei Schritten //Erzeugen einer virtuellen Network Interface Card auf Basis einer physikalischen// sol11box:.../~# dladm show-phys LINK MEDIA STATE SPEED DUPLEX DEVICE net0 Ethernet up 1000 full igb0 net1 Ethernet down 0 unknown igb1 net2 Ethernet down 0 unknown igb2 net3 Ethernet down 0 unknown igb3 sol11box:.../~# dladm create-vnic -l net0 vnic0 sol11box:.../~# dladm show-link LINK CLASS MTU STATE OVER net0 phys 1500 up -- net1 phys 1500 down -- net2 phys 1500 down -- net3 phys 1500 down -- vnic0 vnic 1500 up net0 //Erstellen eines IP-Interfaces für die VNIC// sol11box:.../~# ipadm create-ip vnic0 //Zuweisung einer statischen IP Adresse// sol11box:.../~# ipadm create-addr -T static -a 192.168.100.100/24 vnic0/nfs sol11box:.../~# ipadm show-addr ADDROBJ TYPE STATE ADDR lo0/v4 static ok 127.0.0.1/8 net0/v4 static ok 192.168.100.1/24 vnic0/nfs static ok 192.168.100.100/24 lo0/v6 static ok ::1/128 net0/v6 addrconf ok fe80::221:28ff:fefa:53d2/10 !!!Listing 2: AI legt Defaults an sol11box:.../~# installadm list Service Name Alias Of Status Arch Image Path ------------ -------- ------ ---- ---------- default-i386 s11-x86 on x86 /ai/target/s11-ga_x86 default-sparc s11-sparc on Sparc /ai/target/s11-ga_sparc s11-x86 - on x86 /ai/target/s11-ga_x86 s11-sparc - on Sparc /ai/target/s11-ga_sparc s11u1-x86 - on x86 /ai/target/s11u1-x86 s11u1-sparc - on Sparc /ai/target/s11u1-sparc !!!Listing 3: Individuelle Zuweisungen ... pkg:/entire@latest pkg:/group/system/solaris-large-server pkg:/archiver/unrar pkg:/benchmark/filebench pkg:/benchmark/iperf ... ... !!!Lsiting 4:Service Configuration Manifests !!!Listing 5: IPS-Steuerdatei: sol11box:.../ai# cat finish-ai-conf.manifest set name=pkg.fmri value=pkg://kiz.uni-ulm.de/kiz/finish-ai-conf@1.0,5.11 set name=pkg.description value="kiz post AI configuration" set name=description value="kiz post AI configuration" set name=pkg.summary value="kiz post AI configuration" depend fmri=network/ssh@0.5.11 type=require dir group=bin mode=0755 owner=root path=usr/local preserve=true dir group=bin mode=0755 owner=root path=usr/local/svc preserve=true dir group=bin mode=0755 owner=root path=usr/local/svc/method preserve=true file finish-ai-conf.sh group=bin mode=0755 owner=root path=usr/local/svc/method/finish-ai-conf.sh file finish-ai-conf.xml group=bin mode=0644 owner=root path=var/svc/manifest/site/finish-ai-conf.xml !!!Listing 6: Nach getaner Arbeit abschalten #!/usr/bin/bash # SMF Definitionen und Funktionen bereitstellen source /lib/svc/share/smf_include.sh # Abbruch bei allen nicht abgefangenen Fehlern set -e ... # alles OK, Service deaktivieren und neu starten svcadm disable site/finish-ai-conf ( sleep 5; reboot; ) & exit $SMF_EXIT_OK !!!Listing 7: Update am Clone sol11box:.../~# pkg update --be-name s11-sru5.5 Packages to update: 38 Create boot environment: Yes Create backup boot environment: No DOWNLOAD PKGS FILES XFER (MB) Completed 38/38 878/878 26.0/26.0 PHASE ACTIONS Removal Phase 100/100 Install Phase 135/135 Update Phase 2074/2074 PHASE ITEMS Package State Update Phase 76/76 Package Cache Update Phase 38/38 Image State Update Phase 2/2 A clone of s11-120224 exists and has been updated and activated. On the next boot the Boot Environment s11-sru5.5 will be mounted on '/'. Reboot when ready to switch to this updated BE. sol11box:.../~# beadm list BE Active Mountpoint Space Policy Created -- ------ ---------- ----- ------ ------- s11-1111 - - 20.06M static 2011-11-12 10:36 s11-120224 N / 3.26M static 2012-02-29 22:07 s11-sru5.5 R - 5.25G static 2012-05-01 15:55