Solaris 11 建立Non-GlobeZone
步驟 1: 組態一個 Oracle Solaris Zone
root@NIASc11:~# zonecfg -z LDAPc25Use 'create' to begin configuring a new zone.
zonecfg:LDAPc25> create
create: Using system default template 'SYSdefault'
zonecfg:LDAPc25> set zonepath=/rpool/LDAPc25
zonecfg:LDAPc25> set ip-type=exclusive
zonecfg:LDAPc25> add net
zonecfg:LDAPc25:net> set physical=vnic22
zonecfg:LDAPc25:net> end
zonecfg:LDAPc25> verify
zonecfg:LDAPc25> commit
zonecfg:LDAPc25> exit
root@NIASc11:~#
步驟 2: 檢視既有實體網路卡
root@NIASc11:/# dladm show-link
LINK CLASS MTU STATE OVER
net1 phys 1500 unknown --
net3 phys 1500 unknown --
net0 phys 1500 down --
net2 phys 1500 unknown --
net4 phys 1500 up --
步驟 3: 檢視既有的zone
root@NIASc11:/# zoneadm list -cv
ID NAME STATUS PATH BRAND IP
0 global running / solaris shared
- WPSc14 configured /rpool/WPSc14 solaris excl
root@NIASc11:/#
步驟 4: zone進行安裝
root@NIASc11:~# zonecfg -z LDAPc25
Use 'create' to begin configuring a new zone.
zonecfg:LDAPc25> create
create: Using system default template 'SYSdefault'
zonecfg:LDAPc25> set zonepath=/rpool/LDAPc25
zonecfg:LDAPc25> set ip-type=exclusive
zonecfg:LDAPc25> add net
zonecfg:LDAPc25:net> set physical=vnic22
zonecfg:LDAPc25:net> end
zonecfg:LDAPc25> verify
zonecfg:LDAPc25> commit
zonecfg:LDAPc25> exit
root@NIASc11:~#
root@NIASc11:~# zonecfg -z LDAPc25
zonecfg:LDAPc25>
zonecfg:LDAPc25> exit
root@NIASc11:~# zonecfg -z LDAPc25 info
zonename: LDAPc25
zonepath: /rpool/LDAPc25
brand: solaris
autoboot: false
bootargs:
file-mac-profile:
pool:
limitpriv:
scheduling-class:
ip-type: exclusive
hostid:
fs-allowed:
net:
address not specified
allowed-address not specified
configure-allowed-address: true
physical: vnic22
defrouter not specified
anet:
linkname: net0
lower-link: auto
allowed-address not specified
configure-allowed-address: true
defrouter not specified
allowed-dhcp-cids not specified
link-protection: mac-nospoof
mac-address: random
mac-prefix not specified
mac-slot not specified
vlan-id not specified
priority not specified
rxrings not specified
txrings not specified
mtu not specified
maxbw not specified
rxfanout not specified
vsi-typeid not specified
vsi-vers not specified
vsi-mgrid not specified
etsbw-lcl not specified
cos not specified
pkey not specified
linkmode not specified
root@NIASc11:~# zoneadm -z LDAPc25 install
The following ZFS file system(s) have been created:
rpool/LDAPc25
Progress being logged to /var/log/zones/zoneadm.20150108T013249Z.LDAPc25.install
Image: Preparing at /rpool/LDAPc25/root.
AI Manifest: /tmp/manifest.xml.dIamYh
SC Profile: /usr/share/auto_install/sc_profiles/enable_sci.xml
Zonename: LDAPc25
Installation: Starting ...
Creating IPS image
Startup linked: 1/1 done
Installing packages from:
solaris
origin: http://localhost:1008/solaris/0510c4fdfd843bf4a51917054b0f1333bf49ac1c/
origin: http://localhost:1008/solaris/33e7b8fb0407c4db142ba0b7e9f2a8f70fb128cd/
DOWNLOAD PKGS FILES XFER (MB) SPEED
Completed 187/187 34347/34347 248.9/248.9 1.6M/s
PHASE ITEMS
Installing new actions 48240/48240
Updating package state database Done
Updating image state Done
Creating fast lookup database Done
Installation: Succeeded
Note: Man pages can be obtained by installing pkg:/system/manual
done.
Done: Installation completed in 569.785 seconds.
Next Steps: Boot the zone, then log into the zone console (zlogin -C)
to complete the configuration process.
Log saved in non-global zone as /rpool/LDAPc25/root/var/log/zones/zoneadm.20150108T013249Z.LDAPc25.install
root@NIASc11:~# zoneadm list -iv
ID NAME STATUS PATH BRAND IP
0 global running / solaris shared
3 WPSc14 running /rpool/WPSc14 solaris excl
- LDAPc25 installed /rpool/LDAPc25 solaris excl
root@NIASc11:~# zoneadm -z LDAPc25 boot
root@NIASc11:~#
root@NIASc11:~# zoneadm list -v
ID NAME STATUS PATH BRAND IP
0 global running / solaris shared
3 WPSc14 running /rpool/WPSc14 solaris excl
4 LDAPc25 running /rpool/LDAPc25 solaris excl
root@NIASc11:~# zlogin -C LDAPc25
[Connected to zone 'LDAPc25' console]
115/115
System Configuration Tool
System Configuration Tool enables you to specify the following
configuration parameters for your newly-installed Oracle Solaris 11
system:
- network, time zone, user and root accounts, name services
System Configuration Tool produces an SMF profile file in
/system/volatile/scit_profile.xml.
How to navigate through this tool:
- Use the function keys listed at the bottom of each screen to move
from screen to screen and to perform other operations.
- Use the up/down arrow keys to change the selection or to move
between input fields.
- If your keyboard does not have function keys, or they do not
respond, press ESC; the legend at the bottom of the screen will
change to show the ESC keys for navigation and other functions.
F2_Continue F6_Help F9_Quit
Use 'create' to begin configuring a new zone.
zonecfg:LDAPc25> create
create: Using system default template 'SYSdefault'
zonecfg:LDAPc25> set zonepath=/rpool/LDAPc25
zonecfg:LDAPc25> set ip-type=exclusive
zonecfg:LDAPc25> add net
zonecfg:LDAPc25:net> set physical=vnic22
zonecfg:LDAPc25:net> end
zonecfg:LDAPc25> verify
zonecfg:LDAPc25> commit
zonecfg:LDAPc25> exit
root@NIASc11:~#
root@NIASc11:~# zonecfg -z LDAPc25
zonecfg:LDAPc25>
zonecfg:LDAPc25> exit
root@NIASc11:~# zonecfg -z LDAPc25 info
zonename: LDAPc25
zonepath: /rpool/LDAPc25
brand: solaris
autoboot: false
bootargs:
file-mac-profile:
pool:
limitpriv:
scheduling-class:
ip-type: exclusive
hostid:
fs-allowed:
net:
address not specified
allowed-address not specified
configure-allowed-address: true
physical: vnic22
defrouter not specified
anet:
linkname: net0
lower-link: auto
allowed-address not specified
configure-allowed-address: true
defrouter not specified
allowed-dhcp-cids not specified
link-protection: mac-nospoof
mac-address: random
mac-prefix not specified
mac-slot not specified
vlan-id not specified
priority not specified
rxrings not specified
txrings not specified
mtu not specified
maxbw not specified
rxfanout not specified
vsi-typeid not specified
vsi-vers not specified
vsi-mgrid not specified
etsbw-lcl not specified
cos not specified
pkey not specified
linkmode not specified
root@NIASc11:~# zoneadm -z LDAPc25 install
The following ZFS file system(s) have been created:
rpool/LDAPc25
Progress being logged to /var/log/zones/zoneadm.20150108T013249Z.LDAPc25.install
Image: Preparing at /rpool/LDAPc25/root.
AI Manifest: /tmp/manifest.xml.dIamYh
SC Profile: /usr/share/auto_install/sc_profiles/enable_sci.xml
Zonename: LDAPc25
Installation: Starting ...
Creating IPS image
Startup linked: 1/1 done
Installing packages from:
solaris
origin: http://localhost:1008/solaris/0510c4fdfd843bf4a51917054b0f1333bf49ac1c/
origin: http://localhost:1008/solaris/33e7b8fb0407c4db142ba0b7e9f2a8f70fb128cd/
DOWNLOAD PKGS FILES XFER (MB) SPEED
Completed 187/187 34347/34347 248.9/248.9 1.6M/s
PHASE ITEMS
Installing new actions 48240/48240
Updating package state database Done
Updating image state Done
Creating fast lookup database Done
Installation: Succeeded
Note: Man pages can be obtained by installing pkg:/system/manual
done.
Done: Installation completed in 569.785 seconds.
Next Steps: Boot the zone, then log into the zone console (zlogin -C)
to complete the configuration process.
Log saved in non-global zone as /rpool/LDAPc25/root/var/log/zones/zoneadm.20150108T013249Z.LDAPc25.install
root@NIASc11:~# zoneadm list -iv
ID NAME STATUS PATH BRAND IP
0 global running / solaris shared
3 WPSc14 running /rpool/WPSc14 solaris excl
- LDAPc25 installed /rpool/LDAPc25 solaris excl
root@NIASc11:~# zoneadm -z LDAPc25 boot
root@NIASc11:~#
root@NIASc11:~# zoneadm list -v
ID NAME STATUS PATH BRAND IP
0 global running / solaris shared
3 WPSc14 running /rpool/WPSc14 solaris excl
4 LDAPc25 running /rpool/LDAPc25 solaris excl
root@NIASc11:~# zlogin -C LDAPc25
[Connected to zone 'LDAPc25' console]
115/115
System Configuration Tool
System Configuration Tool enables you to specify the following
configuration parameters for your newly-installed Oracle Solaris 11
system:
- network, time zone, user and root accounts, name services
System Configuration Tool produces an SMF profile file in
/system/volatile/scit_profile.xml.
How to navigate through this tool:
- Use the function keys listed at the bottom of each screen to move
from screen to screen and to perform other operations.
- Use the up/down arrow keys to change the selection or to move
between input fields.
- If your keyboard does not have function keys, or they do not
respond, press ESC; the legend at the bottom of the screen will
change to show the ESC keys for navigation and other functions.
F2_Continue F6_Help F9_Quit
沒有留言:
張貼留言