Home / Solaris 10 / how to boot Solaris local zone in single user mode ?

how to boot Solaris local zone in single user mode ?

Many of us known to boot the Solaris global zone in single user mode.But have you ever tried to boot  Solaris non-global zone in single user mode ?.In SPARC based machines we have an “OK” prompt to boot the OS in single user mode and  using grub menu, we can to boot on X86 machines in single user mode.So how can we boot these virtual servers in single user mode ? how to see the booting messages ? Here we go.

Soalris non-global zones aslo having console like global zone.You can get this by using zlogin -C zone_name

1 .Use zoneadm list on the global zone server to show status of zones:
On the global zone, use the zoneadm list -vi to show current status of all installed zones.
# /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

2.Halting the zone:

global# zoneadm -z myzone halt
# /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 installed /export/home/myzone native shared

3.Use zoneadm -z with the boot -s option to start an installed zone.On the global zone, Boot the new zone by issuing “zoneadm -z boot”.

# zoneadm -z myzone boot -s

You can bring down the local zone to single user mode,by just issuing “init 1” command from local zone’s OS console.
4. Use zlogin -C to log into the zone and see that it is indeed in single use mode.
# zlogin -C One a zone is in single user mode, it can only be accessed from its console using the zlogin -c 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.
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.

Thank you for reading this article.Please leave a comment if you have any doubt ,i will get back to you as soon as possible.
VMTURBO-CLOUD-CAPACITY

Leave a Reply

Your email address will not be published. Required fields are marked *