You are on page 1of 3

LDOMS (H/W level Virtualization) Concept

In Solaris we have two beautiful concepts of Virtualization.
1) LDOMS (Logical Domains): Hardware level Virtualization.
2) ZONES: Operating System Level Virtualization.
Now in this document let us discuss about LDOMS in brief.
Logical Domains (LDOMS) :
LDOMs are also called as Oracle VM for SPARC. LDOMS can be created on High
End servers like T5 series, M5 series and on all above that.
Before splitting High end server into Logical Domains we need Primary Domains.
A server like M5-32 can have maximum of 4 PDOMS. We can create the whole
server as a single PDOM also.
For every Pdom we need a Control Domain that controls the Logical Domain
Environment. Control domain will have the control of all resources and guest
domains.
Here for every PDOM we can create a control domain itself or we can make a
Control and I/O Domain.
Every LDOM is a full virtual machine that runs an independent operating system
instance. Below are different domains that can be created on a PDOM.




Control domain
Service domain
I/O domain
Root domain
Guest domain

The Control domain, as its name implies, controls the logical domain
environment. It is used to configure machine resources and guest domains, and
provides services necessary for domain operation, such as virtual console
service. The control domain also normally acts as a service domain.
Service domains present virtual services, such as virtual disk drives and network
switches, to other domains.
I/O domains have direct ownership of a PCI bus and direct access to physical I/O
devices, such as a network card in a PCI controller.
Root domains have direct ownership of PCIe "root complex" and all associated
PCIe slots. This can be used to grant access to physical I/O devices. A root
domain is also an I/O domain.
Guest domains run an operating system instance without performing any of the
above roles, but leverage the services provided by the above in order to run
applications.
Control and service functions can be combined within domains, however it is
recommended that user applications not run within control or service domains in
order to protect domain stability and performance.

so that we can achieve redundancy while ldoms are accessing the hardware resources. ldm add-domain ldom ---------. (ldm binddomain ldom) 3) ACTIVE ------. We need to install Logical Domains Manager software to enable ldm commands in control domain.It is better to create both Control and I/O Domain individually.to remove memory from a ldom. ldm remove-vcpu number ldom ---------.to remove virtual cpu's from a ldom. ********* ldm list -----------.to add virtual cpu's to a ldom.to add virtual switch from a ldom. We can bring back a ACTIVE domain to BOUND state by giving ldm stop-domain ldom. ldm remove-vsw vswitch-name ---------. Let us see few basic ldm commands needed while creating a new ldom.to remove a particular ldom.state achieved by a ldom when we start the domain (ldm start-domain ldom) To perform any action related to adding. We can bring back a BOUND domain to INACTIVE state by giving ldm unbinddomain ldom.to remove virtual switch from a ldom.to add a new ldom. (ldm add-domain ldom) 2) BOUND ------.to list all ldoms. ldm remove-memory size [unit] ldom ---------.removing resources from a ldom we need to bring that particular domain either to BOUND or INACTIVE state. ********* ldm add-vsw vswitch-name ldom ---------. ********* ldm add-memory size [unit] ldom ---------. Every ldom will have three states: 1) INACTIVE ---.to add memory from a ldom.state achieved by a ldom when we bind it. ********* ldm add-vcpu number ldom ---------. . ldm remove-domain ldom ---------. ********* ldm add-vnet vnetname vsw=vswitch-name ---------.to add virtual net from a ldom.state achieved by a ldom immediately after creating it.

********* ldm add-vdisk disk-name volume-name@service-name ldom --.to add virtual disk service.to add a disk from vds to ldom.to remove virtual net from a ldom. ********* ldm start-domain ldom ldm stop-domain ldom ********* ldm bind-domain ldom ldm unbind-domain ldom ********* ldm list-bindings ldom ldm list-devices ldom ldm list-services ldom ################################################ ################################ . ldm remove-vds service-name ---------.to remove virtual disk service.to remove a disk of vds from ldom.to remove a device from vds. ldm remove-vdisk disk-name ldom --. ldm remove-vdsdev volume-name@service-name ---------.ldm remove-vnet vnetname ldom ---------. ********* ldm add-vds service-name ldom ---------.to add a device to vds. ********* ldm add-vdsdev devname volume-name@service-name ---------.