LDOMS:
A logical domain is a discrete logical grouping with its own operating system, resources, and identity within a single computer system. Each logical domain can be created, des-troyed, reconfigured, and rebooted independently, without requiring a power cycle of the server.
Control domain
Creates and manages other logical domain and services by communicating with the hypervisor.
Service domain
Provides services to other logical domains, such as a virtual network switch or a virtual disk service.
I/O domain
Has direct ownership of and direct access to physical I/O devices, such as a network card in a PCI EXPRESS controller. Shares the devices to other domains in the form of virtual devices when the I/O domain is also a service domain. The number of I/O domains you can have is dependent on your platform architecture.
For example,
if you are using a Sun UltraSPARC T1 processor, you can have a maximum of two I/O domains, one of which must also be the control domain.
Guest domain
Uses services from the I/O and service domains and is managed by the control domain.
NOTE:
WE can use the Logical Domains Manager to establish dependency relationships between domains.
Master domain
A domain that has one or more domains that depend on it.
A master domain specifies a failure policy to be enacted by its slave domains when the master domain fails.
depending on the master domain’s failure policy, a slave can be left as-is, panicked, rebooted, or stopped when the master domain fails.
Slave domain
A domain that depends on another domain. A domain can specify up to four master domains that indictate the failure policy to enact when one or more of the master Following are the supported
OVER VIEW OF LDOMS
TYPES OF DOMAINS:
1.RESOURE MANAGEMNT
2.SOLRIS CONTAINERS
3.LOGICAL DOMAINS
4.DYNAMIC DOMAINS
RESOURCE MANAGEMENT
HARDWARE: cpu,harddisk,motherboards,RAM….
FIRMWARELEVEL: Ok prompt level
OPERATING SYSTEM LEVEL: Solaris,windows,linux,
APPLICATIONS: Oracle ,Sap …...
2.SOLARIS CONTAINERS
3.LOGICAL DOMAINS
• The hypervisor is the layer between the operating system and hardware.
• The hypervisor implements a stable sun4v interface. The operating system makes calls to the hypervisor, and therefore, does not need to know intimate details about the hardware, even if the platform changes.
• The hypervisor is very thin; it exists only to support the operating system for hardware-specific functions, making it small and simple, which assists in stability.
• The hypervisor creates a virtual machine allowing the system to be partitioned by exposing some of the resources to a specific partition and hiding others.
4.DYNAMIC DOMAINS
NOTE:
Resource Management : Hear Task,Project is implimented.
Solais Containers : Hear o/s level virtulization
Ldoms : Hear Firmware level virtulization
Dynamic Domas : Hear System Control level
INSTALLATION && CONFIGURATION OF LDOMS:
Upgradation of firmware:
1. Go to sunsolve.sun.com and make login
2. Access: SunSystem Handbook > Select Category: Servers > (Servers) Select a Product: Sun Fire T2000
Direct link: http://sunsolve.sun.com/handbook_private/validateUser.do?target=Systems/SunFireT2000/SunFireT2000
3. Download the latest Flash PROM Patch (Version used on this note at 11/03/2010: 6.7.8)
4. Create dir /tmp/images
mkdir -p /tmp/images
5. Save the file 139434-05.zip on /tmp/images
6. Unzip the 139434-05.zip file
# unzip 139434-05.zip
Archive: 139434-05.zip
creating: 139434-05/
inflating: 139434-05/sysfw670_README_docs.css
inflating: 139434-05/Sun_System_Firmware-6_7_6-SPARC_Enterprise_T2000.bin
inflating: 139434-05/Sun_System_Firmware-6_7_6-Sun_Fire_T2000.bin
inflating: 139434-05/sysfwdownload.README
inflating: 139434-05/Sun_System_Firmware-6_7-download_SLA_and_Entitlement.txt
inflating: 139434-05/sysfw670_README_docs.html
inflating: 139434-05/sysfwdownload
inflating: 139434-05/Install.info
inflating: 139434-05/README.139434-05
inflating: 139434-05/copyright
inflating: 139434-05/LEGAL_LICENSE.TXT
6. Use the sysfwdownload to download the firmware to the System Controller
# ./sysfwdownload Sun_System_Firmware-6_7_6-Sun_Fire_T2000.bin
.......... (9%).......... (18%).......... (27%).......... (37%).......... (46%).......... (55%).......... (64%).......... (74%).......... (83%).......... (92%)......... (100%)
Download completed successfully.
7. Shutdown the Solaris OS
# shutdown -i0
8. Go to sc (use the #.)
9. Verify the actual version
sc> showhost
Sun-Fire-T2000 System Firmware 6.6.4 2008/07/01 01:59
Host flash versions:
OBP 4.28.9 2008/06/30 21:26
Hypervisor 1.6.4 2008/06/06 04:57
POST 4.28.6 2008/05/23 12:30
sc> showsc -v version
Advanced Lights Out Manager CMT v1.6.4
SC Firmware version: CMT 1.6.4
SC Bootmon version: CMT 1.6.4
VBSC 1.6.4.a
VBSC firmware built Jun 6 2008, 05:01:03
SC Bootmon Build Release: 01
SC bootmon checksum: 4D3BA6C7
SC Bootmon built Jun 6 2008, 05:11:28
SC Build Release: 01
SC firmware checksum: 91C164C1
SC firmware built Jun 6 2008, 16:52:21
SC firmware flashupdate SAT AUG 30 01:53:14 2008
SC System Memory Size: 32 MB
SC NVRAM Version = 14
SC hardware type: 4
FPGA Version: 4.1.10.7
10. Make the flash update
sc> flashupdate -s 127.0.0.1
SC Alert: System poweron is disabled.
......................................................................................................................................................................................
Update complete. Reset device to use new software.
SC Alert: SC firmware was reloaded
11. Reboot the sc
sc> resetsc
Are you sure you want to reset the SC [y/n]? s
Are you sure you want to reset the SC [y/n]? y
User Requested SC Shutdown
12. Now, check the actual version
sc> showsc
Sun-Fire-T2000 System Firmware 6.7.6 2009/10/29 16:06
Host flash versions:
OBP 4.30.4 2009/08/19 07:24
Hypervisor 1.7.3.a 2009/10/29 15:50
POST 4.30.4 2009/08/19 07:47
sc> showsc -v version
Advanced Lights Out Manager CMT v1.7.6
SC Firmware version: CMT 1.7.6
SC Bootmon version: CMT 1.7.6
VBSC 1.7.3.a
VBSC firmware built Oct 29 2009, 15:55:58
SC Bootmon Build Release: 01
SC bootmon checksum: B262D0C1
SC Bootmon built Oct 29 2009, 16:05:00
SC Build Release: 01
SC firmware checksum: 8BCE9F20
SC firmware built Oct 29 2009, 16:05:12
SC firmware flashupdate FRI FEB 26 20:18:50 2010
SC System Memory Size: 32 MB
SC NVRAM Version = 14
SC hardware type: 4
FPGA Version: 4.1.10.7
LDOMS installation:
Down load from oracle website:
#cd /opt
# unzip LDoms_Manager-1_1.zip
#cd LDOms_Manager
#cd install
#./ install-ldm
--
root@murexhub # pkginfo -l SUNWldm
PKGINST: SUNWldm
NAME: Logical Domains Manager
CATEGORY: application
ARCH: sparc.sun4v
VERSION: 1.3,REV=2010.01.07.23.26
BASEDIR: /
VENDOR: Oracle Corporation
DESC: LDoms Manager - UltraSPARC CMT virtualization
PSTAMP: sanpen-on10-020100825190514
INSTDATE: Jun 16 2011 17:51
HOTLINE: Please contact your local service provider
STATUS: completely installed
FILES: 62 installed pathnames
11 shared pathnames
19 directories
18 executables
4321 blocks used (approx)
--
root@murexhub # pkginfo -l SUNWldmp2v
PKGINST: SUNWldmp2v
NAME: Logical Domains P2V tool
CATEGORY: application
ARCH: sparc
VERSION: 1.3,REV=2010.01.07.23.26
BASEDIR: /
VENDOR: Sun Microsystems, Inc.
DESC: Logical Domains (LDoms) Physical to Virtual (P2V) migration tool
PSTAMP: svlpen-on10-020100107232652
INSTDATE: Jun 15 2011 21:12
HOTLINE: Please contact your local service provider
STATUS: completely installed
FILES: 18 installed pathnames
6 shared pathnames
12 directories
2 executables
225 blocks used (approx)
--
# /usr/sbin/shutdown -y -g0 -i6
# svcadm enable svc:/ldoms/ldmd:default
Then
Vi /etc/profile
PATH=$PATH:/opt/SUNWldm/bin
Export PATH
:wq!
# ldm list
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active ---c- SP 32 3264M 0.3% 19d 9m
-----
Users of ldoms:
# useradd -d /export/users/ldmadmin -s /bin/bash -m ldmadmin
#passwd ldmadmin
#su – ldmadmin
-bash-3.00$ /usr/sbin/ldm list
Authorization failed
$exit
#more /etc/security/secutiry_attr
# Added by SUNWldm
solaris.ldoms.:::LDoms Administration::
solaris.ldoms.grant:::Delegate LDoms Configuration::
solaris.ldoms.read:::View LDoms Configuration::
solaris.ldoms.write:::Manage LDoms Configuration::
solaris.smf.manage.ldoms:::Manage Start/Stop LDoms::
# End of SUNWldm
# Added by svc-vntsd
solaris.vntsd.:::LDoms vntsd Administration::
solaris.vntsd.grant:::Delegate LDoms vntsd Administration::
solaris.vntsd.consoles:::Access All LDoms Guest Consoles::
# End of svc-vntsd
--
root@murexhub # usermod -A solaris.ldoms.read ldmadmin
root@murexhub # su – ldmadmin
-bash-3.00$ /usr/sbin/ldm list
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- SP 8 1G 13% 16d 2h 3m
test1 active -n---- 5050 8 1G 0.0% 2h 46m
test2 bound ------ 5051 8 1G
test3 bound ------ 5052 8 1G
-bash-3.00$ /usr/sbin/ldm stop-domain test1
Authorization failed
--
# usermod -A solaris.ldoms.write username
# usermod -A ‘‘ username
---
Assignin Roles:
# roleadd -A solaris.ldoms.read role1
root@murexhub # roleadd -A solaris.ldoms.read role1
root@murexhub # passwd role1
New Password:
Re-enter new Password:
passwd: password successfully changed for role1
root@murexhub # usermod -R role1 ldmadmin
root@murexhub # su - ldmadmin
-bash: /etc/profile: Permission denied
-bash-3.00$ su - role1
Password:
su: No directory!
-bash-3.00$ su role1
Password:
$ /usr/sbin/ldm list
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- SP 8 1G 13% 16d 2h 13m
test1 active -n---- 5050 8 1G 0.1% 2h 56m
test2 bound ------ 5051 8 1G
test3 bound ------ 5052 8 1G
$exit
CONFIGURING LDOMS:
Creating device services:
#ldm add-vds primary-vds0 primary
Creating Virtual Console Connector:
#ldm add-vcc port-range=5000-5100 primary-vcc0 primary
Creating Virtual switch services
#ldm add-vsw net-dev=e1000g0 primary-vsw0 primary
To List SERVICES:
#ldm list-services primary
VDS
NAME VOLUME OPTIONS DEVICE
primary-vds0
VCC
NAME PORT-RANGE
primary-vcc0 5000-5100
VSW
NAME MAC NET-DEV DEVICE MODE
primary-vsw0 02:04:4f:fb:9f:0d e1000g0 switch@0 prog,promisc
CONFIGURING PRIMARY DOMAIN/CONTROL DOMAIN:
1.To assing Crypto Graphic Resources
#ldm set-mau 1 primary
2.Assigning Virtual cpus
#ldm set-vcpu 4 primary
3.Assigning memory
#ldm set-memory 2G primary
5.Assigning ldoms Config to System Controller
#ldm add-config initial
factory-default
initial [next poweron]
6.Reboot server
# shutdown -y -g0 -i6
Enabling Networking Between the Control/Service Domain and Other Domains
Enable the Virtual Network Terminal Server Daemon
# svcadm enable vntsd
# svcs -l vntsd
fmri svc:/ldoms/vntsd:default
name virtual network terminal server
enabled true
state online
next_state none
state_time Sat Jun 18 22:54:12 2011
logfile /var/svc/log/ldoms-vntsd:default.log
restarter svc:/system/svc/restarter:default
contract_id 72
dependency optional_all/error svc:/milestone/network (online)
dependency optional_all/none svc:/system/system-log (online)
# ifconfig –a
# ifconfig vsw0 plumb
# /usr/sbin/dladm show-link | grep vsw
vsw0 type: non-vlan mtu: 1500 device: vsw0
# ifconfig e1000g0 down unplumb
# ifconfig vsw0 10.66.10.101 netmask netmask_of_e1000g0 broadcast + up
# mv /etc/hostname.e1000g0 /etc/hostname.vsw0
# shutdown -y -g0 -i6
CREATING GUEST DOMAIN:
1.add domain
#ldm add-domain ldg1
2.add cpus
#ldm add-vcpu 4 ldg1
3.add memory
#ldm add-memory 2G ldg1
4.add virtual nic card
ldm add-vnet vnet1 primary-vsw0 ldg1
5.add disk device
#ldm add-vdsdev /dev/dsk/c0t0d0s2 vol1@primary-vds0
ldm add-vdisk vdisk1 vol1@primary-vds0 ldg1
6.set variables:
ldm set-var auto-boot\?=true ldg1
ldm set-var boot-device=vdisk ldg1
7.add dvd-device:
# svcadm disable volfs
ldm add-vdsdev /dev/dsk/c0t0d0s2 dvd_vol@primary-vds0
# ldm add-vdisk dvddisk dvd_vol@primary-vds0 ldg1
8.add device for os
#mkfile -n 20g /ldoms/disks/osdisk
# ldm add-vdsdev /ldoms/disks/osdisk osdisk@primary-vds0
# ldm add-vdisk osdisk osdisk@primary-vds0 ldg1
9.To bind domain:
#ldm bind-domain ldg1
10.To start domain
# ldm start ldg1
LDom ldg1 started
11.To list Domain
#ldm list-domain ldg1
12.To login to Domain
# telnet localhost 5000
ok devalias
ok boot dvddisk
………..
Select a Language
0. English
1. French
2. German
3. Italian
4. Japanese
5. Korean
6. Simplified Chinese
7. Spanish
8. Swedish
9. Traditional Chinese
Please make a choice (0 - 9), or press h or ? for help: 0
What type of terminal are you using?
1) ANSI Standard CRT
2) DEC VT52
3) DEC VT100
4) Heathkit 19
5) Lear Siegler ADM31
6) PC Console
7) Sun Command Tool
8) Sun Workstation
9) Televideo 910
10) Televideo 925
11) Wyse Model 50
12) X Terminal Emulator (xterms)
13) CDE Terminal Emulator (dtterm)
14) Other
Type the number of your choice and press Return: 3
Configuration:
Networked: Yes
Use DHCP: No
Host name: test1
IP address: 10.66.10.111
System part of a subnet: Yes
Netmask: 255.255.255.192
Enable IPv6: No
Default Route: Specify one
Router IP Address: 10.66.10.65
Configure Kerberos Security: No
Name service: None
NFSv4 Domain Name: << Value to be derived dynamically >>
Time zone: Asia/Calcutta
Date and time: 2011-06-18 20:20:00
Root password:
Root password:
Installation Option: Initial
Boot Device: c0d0
Root File System Type: UFS
Client Services: None
System Locale: C ( C )
Software: Solaris 10, Entire Distribution
File System and Disk Layout: / c0d0s0 7560 MB
swap c0d0s1 540 MB
------
Save All Logical Domain Configurations
# ldm ls-constraints -x ldomname > ldomname.xml
Rebuild Guest Domain Configurations
# ldm add-domain -i ldomname.xml
# ldm bind-domain ldomname
# ldm start-domain ldomname
--
Adding virtual disks by using zfs:
# zpool create ldmpool clt50d0
# zfs create ldmpool/ldg1
# zfs create -V 10gb ldmpool/ldg1/disk0
# zfs create ldmpool/ldg1/disk0
# mkfile 10g /ldmpool/ldg1/disk0/file
# ldm add-vdsdev /dev/zvol/dsk/ldmpool/ldg1/disk0
ldg1_disk0@primary-vds0
# ldm add-vdsdev /ldmpool/ldg1/disk0/file
ldg1_disk0@primary-vds0
# ldm add-vdisk disk0 ldg1_disk0@primary-vds0 ldg1
Monitering ldoms:
1.to list primary domain
# ldm list -l primary
2.to list domain devices
# ldm list-devices -a cpu
3.to list devices
# ldm list-devices -a -p cpu
4.to list version
#ldm -V
Logical Domain Manager (v 1.1)
Hypervisor control protocol v 1.3
Using Hypervisor MD v 0.1
System PROM:
Hypervisor v. 1.7.0. @(#)Hypervisor 1.7.0. 2008/11/19 10:20
OpenBoot v. 4.30.0. @(#)OBP 4.30.0. 2008/11/18 13:44
5.to list domain
#ldm list
6.to list domain in long list format
#ldm list –l
7.To list specific variable info
#ldm list-variable boot-device ldg1
8.To list binding domain information
#ldm list-bindings ldg1
9.To list configurations
#ldm list-config
10.To list all devices
#ldm list-devices –a
11.To list memory
#ldm list-devices mem
12.To list services
#ldm list-services
13.To list information of domain
#ldm list-constraints ldg1
#ldm list-constraints -x ldg1
#ldm list-constraints –p
LDOM FILES
/var/svc/log/ldoms-ldmd:default.log
/var/svc/log/ldoms-vntsd:default.log
/var/opt/SUNWldom/ldom-db.xml
/opt/SUNWldm/bin/ldm list -l > ldm_list.out
/opt/SUNWldm/bin/ldm list-devices -a > ldm_list_devices.out
/opt/SUNWldm/bin/ldm -V > ldm_V.out
/bin/ls -l /var/opt/SUNWldm > ls_l.SUNWldm.out
A logical domain is a discrete logical grouping with its own operating system, resources, and identity within a single computer system. Each logical domain can be created, des-troyed, reconfigured, and rebooted independently, without requiring a power cycle of the server.
Control domain
Creates and manages other logical domain and services by communicating with the hypervisor.
Service domain
Provides services to other logical domains, such as a virtual network switch or a virtual disk service.
I/O domain
Has direct ownership of and direct access to physical I/O devices, such as a network card in a PCI EXPRESS controller. Shares the devices to other domains in the form of virtual devices when the I/O domain is also a service domain. The number of I/O domains you can have is dependent on your platform architecture.
For example,
if you are using a Sun UltraSPARC T1 processor, you can have a maximum of two I/O domains, one of which must also be the control domain.
Guest domain
Uses services from the I/O and service domains and is managed by the control domain.
NOTE:
WE can use the Logical Domains Manager to establish dependency relationships between domains.
Master domain
A domain that has one or more domains that depend on it.
A master domain specifies a failure policy to be enacted by its slave domains when the master domain fails.
depending on the master domain’s failure policy, a slave can be left as-is, panicked, rebooted, or stopped when the master domain fails.
Slave domain
A domain that depends on another domain. A domain can specify up to four master domains that indictate the failure policy to enact when one or more of the master Following are the supported
OVER VIEW OF LDOMS
TYPES OF DOMAINS:
1.RESOURE MANAGEMNT
2.SOLRIS CONTAINERS
3.LOGICAL DOMAINS
4.DYNAMIC DOMAINS
RESOURCE MANAGEMENT
HARDWARE: cpu,harddisk,motherboards,RAM….
FIRMWARELEVEL: Ok prompt level
OPERATING SYSTEM LEVEL: Solaris,windows,linux,
APPLICATIONS: Oracle ,Sap …...
2.SOLARIS CONTAINERS
3.LOGICAL DOMAINS
• The hypervisor is the layer between the operating system and hardware.
• The hypervisor implements a stable sun4v interface. The operating system makes calls to the hypervisor, and therefore, does not need to know intimate details about the hardware, even if the platform changes.
• The hypervisor is very thin; it exists only to support the operating system for hardware-specific functions, making it small and simple, which assists in stability.
• The hypervisor creates a virtual machine allowing the system to be partitioned by exposing some of the resources to a specific partition and hiding others.
4.DYNAMIC DOMAINS
NOTE:
Resource Management : Hear Task,Project is implimented.
Solais Containers : Hear o/s level virtulization
Ldoms : Hear Firmware level virtulization
Dynamic Domas : Hear System Control level
INSTALLATION && CONFIGURATION OF LDOMS:
Upgradation of firmware:
1. Go to sunsolve.sun.com and make login
2. Access: SunSystem Handbook > Select Category: Servers > (Servers) Select a Product: Sun Fire T2000
Direct link: http://sunsolve.sun.com/handbook_private/validateUser.do?target=Systems/SunFireT2000/SunFireT2000
3. Download the latest Flash PROM Patch (Version used on this note at 11/03/2010: 6.7.8)
4. Create dir /tmp/images
mkdir -p /tmp/images
5. Save the file 139434-05.zip on /tmp/images
6. Unzip the 139434-05.zip file
# unzip 139434-05.zip
Archive: 139434-05.zip
creating: 139434-05/
inflating: 139434-05/sysfw670_README_docs.css
inflating: 139434-05/Sun_System_Firmware-6_7_6-SPARC_Enterprise_T2000.bin
inflating: 139434-05/Sun_System_Firmware-6_7_6-Sun_Fire_T2000.bin
inflating: 139434-05/sysfwdownload.README
inflating: 139434-05/Sun_System_Firmware-6_7-download_SLA_and_Entitlement.txt
inflating: 139434-05/sysfw670_README_docs.html
inflating: 139434-05/sysfwdownload
inflating: 139434-05/Install.info
inflating: 139434-05/README.139434-05
inflating: 139434-05/copyright
inflating: 139434-05/LEGAL_LICENSE.TXT
6. Use the sysfwdownload to download the firmware to the System Controller
# ./sysfwdownload Sun_System_Firmware-6_7_6-Sun_Fire_T2000.bin
.......... (9%).......... (18%).......... (27%).......... (37%).......... (46%).......... (55%).......... (64%).......... (74%).......... (83%).......... (92%)......... (100%)
Download completed successfully.
7. Shutdown the Solaris OS
# shutdown -i0
8. Go to sc (use the #.)
9. Verify the actual version
sc> showhost
Sun-Fire-T2000 System Firmware 6.6.4 2008/07/01 01:59
Host flash versions:
OBP 4.28.9 2008/06/30 21:26
Hypervisor 1.6.4 2008/06/06 04:57
POST 4.28.6 2008/05/23 12:30
sc> showsc -v version
Advanced Lights Out Manager CMT v1.6.4
SC Firmware version: CMT 1.6.4
SC Bootmon version: CMT 1.6.4
VBSC 1.6.4.a
VBSC firmware built Jun 6 2008, 05:01:03
SC Bootmon Build Release: 01
SC bootmon checksum: 4D3BA6C7
SC Bootmon built Jun 6 2008, 05:11:28
SC Build Release: 01
SC firmware checksum: 91C164C1
SC firmware built Jun 6 2008, 16:52:21
SC firmware flashupdate SAT AUG 30 01:53:14 2008
SC System Memory Size: 32 MB
SC NVRAM Version = 14
SC hardware type: 4
FPGA Version: 4.1.10.7
10. Make the flash update
sc> flashupdate -s 127.0.0.1
SC Alert: System poweron is disabled.
......................................................................................................................................................................................
Update complete. Reset device to use new software.
SC Alert: SC firmware was reloaded
11. Reboot the sc
sc> resetsc
Are you sure you want to reset the SC [y/n]? s
Are you sure you want to reset the SC [y/n]? y
User Requested SC Shutdown
12. Now, check the actual version
sc> showsc
Sun-Fire-T2000 System Firmware 6.7.6 2009/10/29 16:06
Host flash versions:
OBP 4.30.4 2009/08/19 07:24
Hypervisor 1.7.3.a 2009/10/29 15:50
POST 4.30.4 2009/08/19 07:47
sc> showsc -v version
Advanced Lights Out Manager CMT v1.7.6
SC Firmware version: CMT 1.7.6
SC Bootmon version: CMT 1.7.6
VBSC 1.7.3.a
VBSC firmware built Oct 29 2009, 15:55:58
SC Bootmon Build Release: 01
SC bootmon checksum: B262D0C1
SC Bootmon built Oct 29 2009, 16:05:00
SC Build Release: 01
SC firmware checksum: 8BCE9F20
SC firmware built Oct 29 2009, 16:05:12
SC firmware flashupdate FRI FEB 26 20:18:50 2010
SC System Memory Size: 32 MB
SC NVRAM Version = 14
SC hardware type: 4
FPGA Version: 4.1.10.7
LDOMS installation:
Down load from oracle website:
#cd /opt
# unzip LDoms_Manager-1_1.zip
#cd LDOms_Manager
#cd install
#./ install-ldm
--
root@murexhub # pkginfo -l SUNWldm
PKGINST: SUNWldm
NAME: Logical Domains Manager
CATEGORY: application
ARCH: sparc.sun4v
VERSION: 1.3,REV=2010.01.07.23.26
BASEDIR: /
VENDOR: Oracle Corporation
DESC: LDoms Manager - UltraSPARC CMT virtualization
PSTAMP: sanpen-on10-020100825190514
INSTDATE: Jun 16 2011 17:51
HOTLINE: Please contact your local service provider
STATUS: completely installed
FILES: 62 installed pathnames
11 shared pathnames
19 directories
18 executables
4321 blocks used (approx)
--
root@murexhub # pkginfo -l SUNWldmp2v
PKGINST: SUNWldmp2v
NAME: Logical Domains P2V tool
CATEGORY: application
ARCH: sparc
VERSION: 1.3,REV=2010.01.07.23.26
BASEDIR: /
VENDOR: Sun Microsystems, Inc.
DESC: Logical Domains (LDoms) Physical to Virtual (P2V) migration tool
PSTAMP: svlpen-on10-020100107232652
INSTDATE: Jun 15 2011 21:12
HOTLINE: Please contact your local service provider
STATUS: completely installed
FILES: 18 installed pathnames
6 shared pathnames
12 directories
2 executables
225 blocks used (approx)
--
# /usr/sbin/shutdown -y -g0 -i6
# svcadm enable svc:/ldoms/ldmd:default
Then
Vi /etc/profile
PATH=$PATH:/opt/SUNWldm/bin
Export PATH
:wq!
# ldm list
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active ---c- SP 32 3264M 0.3% 19d 9m
-----
Users of ldoms:
# useradd -d /export/users/ldmadmin -s /bin/bash -m ldmadmin
#passwd ldmadmin
#su – ldmadmin
-bash-3.00$ /usr/sbin/ldm list
Authorization failed
$exit
#more /etc/security/secutiry_attr
# Added by SUNWldm
solaris.ldoms.:::LDoms Administration::
solaris.ldoms.grant:::Delegate LDoms Configuration::
solaris.ldoms.read:::View LDoms Configuration::
solaris.ldoms.write:::Manage LDoms Configuration::
solaris.smf.manage.ldoms:::Manage Start/Stop LDoms::
# End of SUNWldm
# Added by svc-vntsd
solaris.vntsd.:::LDoms vntsd Administration::
solaris.vntsd.grant:::Delegate LDoms vntsd Administration::
solaris.vntsd.consoles:::Access All LDoms Guest Consoles::
# End of svc-vntsd
--
root@murexhub # usermod -A solaris.ldoms.read ldmadmin
root@murexhub # su – ldmadmin
-bash-3.00$ /usr/sbin/ldm list
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- SP 8 1G 13% 16d 2h 3m
test1 active -n---- 5050 8 1G 0.0% 2h 46m
test2 bound ------ 5051 8 1G
test3 bound ------ 5052 8 1G
-bash-3.00$ /usr/sbin/ldm stop-domain test1
Authorization failed
--
# usermod -A solaris.ldoms.write username
# usermod -A ‘‘ username
---
Assignin Roles:
# roleadd -A solaris.ldoms.read role1
root@murexhub # roleadd -A solaris.ldoms.read role1
root@murexhub # passwd role1
New Password:
Re-enter new Password:
passwd: password successfully changed for role1
root@murexhub # usermod -R role1 ldmadmin
root@murexhub # su - ldmadmin
-bash: /etc/profile: Permission denied
-bash-3.00$ su - role1
Password:
su: No directory!
-bash-3.00$ su role1
Password:
$ /usr/sbin/ldm list
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- SP 8 1G 13% 16d 2h 13m
test1 active -n---- 5050 8 1G 0.1% 2h 56m
test2 bound ------ 5051 8 1G
test3 bound ------ 5052 8 1G
$exit
CONFIGURING LDOMS:
Creating device services:
#ldm add-vds primary-vds0 primary
Creating Virtual Console Connector:
#ldm add-vcc port-range=5000-5100 primary-vcc0 primary
Creating Virtual switch services
#ldm add-vsw net-dev=e1000g0 primary-vsw0 primary
To List SERVICES:
#ldm list-services primary
VDS
NAME VOLUME OPTIONS DEVICE
primary-vds0
VCC
NAME PORT-RANGE
primary-vcc0 5000-5100
VSW
NAME MAC NET-DEV DEVICE MODE
primary-vsw0 02:04:4f:fb:9f:0d e1000g0 switch@0 prog,promisc
CONFIGURING PRIMARY DOMAIN/CONTROL DOMAIN:
1.To assing Crypto Graphic Resources
#ldm set-mau 1 primary
2.Assigning Virtual cpus
#ldm set-vcpu 4 primary
3.Assigning memory
#ldm set-memory 2G primary
5.Assigning ldoms Config to System Controller
#ldm add-config initial
factory-default
initial [next poweron]
6.Reboot server
# shutdown -y -g0 -i6
Enabling Networking Between the Control/Service Domain and Other Domains
Enable the Virtual Network Terminal Server Daemon
# svcadm enable vntsd
# svcs -l vntsd
fmri svc:/ldoms/vntsd:default
name virtual network terminal server
enabled true
state online
next_state none
state_time Sat Jun 18 22:54:12 2011
logfile /var/svc/log/ldoms-vntsd:default.log
restarter svc:/system/svc/restarter:default
contract_id 72
dependency optional_all/error svc:/milestone/network (online)
dependency optional_all/none svc:/system/system-log (online)
# ifconfig –a
# ifconfig vsw0 plumb
# /usr/sbin/dladm show-link | grep vsw
vsw0 type: non-vlan mtu: 1500 device: vsw0
# ifconfig e1000g0 down unplumb
# ifconfig vsw0 10.66.10.101 netmask netmask_of_e1000g0 broadcast + up
# mv /etc/hostname.e1000g0 /etc/hostname.vsw0
# shutdown -y -g0 -i6
CREATING GUEST DOMAIN:
1.add domain
#ldm add-domain ldg1
2.add cpus
#ldm add-vcpu 4 ldg1
3.add memory
#ldm add-memory 2G ldg1
4.add virtual nic card
ldm add-vnet vnet1 primary-vsw0 ldg1
5.add disk device
#ldm add-vdsdev /dev/dsk/c0t0d0s2 vol1@primary-vds0
ldm add-vdisk vdisk1 vol1@primary-vds0 ldg1
6.set variables:
ldm set-var auto-boot\?=true ldg1
ldm set-var boot-device=vdisk ldg1
7.add dvd-device:
# svcadm disable volfs
ldm add-vdsdev /dev/dsk/c0t0d0s2 dvd_vol@primary-vds0
# ldm add-vdisk dvddisk dvd_vol@primary-vds0 ldg1
8.add device for os
#mkfile -n 20g /ldoms/disks/osdisk
# ldm add-vdsdev /ldoms/disks/osdisk osdisk@primary-vds0
# ldm add-vdisk osdisk osdisk@primary-vds0 ldg1
9.To bind domain:
#ldm bind-domain ldg1
10.To start domain
# ldm start ldg1
LDom ldg1 started
11.To list Domain
#ldm list-domain ldg1
12.To login to Domain
# telnet localhost 5000
ok devalias
ok boot dvddisk
………..
Select a Language
0. English
1. French
2. German
3. Italian
4. Japanese
5. Korean
6. Simplified Chinese
7. Spanish
8. Swedish
9. Traditional Chinese
Please make a choice (0 - 9), or press h or ? for help: 0
What type of terminal are you using?
1) ANSI Standard CRT
2) DEC VT52
3) DEC VT100
4) Heathkit 19
5) Lear Siegler ADM31
6) PC Console
7) Sun Command Tool
8) Sun Workstation
9) Televideo 910
10) Televideo 925
11) Wyse Model 50
12) X Terminal Emulator (xterms)
13) CDE Terminal Emulator (dtterm)
14) Other
Type the number of your choice and press Return: 3
Configuration:
Networked: Yes
Use DHCP: No
Host name: test1
IP address: 10.66.10.111
System part of a subnet: Yes
Netmask: 255.255.255.192
Enable IPv6: No
Default Route: Specify one
Router IP Address: 10.66.10.65
Configure Kerberos Security: No
Name service: None
NFSv4 Domain Name: << Value to be derived dynamically >>
Time zone: Asia/Calcutta
Date and time: 2011-06-18 20:20:00
Root password:
Root password:
Installation Option: Initial
Boot Device: c0d0
Root File System Type: UFS
Client Services: None
System Locale: C ( C )
Software: Solaris 10, Entire Distribution
File System and Disk Layout: / c0d0s0 7560 MB
swap c0d0s1 540 MB
------
Save All Logical Domain Configurations
# ldm ls-constraints -x ldomname > ldomname.xml
Rebuild Guest Domain Configurations
# ldm add-domain -i ldomname.xml
# ldm bind-domain ldomname
# ldm start-domain ldomname
--
Adding virtual disks by using zfs:
# zpool create ldmpool clt50d0
# zfs create ldmpool/ldg1
# zfs create -V 10gb ldmpool/ldg1/disk0
# zfs create ldmpool/ldg1/disk0
# mkfile 10g /ldmpool/ldg1/disk0/file
# ldm add-vdsdev /dev/zvol/dsk/ldmpool/ldg1/disk0
ldg1_disk0@primary-vds0
# ldm add-vdsdev /ldmpool/ldg1/disk0/file
ldg1_disk0@primary-vds0
# ldm add-vdisk disk0 ldg1_disk0@primary-vds0 ldg1
Monitering ldoms:
1.to list primary domain
# ldm list -l primary
2.to list domain devices
# ldm list-devices -a cpu
3.to list devices
# ldm list-devices -a -p cpu
4.to list version
#ldm -V
Logical Domain Manager (v 1.1)
Hypervisor control protocol v 1.3
Using Hypervisor MD v 0.1
System PROM:
Hypervisor v. 1.7.0. @(#)Hypervisor 1.7.0. 2008/11/19 10:20
OpenBoot v. 4.30.0. @(#)OBP 4.30.0. 2008/11/18 13:44
5.to list domain
#ldm list
6.to list domain in long list format
#ldm list –l
7.To list specific variable info
#ldm list-variable boot-device ldg1
8.To list binding domain information
#ldm list-bindings ldg1
9.To list configurations
#ldm list-config
10.To list all devices
#ldm list-devices –a
11.To list memory
#ldm list-devices mem
12.To list services
#ldm list-services
13.To list information of domain
#ldm list-constraints ldg1
#ldm list-constraints -x ldg1
#ldm list-constraints –p
LDOM FILES
/var/svc/log/ldoms-ldmd:default.log
/var/svc/log/ldoms-vntsd:default.log
/var/opt/SUNWldom/ldom-db.xml
/opt/SUNWldm/bin/ldm list -l > ldm_list.out
/opt/SUNWldm/bin/ldm list-devices -a > ldm_list_devices.out
/opt/SUNWldm/bin/ldm -V > ldm_V.out
/bin/ls -l /var/opt/SUNWldm > ls_l.SUNWldm.out
No comments:
Post a Comment