Creating and installing zones
Please note that going forward we can use the “clone” command to replicate zones once we have made one non-global zone.
bash-3.00# zonecfg -z zone1
ts04_zone1: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:ts04_zone1> create -b
zonecfg:ts04_zone1> info
zonename: zone1
zonepath:
brand: native
autoboot: false
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: shared
zonecfg:ts04_zone1> set zonepath=/zones/zone1
zonecfg:ts04_zone1> set autoboot=true
zonecfg:ts04_zone1> set zonename=slurm1
zonecfg:ts04_zone1> add net
zonecfg:ts04_zone1:net> set address=xx.xx.xx.xx
zonecfg:ts04_zone1:net> set physical=hme0
zonecfg:ts04_zone1:net> end
zonecfg:ts04_zone1> add capped-memory
zonecfg:ts04_zone1:capped-memory> set physical=1792m
zonecfg:ts04_zone1:capped-memory> set swap=2048m
zonecfg:ts04_zone1:capped-memory> end
zonecfg:ts04_zone1> verify
zonecfg:ts04_zone1> export
create -b
set zonepath=/zones/zone1
set autoboot=true
set ip-type=shared
add net
set address=xx.xx.xx.xx
set physical=hme0
end
add capped-memory
set physical=1.8G
end
zonecfg:ts04_zone1> commit
zonecfg:ts04_zone1> export -f /zones/config_zones/slurm.cfg
zonecfg:ts04_zone1> exit
bash-3.00#
bash-3.00# chmod 700 /zones/zone1
bash-3.00# zoneadm -z zone1 verify
bash-3.00# zoneadm -z zone1 install
Next Step:
Then create the sysidcfg file:
hostA-global# cat > /zones/zone1/root/etc/sysidcfg
name_service=NONE
network_interface=primary {
netmask=xx.xx.xx.xx
default_route=xx.xx.xx.xx
protocol_ipv6=no
}
security_policy=NONE
root_password=xxxxxxxxxxx
system_locale=en_IE
timezone=Eire
timeserver=xx.xx.xx.xx
terminal=vt100
Next step:
touch /zones/zone1/root/etc/.NFS4inst_state.domain
Once the zones are installed run the following commands:
zoneadm -z zone1 boot
Do the above for all new zones
Login to console of global zone and do the following:
zlogin -C zone1
Then install the OS
No comments:
Post a Comment