2) Creating LDOM
root@t5-2:/vpool/ldoms/legacy_systems# ldm list
NAME STATE FLAGS CONS VCPU MEMORY UTIL NORM UPTIME
primary active -n-c-- UART 256 511G 0.0% 0.0% 7d 19h 8m
2.1) Creating LDOM default services
root@t5-2:/# ldm add-vds primary-vds0 primary
root@t5-2:/# ldm add-vsw net-dev=net0 primary-vsw0 primary
root@t5-2:/# ldm add-vcc port-range=5000-5100
2.2 ) Assigning resources for primary domain
root@t5-2:/# ldm set-core 2 primary
root@t5-2:/# ldm set-memory 16G primary
root@t5-2:/# ldm add-config initial
root@t5-2:/# init 0
2.3) Creating our ldom (legacy_systems), where the branded zones will run and assign resources
root@t5-2:~# ldm add-domain legacy-systems
root@t5-2:~# ldm add-vcpu 16 legacy-systems
root@t5-2:~# ldm add-memory 16G legacy-systems
root@t5-2:~# ldm add-vnet vnet1 primary-vsw0 legacy-systems
2.4) Creating vdisks and virtual disk services
# mkfile 40g /vpool/ldoms/legacy_systems/disks/sol10-disk0
# mkfile 40g /vpool/ldoms/legacy_systems/disks/sol10-disk1
# ldm add-vdsdev /vpool/ldoms/legacy_systems/disks/sol10-disk0 legsys-sol10-disk0@primary-vds0
# ldm add-vdsdev /vpool/ldoms/legacy_systems/disks/sol10-disk1 legsys-sol10-disk1@primary-vds0
# ldm add-vdisk disk0-sol legsys-sol10-disk0@primary-vds0 legacy-systems
# ldm add-vdisk disk1-sol legsys-sol10-disk1@primary-vds0 legacy-systems
2.5) Adding Solaris iso image, to install ldom
# ldm add-vdsdev /vpool/solaris_isos/sol10/sol-10-u10-ga2-sparc-dvd.iso sol10_iso@primary-vds0
# ldm add-vdisk sol10_iso sol10_iso@primary-vds0 legacy-system
2.6) Verify configuration
root@t5-2:/# ldm list-constraints legacy-systems
DOMAIN
legacy-systems
UUID
95c37be0-b762-caf8-eef0-c1775274995a
CONTROL
failure-policy=ignore
extended-mapin-space=on
cpu-arch=native
rc-add-policy=
shutdown-group=15
VCPU
COUNT: 16
MEMORY
SIZE: 16G
CONSTRAINT
threading=max-throughput
NETWORK
NAME SERVICE ID DEVICE MAC MODE PVID VID MTU MAXBW LINKPROP
vnet1 primary-vsw0 0 1
DISK
NAME VOLUME TOUT ID
disk0-sol legsys-sol10-disk0@primary-vds0 0
disk1-sol legsys-sol10-disk1@primary-vds0 1
sol10_iso sol10_iso@primary-vds0 2
root@t5-2:/# ldm list-services
VCC
NAME LDOM PORT-RANGE
primary-vcc0 primary 5000-5100
VSW
NAME LDOM MAC NET-DEV ID DEVICE LINKPROP DEFAULT-VLAN-ID PVID VID MTU MODE INTER-VNET-LINK
primary-vsw0 primary 00:14:4f:fb:d6:16 net0 0 switch@0 1 1 1500 on
VDS
NAME LDOM VOLUME OPTIONS MPGROUP DEVICE
primary-vds0 primary legsys-sol10-disk0 /vpool/ldoms/legacy_systems/disks/sol10-disk0
legsys-sol10-disk1 /vpool/ldoms/legacy_systems/disks/sol10-disk1
sol10_iso /vpool/solaris_isos/sol10/sol-10-u10-ga2-sparc-dvd.iso
2.7) Binding ldom and start
root@t5-2:/# ldm bind legacy-systems
root@t5-2:/# ldm list
NAME STATE FLAGS CONS VCPU MEMORY UTIL NORM UPTIME
primary active -n-cv- UART 16 16G 0.8% 0.8% 3h 49m
legacy-systems bound ------ 5000 16 16G
root@t5-2:/# ldm start legacy-systems
LDom legacy-systems started
root@t5-2:/#
root@t5-2:/# ldm list
NAME STATE FLAGS CONS VCPU MEMORY UTIL NORM UPTIME
primary active -n-cv- UART 16 16G 0.2% 0.2% 3h 49m
legacy-systems active -t---- 5000 16 16G 4.6% 4.3% 6s
2.8) Connect to the LDOM and install Solaris
root@t5-2:/# telnet localhost 5000
Trying ::1...
Paused: press any key to continue, or 'q' to quit^
Connecting to console "legacy-systems" in group "legacy-systems" ....
Press ~? for control options ..
{0} ok
{0} ok
{0} ok devalias
sol10_iso /virtual-devices@100/channel-devices@200/disk@2
disk1-sol /virtual-devices@100/channel-devices@200/disk@1
disk0-sol /virtual-devices@100/channel-devices@200/disk@0
vnet1 /virtual-devices@100/channel-devices@200/network@0
net /virtual-devices@100/channel-devices@200/network@0
disk /virtual-devices@100/channel-devices@200/disk@0
virtual-console /virtual-devices/console@1
name aliases
{0} ok boot sol10_iso
Boot device: /virtual-devices@100/channel-devices@200/disk@2 File and args:
SunOS Release 5.10 Version Generic_147440-01 64-bit
Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
Configuring devices.
Using RPC Bootparams for network configuration information.
Attempting to configure interface vnet0...
Skipped interface vnet0
Setting up Java. Please wait...
Serial console, reverting to text install
Beginning system identification...
Searching for configuration file(s)...
Search complete.
Discovering additional network configuration...
Installation complete
Executing SolStart postinstall phase...
Executing finish script "patch_finish"...
Finish script patch_finish execution completed.
Executing JumpStart postinstall phase...
The begin script log 'begin.log'
is located in /var/sadm/system/logs after reboot.
The finish script log 'finish.log'
is located in /var/sadm/system/logs after reboot.
Launching installer. Please Wait...
Installing Additional Software
|-1%--------------25%-----------------50%-----------------75%--------------100%|
Pausing for 30 seconds at the "Summary" screen. The wizard will continue to
the next step unless you select "Pause". Enter 'p' to pause. Enter 'c' to
continue. [c]
Pausing for 90 seconds at the "Reboot" screen. The wizard will continue to
the next step unless you select "Pause". Enter 'p' to pause. Enter 'c' to
continue. [c]
Creating boot_archive for /a
updating /a/platform/sun4v/boot_archive
syncing file systems... done
[CPU 00:03:4] hcall_mach_sir called
rebooting...
Resetting...
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 T5-2, No Keyboard
Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved.
OpenBoot 4.37.2, 16.0000 GB memory available, Serial #83513409.
Ethernet address 0:14:4f:fa:50:41, Host ID: 84fa5041.
Boot device: disk:a File and args:
SunOS Release 5.10 Version Generic_147440-01 64-bit
Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
Hostname: solaris10-legacy
Configuring devices.
Now we can access to the ldom
solaris10-legacy console login: root
Password:
Aug 21 15:08:56 solaris10-legacy login: ROOT LOGIN /dev/console
Last login: Fri Aug 21 07:36:06 on console
Oracle Corporation SunOS 5.10 Generic Patch January 2005
# bash
bash-3.2# more /etc/release
Oracle Solaris 10 8/11 s10s_u10wos_17b SPARC
Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
Assembled 23 August 2011
bash-3.2#
https://community.oracle.com/docs/DOC-920418
CONTENT
1) Getting the flar files from the Physical Systems (Part 2)
2) Creating LDOM (Part 3)
3) Creating Solaris 8 zone (Part 4)
4) Creating Solaris 9 zone (Part 5)
5) Moving between Primary/Guest Domain and Zones (Part 6)
NAME STATE FLAGS CONS VCPU MEMORY UTIL NORM UPTIME
primary active -n-c-- UART 256 511G 0.0% 0.0% 7d 19h 8m
root@t5-2:/# ldm add-vsw net-dev=net0 primary-vsw0 primary
root@t5-2:/# ldm add-vcc port-range=5000-5100
root@t5-2:/# ldm set-memory 16G primary
root@t5-2:/# ldm add-config initial
root@t5-2:/# init 0
root@t5-2:~# ldm add-vcpu 16 legacy-systems
root@t5-2:~# ldm add-memory 16G legacy-systems
root@t5-2:~# ldm add-vnet vnet1 primary-vsw0 legacy-systems
2.4) Creating vdisks and virtual disk services
# mkfile 40g /vpool/ldoms/legacy_systems/disks/sol10-disk1
# ldm add-vdsdev /vpool/ldoms/legacy_systems/disks/sol10-disk1 legsys-sol10-disk1@primary-vds0
# ldm add-vdisk disk1-sol legsys-sol10-disk1@primary-vds0 legacy-systems
# ldm add-vdisk sol10_iso sol10_iso@primary-vds0 legacy-system
DOMAIN
legacy-systems
UUID
95c37be0-b762-caf8-eef0-c1775274995a
failure-policy=ignore
extended-mapin-space=on
cpu-arch=native
rc-add-policy=
shutdown-group=15
COUNT: 16
SIZE: 16G
threading=max-throughput
NAME SERVICE ID DEVICE MAC MODE PVID VID MTU MAXBW LINKPROP
vnet1 primary-vsw0 0 1
NAME VOLUME TOUT ID
disk0-sol legsys-sol10-disk0@primary-vds0 0
disk1-sol legsys-sol10-disk1@primary-vds0 1
sol10_iso sol10_iso@primary-vds0 2
VCC
NAME LDOM PORT-RANGE
primary-vcc0 primary 5000-5100
NAME LDOM MAC NET-DEV ID DEVICE LINKPROP DEFAULT-VLAN-ID PVID VID MTU MODE INTER-VNET-LINK
primary-vsw0 primary 00:14:4f:fb:d6:16 net0 0 switch@0 1 1 1500 on
NAME LDOM VOLUME OPTIONS MPGROUP DEVICE
primary-vds0 primary legsys-sol10-disk0 /vpool/ldoms/legacy_systems/disks/sol10-disk0
legsys-sol10-disk1 /vpool/ldoms/legacy_systems/disks/sol10-disk1
sol10_iso /vpool/solaris_isos/sol10/sol-10-u10-ga2-sparc-dvd.iso
NAME STATE FLAGS CONS VCPU MEMORY UTIL NORM UPTIME
primary active -n-cv- UART 16 16G 0.8% 0.8% 3h 49m
legacy-systems bound ------ 5000 16 16G
LDom legacy-systems started
root@t5-2:/# ldm list
legacy-systems active -t---- 5000 16 16G 4.6% 4.3% 6s
Trying ::1...
Paused: press any key to continue, or 'q' to quit^
Press ~? for control options ..
{0} ok
{0} ok devalias
sol10_iso /virtual-devices@100/channel-devices@200/disk@2
disk1-sol /virtual-devices@100/channel-devices@200/disk@1
disk0-sol /virtual-devices@100/channel-devices@200/disk@0
vnet1 /virtual-devices@100/channel-devices@200/network@0
net /virtual-devices@100/channel-devices@200/network@0
disk /virtual-devices@100/channel-devices@200/disk@0
virtual-console /virtual-devices/console@1
name aliases
SunOS Release 5.10 Version Generic_147440-01 64-bit
Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
Configuring devices.
Using RPC Bootparams for network configuration information.
Attempting to configure interface vnet0...
Skipped interface vnet0
Setting up Java. Please wait...
Serial console, reverting to text install
Beginning system identification...
Searching for configuration file(s)...
Search complete.
Discovering additional network configuration...
Executing SolStart postinstall phase...
Executing finish script "patch_finish"...
Executing JumpStart postinstall phase...
is located in /var/sadm/system/logs after reboot.
is located in /var/sadm/system/logs after reboot.
Launching installer. Please Wait...
|-1%--------------25%-----------------50%-----------------75%--------------100%|
the next step unless you select "Pause". Enter 'p' to pause. Enter 'c' to
continue. [c]
the next step unless you select "Pause". Enter 'p' to pause. Enter 'c' to
continue. [c]
Creating boot_archive for /a
updating /a/platform/sun4v/boot_archive
syncing file systems... done
[CPU 00:03:4] hcall_mach_sir called
rebooting...
Resetting...
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.
Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved.
OpenBoot 4.37.2, 16.0000 GB memory available, Serial #83513409.
Ethernet address 0:14:4f:fa:50:41, Host ID: 84fa5041.
SunOS Release 5.10 Version Generic_147440-01 64-bit
Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
Hostname: solaris10-legacy
Configuring devices.
Password:
Aug 21 15:08:56 solaris10-legacy login: ROOT LOGIN /dev/console
Oracle Corporation SunOS 5.10 Generic Patch January 2005
Oracle Solaris 10 8/11 s10s_u10wos_17b SPARC
Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
Assembled 23 August 2011
bash-3.2#
https://community.oracle.com/docs/DOC-920418
CONTENT
1) Getting the flar files from the Physical Systems (Part 2)
2) Creating LDOM (Part 3)
3) Creating Solaris 8 zone (Part 4)
4) Creating Solaris 9 zone (Part 5)
5) Moving between Primary/Guest Domain and Zones (Part 6)
0 comentarios:
Post a Comment