LDM 02
LDM 02
LDM 02
for SPARC)
https://www.thegeekdiary.com/how-to-install-
and-configure-ldoms-oracle-vm-for-sparc/
Virtualization has been a need of time over several past years as we have machines
now even with 16 cores and memory in TBs. A single machine is now capable of
accommodating even more than 100 VMs at a time. Oracle VM for SPARC formerly
known as LDOMs has played a key role in oracles virtualization strategies and is
improving with every version. Before start configuring our first oracle VM for SPARC
let us understand types of ldoms, ldom services and virtual devices.
Types of logical domains
Name Purpose
Guest No direct access to underlying hardware and does not provide virtual device or services to
other ldoms. Uses virtual device.
I/O has direct access to underlying hardware in the server. It can be used in cases like oracle D
which wants direct/raw access to the storage devices.
Control Service domain that also runs the ldoms manager software to control the configuration of
hypervisor. This ldom manager is responsible for mapping between physical and virtual
devices.
VCC Virtual console Acts as a virtual console for each logical domain
concentrator
VSW Virtual switch service provides network access for guest ldoms to the ph
network ports
VDS virtual disk service provides virtual storage service for guest ldoms
MAU Mathematical Each core of T series CPU will have a MAU for ac
arithmetic unit RAS/DSA encryption
VCONS Virtual console a port in guest ldom that connects to the VCC serv
control domain
VSDEV Virtual disk service physical storage device that is virtualized by VDS
device control domain
VDISK Virtual disk VDISK in guest domain is connected to the VDS s
control domain/service domain
By default all the VCPUs, Memory and MAUs are assigned to the primary domain
which is the default domain created after installing the OVM for SPARC software.
Primary or control domain is used to configure all the guest ldoms and provide
necessary virtual services to them like vcc, vsw and vds. Logical domain manager is
responsible to create, delete, modify and control ldoms, thus make sure the ldmd
service is running before configuring the primary and guest domains. Use delayed
reconfiguration in order to configure the primary ldom without rebooting for previous
changes to take effect
إلى المجالMAUs وMemory وVCPUs يتم تعيين جميع، التكوين األولي لمجال التحكم بشكل افتراضي
ُيستخدم المجال األساسي أو.SPARC لبرنامجOVM األساسي وهو المجال االفتراضي الذي تم إنشاؤه بعد تثبيت
.vds وvsw وvcc نطاق التحكم لتكوين جميع مجاالت الضيف وتقديم الخدمات االفتراضية الالزمة لهم مثل
وبالتالي التأكد من تشغيل خدمة، يكون مدير المجال المنطقي مسؤوًال عن إنشاء وحذف وتعديل والتحكم في النطاقات
استخدم إعادة التكوين المؤجلة لتهيئة النطاق األساسي دون إعادة. قبل تكوين المجالين األساسي والضيفldmd
التشغيل حتى تصبح التغييرات السابقة سارية المفعول
primary# svcs -a | grep ldmd
online 14:23:34 svc:/ldoms/ldmd:default
primary# ldm set-mau 1 primary
primary# ldm set-vcpu 8 primary
primary# ldm start-reconf primary (delayed reconfiguration)
primary# ldm set-memory 4G primary
primary# ldm add-config new_config
primary# ldm list-config
factory-default
new_config [current]
By default communication between control domain and all the guest domains is
disabled. To enable it, virtual switch has to be configured as the network device
instead of nxge0.
primary# ifconfig nxge0 down unplumb
primary# ifconfig vsw0 plumb
primary# ifconfig vsw0 192.168.1.2 netmask + broadcast + up
primary# mv /etc/hostname.nxge0 /etc/hostname.vsw0
The vntsd daemon is responsible to provide the virtual network terminal services to the
guest ldoms. If this service is not running enable it with svcadm command.
We would assign 8 VCPUs, 2 GB of memory and 1 MAU to our first guest ldom. Also a
virtual network vnet1 will be created and associated with the virtual switch vsw0.
Here we first need to specify the physical device that needs to be exported by vdsdev
to the guest domain and then we actually add the virtual disk thus created to the guest
domain. Now use any one of the 3 methods mentioned below.
2. Adding file
3. Adding a volume
Now we can also do a jumpstart installation of the guest domain. But one of the
easiest and most widely used method is add iso image as virtual disk to the guest
ldom and install it from it. Here you can access the vdisk sol10_iso in the ok prompt
and boot from it.
Now check the port which is bound with the guest domain and connect the virtual
console of the guest domain.
Flag definitions
Now you can see various flags in the “ldm list” command output. The falgs represent the current state of the ldom.
primary# ldm -V
# ldm list-devices -a
# ldm list-devices mem