Professional Documents
Culture Documents
LDOM Oracle VM For SPARC - Tutorial 1 - UnixArena
LDOM Oracle VM For SPARC - Tutorial 1 - UnixArena
SUN LDOMS aka Oracle VM for SPARC is a complete virtual machine that runs an independent operating
system and contains its own virtual CPU’s, Storage, Memory, Cryptographic and console. Unlike Solaris zones,
LDOMS can run its own operating system with di erent kernel patch levels. You can also install Solaris 8,
Solaris 9, Solaris 10 and Solaris 11 on LDOMS. LDOM also provides the OBP for each logical domains but we
won’t get that in zones. LDOM also allow moving the resources across the logical domains or virtual
hosts exclusively. LDOM also allows you to con gure zones under that.
Tutorials Topics:
Installation and Con guring the Primary domain (You are here)
CHECK-OUT
Creating Guest Domains
Con guring I/O Domain
Dynamically adding/removing Resources
Live Migration for Guest Domains
Adding ISO image to Multiple Guests FOLLOW UNIXARENA
Con guration Backup & Restore
Removing the LDOM and Services
LDOM Quick Reference
Prerequisite:
LDOM is a hardware based virtualization which works on top the hypervisor. To understand better, you should Cloud Instance Backup / VM
know the type of terms used in LDOM or oracle VM for SPARC. Backup strategies
Control Domain is the place where you are going to install the LDOM software and managing the
Cloud ends Data-center
complete logical domain environment.It used to con gure the resources and guest domains Virtualization ? VMware’s Future ?
I/O Domains have a direct ownership of PCI Bus. You need to directly map the I/O devices to the guest domain Azure Backup – Recover VM from
to improve the application performance in some cases. There is another domain called “root domain” and this Crash/ Accidental delete
domain has direct ownership of PCI devices. So it also called I/O domain.
Guest domains don’t perform any of the above-mentioned roles. It jsut runs the operating system
More Posts from this Category
instances.
Control domain and service domain can be run together. But the user application should not be installed
on this domain in a order to protect domain stability and performance.
## Installing part 1 of 1.
3. Install the LDOM software . Unzip the package and continue the installation like below
-bash-3.2# cd OVM_Server_SPARC-2_0
-bash-3.2# ls -lrt
total 12
-r--r--r-- 1 root root 3368 Sep 17 2010 README
drwxr-xr-x 2 root root 512 Sep 18 2010 Install
drwxr-xr-x 7 root root 512 Dec 16 2010 Product
-bash-3.2# cd Install/
-bash-3.2# ls -lrt
total 56
-rwxr-xr-x 1 root root 28471 Sep 18 2010 install-ldm
-bash-3.2# ./install-ldm
You are about to install the LDoms Manager package, SUNWldm, that will enable
you to create, destroy and control other domains on your system. You will
also be given the option of running the Oracle VM Server for SPARC Configuration
Assistant (ldmconfig) to setup the control domain and create guest domains.
Once installed, you may configure your system for a basic LDoms
deployment. If you select "y" for the following question, the Oracle
VM Server for SPARC Configuration Assistant (tty) will be launched
following a successful installation of the packages.
(You may launch the Configuration Assistant at a later time with the
command: /usr/sbin/ldmconfig, or use the GUI Configuration Assistant
which is bundled in the Oracle VM Server for SPARC zip file - see
README.GUI for more details)
Enter y or n [y]: n
2. Create a new virtual disk service. This service is responsible to provide the virtual disks to guest domains.
3. Create a new virtual switch. By creating this , we can create N-number of VNIC and share to the guest
domains.
VDS
NAME LDOM VOLUME OPTIONS MPGROUP DEVICE
primary-vds0 primary
-bash-3.2#
Here I have con gured virtual switch using “nxge1”. You can also use “nxge0” con gure the virtual swtich but
you need to remove the IP from nxge0 and need to con gure the IP over the virtual switch.
-bash-3.2# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
vsw0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
inet 198.168.2.11 netmask ff000000 broadcast 192.168.2.255
ether 0:14:4f:98:83:f3
-bash-3.2#
VDS
NAME LDOM VOLUME OPTIONS MPGROUP DEVICE
primary-vds0 primary
-bash-3.2#
VSW
NAME LDOM MAC NET-DEV ID DEVICE LINKPROP DEFAULT-VLAN-ID PVID V
primary-vsw0 primary 00:14:4f:f9:05:b1 nxge1 0 switch@0 1 1
Now you have successfully con gured the default services or service domain.
(Creating the spcon g is must after making any changes on the service.Otherwise you will loose the changes
after the system power cycle.)
1.List the logical domain devices using ldm list-device -a command.You can see all the resource has been
allocated to the primary domain.
VCPU
PID %FREE PM
0 0 no
1 0 no
2 0 no
3 0 no
4 0 no
5 0 no
6 0 no
7 0 no
8 0 no
9 0 no
10 0 no
11 0 no
12 0 no
13 0 no
14 0 no
15 0 no
16 0 no
17 0 no
18 0 no
19 0 no
20 0 no
21 0 no
22 0 no
23 0 no
24 0 no
25 0 no
26 0 no
27 0 no
28 0 no
29 0 no
30 0 no
31 0 no
64 0 no
65 0 no
66 0 no
67 0 no
68 0 no
69 0 no
70 0 no
71 0 no
72 0 no
73 0 no
74 0 no
75 0 no
76 0 no
77 0 no
78 0 no
79 0 no
80 0 no
81 0 no
82 0 no
83 0 no
84 0 no
85 0 no
86 0 no
87 0 no
88 0 no
89 0 no
90 0 no
91 0 no
92 0 no
93 0 no
94 0 no
95 0 no
MAU
ID CPUSET BOUND
0 (0, 1, 2, 3, 4, 5, 6, 7) primary
1 (8, 9, 10, 11, 12, 13, 14, 15) primary
2 (16, 17, 18, 19, 20, 21, 22, 23) primary
3 (24, 25, 26, 27, 28, 29, 30, 31) primary
4 (64, 65, 66, 67, 68, 69, 70, 71) primary
5 (72, 73, 74, 75, 76, 77, 78, 79) primary
6 (80, 81, 82, 83, 84, 85, 86, 87) primary
7 (88, 89, 90, 91, 92, 93, 94, 95) primary
MEMORY
PA SIZE BOUND
0x0 512K _sys_
0x80000 1536K _sys_
0x200000 94M _sys_
0x6000000 32M _sys_
0x8000000 96M _sys_
0xe000000 32544M primary
IO
DEVICE PSEUDONYM BOUND OPTIONS
pci@400 pci_0 yes
pci@500 pci_1 yes
bash-3.2#
2.List what are the resources assigned to the primary domain or control domains.
UUID
f063b0a8-8fb0-4e61-cd5b-91826d2c1550
MAC
00:21:28:57:cd:16
HOSTID
0x8557cd16
CONTROL
failure-policy=ignore
DEPENDENCY
master=
CORE
CID CPUSET
0 (0, 1, 2, 3, 4, 5, 6, 7)
1 (8, 9, 10, 11, 12, 13, 14, 15)
2 (16, 17, 18, 19, 20, 21, 22, 23)
3 (24, 25, 26, 27, 28, 29, 30, 31)
4 (64, 65, 66, 67, 68, 69, 70, 71)
5 (72, 73, 74, 75, 76, 77, 78, 79)
6 (80, 81, 82, 83, 84, 85, 86, 87)
7 (88, 89, 90, 91, 92, 93, 94, 95)
VCPU
VID PID CID UTIL STRAND
0 0 0 1.5% 100%
1 1 0 0.0% 100%
2 2 0 0.0% 100%
3 3 0 0.0% 100%
4 4 0 0.0% 100%
5 5 0 0.0% 100%
6 6 0 0.0% 100%
7 7 0 0.0% 100%
8 8 1 0.0% 100%
9 9 1 0.1% 100%
10 10 1 0.0% 100%
11 11 1 0.1% 100%
12 12 1 0.1% 100%
13 13 1 3.0% 100%
14 14 1 0.0% 100%
15 15 1 0.1% 100%
16 16 2 0.1% 100%
17 17 2 0.2% 100%
18 18 2 0.1% 100%
19 19 2 0.0% 100%
20 20 2 0.1% 100%
21 21 2 0.0% 100%
22 22 2 0.1% 100%
23 23 2 0.0% 100%
24 24 3 0.0% 100%
25 25 3 0.0% 100%
26 26 3 0.0% 100%
27 27 3 0.0% 100%
28 28 3 0.2% 100%
29 29 3 0.1% 100%
30 30 3 0.1% 100%
31 31 3 0.0% 100%
64 64 4 0.0% 100%
65 65 4 0.0% 100%
66 66 4 0.0% 100%
67 67 4 0.0% 100%
68 68 4 0.0% 100%
69 69 4 0.0% 100%
70 70 4 0.0% 100%
71 71 4 0.0% 100%
72 72 5 0.0% 100%
73 73 5 0.0% 100%
74 74 5 0.0% 100%
75 75 5 0.0% 100%
76 76 5 0.0% 100%
77 77 5 0.0% 100%
78 78 5 0.0% 100%
79 79 5 0.0% 100%
80 80 6 0.0% 100%
81 81 6 0.0% 100%
82 82 6 0.0% 100%
83 83 6 0.0% 100%
84 84 6 0.0% 100%
85 85 6 0.0% 100%
86 86 6 0.0% 100%
87 87 6 0.0% 100%
88 88 7 0.0% 100%
89 89 7 0.0% 100%
90 90 7 0.0% 100%
91 91 7 0.0% 100%
92 92 7 0.0% 100%
93 93 7 0.0% 100%
94 94 7 0.0% 100%
95 95 7 0.0% 100%
MAU
ID CPUSET
0 (0, 1, 2, 3, 4, 5, 6, 7)
1 (8, 9, 10, 11, 12, 13, 14, 15)
2 (16, 17, 18, 19, 20, 21, 22, 23)
3 (24, 25, 26, 27, 28, 29, 30, 31)
4 (64, 65, 66, 67, 68, 69, 70, 71)
5 (72, 73, 74, 75, 76, 77, 78, 79)
6 (80, 81, 82, 83, 84, 85, 86, 87)
7 (88, 89, 90, 91, 92, 93, 94, 95)
MEMORY
RA PA SIZE
0xe000000 0xe000000 32544M
IO
DEVICE PSEUDONYM OPTIONS
pci@400 pci_0
pci@500 pci_1
VCONS
NAME SERVICE PORT
SP
bash-3.2#
3.Set the resource control for the control domain aka primary domain.So the resource will be freed up for the
logical domains / Guest domains.
VCPU
PID %FREE PM
0 0 no ----------These (0-7) CPU is not available since its assigned to primary domain
1 0 no
2 0 no
3 0 no
4 0 no
5 0 no
6 0 no
7 0 no
8 100 ---
9 100 ---
10 100 ---
11 100 ---
12 100 ---
13 100 ---
14 100 ---
15 100 ---
16 100 ---
17 100 ---
18 100 ---
19 100 ---
20 100 ---
21 100 ---
22 100 ---
23 100 ---
24 100 ---
25 100 ---
26 100 ---
27 100 ---
28 100 ---
29 100 ---
30 100 ---
31 100 ---
64 100 ---
65 100 ---
66 100 ---
67 100 ---
68 100 ---
69 100 ---
70 100 ---
71 100 ---
72 100 ---
73 100 ---
74 100 ---
75 100 ---
76 100 ---
77 100 ---
78 100 ---
79 100 ---
80 100 ---
81 100 ---
82 100 ---
83 100 ---
84 100 ---
85 100 ---
86 100 ---
87 100 ---
88 100 ---
89 100 ---
90 100 ---
91 100 ---
92 100 ---
93 100 ---
94 100 ---
95 100 ---
MAU
ID CPUSET BOUND
0 (0, 1, 2, 3, 4, 5, 6, 7) primary
1 (8, 9, 10, 11, 12, 13, 14, 15)
2 (16, 17, 18, 19, 20, 21, 22, 23)
3 (24, 25, 26, 27, 28, 29, 30, 31)
4 (64, 65, 66, 67, 68, 69, 70, 71)
5 (72, 73, 74, 75, 76, 77, 78, 79)
6 (80, 81, 82, 83, 84, 85, 86, 87)
7 (88, 89, 90, 91, 92, 93, 94, 95)
MEMORY
PA SIZE BOUND
0x0 512K _sys_
0x80000 1536K _sys_
0x200000 94M _sys_
0x6000000 32M _sys_
0x8000000 96M _sys_
0xe000000 32M primary
0x10000000 28G -----------------------------Free Memory
0x710000000 3840M primary -----------Allocated to Primary or control Domain
IO
DEVICE PSEUDONYM BOUND OPTIONS
pci@400 pci_0 yes
pci@500 pci_1 yes
bash-3.2#
Note: Here you haven’t saved the con guration. These are all in-memory con guration. After the power cycle,
you will lose the con guration if it’s not saved in sp con g pro le.
In the above command output, you can see that currents settings are saved in unixarena and these settings will
come up after the system reboot and power cycle.
For an example, if I do any small changes on ldom, it will not update in the spcon g le.
Here we just increased the number vpcus to 12 . The previous number of vpcu was 8. Here sp-con g le
“unixarena” will be activated on next power cycle. Which mean you will lose the CPU setting you just done. In
an order to save the con guration, just re-create the sp-con g like below.
-bash-3.2# ldm -V
System PROM:
Hypervisor v. 1.7.4. @(#)Hypervisor 1.7.4.a 2009/09/21 08:25\015
Hope this article rst steps to learn LDOM for Solari’s beginners. In this article we have seen the basic concepts
of Oracle VM for SPARC (LDOM), packages installation, the con guration of the service domain, con guring the
control domain or primary domain and saving the sp-con guration.
I will try to complete the tutorial by adding another 6 to 8 articles. Hope you will like it. Please share it in social
media to reach the maximum number of people. Thank you for visiting UnixArena
Comments
Hello sir,
Why I’m not able to open ldom quick reference. It’s showing bin by the owner.
Thanks
Reply
Reply
hajee says
OCTOBER 22, 2014 AT 4:23 PM
Hi, while adding ” ldm set-mau 1 primary” Command getting following message. is this something
capacity limited for 0?
Please advise,
Hajee
Reply
Reply
heart_passion says
MARCH 8, 2014 AT 12:20 AM
Reply
Leave a Reply
Your email address will not be published. Required elds are marked *
Comment *
Name *
Email *
Website
POST COMMENT