Revision [4150]
Last edited on 2011-09-13 19:10:03 by KenFongAdditions:
===Rebooting===
If the host needs a reboot, shutdown all zones with the halt command
zoneadm -z halt
If only the zone needs a reboot, use the reboot command
zoneadm -z reboot
If the host needs a reboot, shutdown all zones with the halt command
zoneadm -z
If only the zone needs a reboot, use the reboot command
zoneadm -z
Revision [3705]
Edited on 2010-04-29 19:10:35 by KenFongAdditions:
====Cloning a zone====
Export the config from the source zone. Then edit it to reflect the storage location and IP of the new zone
zonecfg -z vm1 export > vm2.cfg
vi vm2.cfg
Create the target zone with the edited config
zonecfg -z vm2 -f vm2.cfg
Shutdown the source zone and clone it to the target
zoneadm -z vm1 halt
zoneadm -z vm2 clone vm1
List zones
zoneadm list -vi
Boot up both zones, then login to the new zone and edit the various settings.
zoneadm -z vm2 boot
zlogin -C vm2
Export the config from the source zone. Then edit it to reflect the storage location and IP of the new zone
zonecfg -z vm1 export > vm2.cfg
vi vm2.cfg
Create the target zone with the edited config
zonecfg -z vm2 -f vm2.cfg
Shutdown the source zone and clone it to the target
zoneadm -z vm1 halt
zoneadm -z vm2 clone vm1
List zones
zoneadm list -vi
Boot up both zones, then login to the new zone and edit the various settings.
zoneadm -z vm2 boot
zlogin -C vm2
Revision [3700]
Edited on 2010-04-27 08:21:18 by KenFongAdditions:
pkg install SUNWtop
pkg install SUNWapch22
pkg install SUNWapch22
Deletions:
Revision [3699]
Edited on 2010-04-27 08:19:47 by KenFongAdditions:
7. Install package
pkg search top
pkg install SUNWtop@3.8-0.111
pkg search top
pkg install SUNWtop@3.8-0.111
Revision [3698]
Edited on 2010-04-27 08:17:42 by KenFongAdditions:
6. Get out of zlogin - Use the escape code ~.
vm1 console login: ~.
[Connection to zone 'vm1' console closed]
vm1 console login: ~.
[Connection to zone 'vm1' console closed]
Revision [3697]
Edited on 2010-04-27 08:13:41 by KenFongAdditions:
root@knote:~# zoneadm list -v
ID NAME STATUS PATH BRAND IP
0 global running / native shared
2 vm1 running /rpool/zone1 ipkg shared
ID NAME STATUS PATH BRAND IP
0 global running / native shared
2 vm1 running /rpool/zone1 ipkg shared
Deletions:
Revision [3696]
Edited on 2010-04-27 08:05:09 by KenFongAdditions:
zonecfg:vm1:net> set physical=iprb0 # vm1 will be using iprb0:1
Deletions:
Revision [3695]
Edited on 2010-04-27 08:02:18 by KenFongAdditions:
zoneadm -z vm1 boot
Deletions:
Revision [3694]
Edited on 2010-04-27 07:55:51 by KenFongAdditions:
{{parent page="HomePage"}}