Step |
Action |
Description |
1 |
Use zoneadm list on the global zone server to show status of zone |
# /usr/sbin/zoneadm list -vi |
On the global zone, use the zoneadm list -vi to show current status of all installed zones. If the zone to be started in single user is running. It must be shutdown using the zoneadm -z <zone name> halt command.
global# /usr/sbin/zoneadm list -vi
ID NAME STATUS PATH BRAND IP
0 global running / native shared
2 utility running /zones/utility native shared
3 rlogic running /zones/rlogic native shared
4 selfzone running /export/home/selfzone native shared
5 myzone running /export/home/myzone native shared
global# zoneadm -z myzone halt
global# zoneadm list -vi
ID NAME STATUS PATH BRAND IP
0 global running / native shared
2 utility running /zones/utility native shared
3 rlogic running /zones/rlogic native shared
4 selfzone running /export/home/selfzone native shared
- myzone installed /export/home/myzone native shared
-bash-3.00#
|
|
2 |
Use zoneadm -z with the boot -s option to start an instlled zone. |
# zoneadm -z <zone name> boot -s |
On the global zone, Boot the new zone by issuing zoneadm -z <zonename> boot.
global# zoneadm -z myzone boot -s
global# zoneadm list -vi
ID NAME STATUS PATH BRAND IP
0 global running / native shared
2 utility running /zones/utility native shared
3 rlogic running /zones/rlogic native shared
4 selfzone running /export/home/selfzone native shared
5 myzone running /export/home/myzone native shared
global#
|
|
3 |
Use zlogin -C <zone name> to log into the zone and see that it is indeed in single use mode. |
# zlogin -C <zone name> |
One a zone is in single user mode, it can only be accessed from its console using the zlogin -c <zone name> from the global zone.
global# zlogin -C myzone
[Connected to zone 'myzone' console]
Login incorrect
Root password for system maintenance (control-d to bypass):
|
Note: |
- In single user mode the system log in through its console using the zlogin -c command will have the prompt for the password for system maintenance. Also no use will have access to the system through the network (e.g. telent) and all user processes will be stopped.
|
|