# zlogin -C zonename
例如,要登录到 kzone1 中的控制台:
global# zlogin -C kzone1
# zoneadm -z zonename boot -- -L
以下示例显示了示例输出。
global# zoneadm -z kzone2 boot -- -L [Connected to zone 'kzone2' console] 1 kz-130118 (rpool/ROOT/kz-130118) 2 kz-1 (rpool/ROOT/kz-1) 3 solaris-5 (rpool/ROOT/solaris-5) 4 solaris-7 (rpool/ROOT/solaris-7) Select environment to boot: [ 1 - 4 ]:
# zoneadm -z zonename boot -- -Z boot-environment
例如:
global# zoneadm -z kzone1 boot -- -Z rpool/ROOT/solaris-backup-1
以下示例显示了内核区域 kzone1 中备用引导环境的区域控制台输出。内核区域主机硬件为 SPARC 系统。
[Connected to zone 'kzone1' console] NOTICE: Entering OpenBoot. NOTICE: Fetching Guest MD from HV. NOTICE: Starting additional cpus. NOTICE: Initializing LDC services. NOTICE: Probing PCI devices. NOTICE: Finished PCI probing. SPARC T4-2, No Keyboard Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved. OpenBoot 4.36.0.build_05, 2.0000 GB memory available, Serial #1845652596. Ethernet address 0:0:0:0:0:0, Host ID: 6e026c74. Boot device: disk0 File and args: -L 1 Oracle Solaris 11.2 SPARC 2 bootenv123 3 bootenv456 Select environment to boot: [ 1 - 3 ]: 2 To boot the selected entry, invoke: boot [<root-device>] -Z rpool/ROOT/bootenv123 Program terminated ok boot -Z rpool/ROOT/bootenv123 [NOTICE: Zone rebooting] NOTICE: Entering OpenBoot. NOTICE: Fetching Guest MD from HV. NOTICE: Starting additional cpus. NOTICE: Initializing LDC services. NOTICE: Probing PCI devices. NOTICE: Finished PCI probing. SPARC T4-2, No Keyboard Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved. OpenBoot 4.36.0.build_05, 2.0000 GB memory available, Serial #1845652596. Ethernet address 0:0:0:0:0:0, Host ID: 6e026c74. ... Hostname: kzone1 kzone1 console login:示例 3-2 在 x86 主机上选择和引导备用引导环境
以下示例显示了内核区域 kzone1 中备用引导环境的区域控制台输出。内核区域主机硬件为 x86 系统。
[Connected to zone 'kzone1' console] 1 boot-2 (rpool/ROOT/boot-2) 2 Oracle Solaris 11.2 x86 (rpool/ROOT/solaris) 3 boot-1 (rpool/ROOT/boot-1) Select environment to boot: [ 1 - 3 ]:2 Boot device: disk0 File and args: reading module /platform/i86pc/amd64/boot_archive...done. reading kernel file /platform/i86pc/kernel/amd64/unix...done. SunOS global 5.11 11.2 i86pc i386 i86pc Copyright (c) 1983, 2014, Oracle and/or its affiliates. All rights reserved. Hostname: kzone1 ... kzone1 console login: