Oracle Licensing

Oracle OVM Licensing – How to license Oracle software

Oracle OVM Licensing

  • Oracle VM is a server virtualization solution.
  • Licensing options: per CPU socket, per CPU core, and cloud-based.
  • Understand CPU cores and threads for efficient virtualization.
  • Hard partitioning binds vCPUs to physical CPU cores or threads.
  • Compliance with Oracle licensing policies is crucial.
  • Trusted Partitions offer subset licensing without live migration limits.

Oracle OVM Licensing – How To License Oracle

Oracle OVM Licensing

Brief Introduction to Oracle VM

Oracle VM is a powerful server virtualization solution that allows multiple operating systems to run on a single physical server.

This technology leverages the open-source Xen hypervisor to provide a flexible and efficient platform for managing virtual environments.

Oracle VM offers numerous benefits, including improved resource utilization, reduced hardware costs, and enhanced scalability.

However, understanding the licensing requirements is crucial to maximizing these benefits, ensuring compliance, and avoiding unnecessary expenses.

Oracle VM Licensing Overview

Oracle OVM Licensing - How To License Oracle

Defining CPU Cores and Threads
A CPU core is a physical processing unit capable of executing tasks independently. Threads, or logical processors or virtual cores, are virtualized units created by dividing physical cores. Each thread can handle separate tasks simultaneously, improving multitasking efficiency.

Impact on Virtualization and Performance
Allocating CPU cores and threads to virtual machines (VMs) determines performance levels in virtualized environments. Proper allocation ensures VMs operate efficiently, while poor allocation risks bottlenecks and resource contention.

How CPUs Are Presented to Guest Virtual Machines
Hypervisors or bare metal operating systems can present physical CPU cores (without hyperthreading) or threads (with hyperthreading) to guest VMs. The guest VMs see these as virtual CPUs (vCPUs), enabling them to run applications using these virtualized processing units.

Optimizing CPU Allocation in Virtualization

Performance Dependence on CPU Cores and Threads
The performance of a VM directly depends on the number of CPU cores and threads assigned. Allocating sufficient resources ensures that VMs can handle workloads efficiently. Inadequate resources lead to slow performance, while excess resources can result in inefficiencies.

Balancing CPU Allocation

  • Under-Allocation Risks: When vCPUs are under-allocated, VMs may lack the necessary resources, leading to sluggish performance and delayed responses.
  • Over-Allocation Risks: Assigning too many vCPUs wastes resources and creates contention for physical cores, reducing overall system efficiency.

Striking the right balance between under-allocation and over-allocation is key to ensuring optimal performance while maximizing resource utilization.

Understanding how Oracle VM handles CPU cores and threads can help organizations make informed decisions about licensing, resource allocation, and performance optimization. Proper planning ensures compliance and efficient use of Oracle VM in virtualized environments.

Using Hard Partitioning to Optimize Performance

Hard Partitioning to Optimize Performance

What is Hard Partitioning?
Hard partitioning, also known as CPU pinning, is a method of binding virtual CPUs (vCPUs) to specific physical CPU cores or threads. This approach dedicates processing resources to virtual machines (VMs), eliminating resource contention and ensuring predictable performance.


Benefits of Hard Partitioning

  1. Dedicated CPU Resources
    • Each VM has exclusive access to specific CPU cores or threads, avoiding competition with other VMs.
    • This ensures stable and consistent performance for resource-intensive applications.
  2. Optimized Performance
    • By preventing interference from other VMs, hard partitioning delivers predictable performance for critical workloads.
    • This method is especially beneficial for environments running latency-sensitive or high-performance applications.
  3. Improved Resource Control
    • Provides precise control over CPU allocation, allowing administrators to match resources to workload demands effectively.

Implementing Hard Partitioning in Oracle VM

How to Bind vCPUs to Physical CPU Cores or Threads

  1. Download Oracle VM Utilities
    • Access the Oracle VM Utilities (e.g., ovm_vmcontrol) from My Oracle Support to enable CPU pinning.
  2. Connect to Oracle VM Manager
    • Use the appropriate command to connect to the Oracle VM Manager and identify the current CPU/vCPU bindings for VMs.
  3. Set vCPU Bindings
    • Assign specific physical CPU cores or threads to the vCPUs of a virtual machine using predefined commands.
  4. Restart the Virtual Machine
    • Stop and restart the VM to apply the changes and ensure the bindings are active.
  5. Verify CPU Pinning
    • Use Oracle VM commands to confirm that the vCPUs are correctly bound to the designated physical cores or threads.

Key Tools and Commands for Hard Partitioning

  • xm vcpu-list
    It summarizes which virtual CPUs are running on which physical CPUs. This information is essential for managing and verifying CPU pinning configurations.
  • xenpm get-cpu-topology
    Displays the physical CPU topology, helping administrators understand core/thread mappings and optimize vCPU allocation.

Advantages of Hard Partitioning for Oracle Licensing

Administrators can design tailored CPU allocation strategies that align with business needs and Oracle licensing constraints. They can also effectively configure hard partitioning in Oracle VM to ensure optimal performance for the virtual environment.

Compliance with Oracle Licensing Policies

Oracle recognizes hard partitioning as a method to limit CPU usage to specific cores, reducing licensing costs by aligning with processor licensing requirements.

Efficient Resource Utilization

Hard partitioning helps avoid over-licensing by accurately aligning licensed CPUs with actual usage.

Flexibility for Complex Deployments

Oracle Hard Partition Licensing

Hard Partitioning to Optimize Performance

Oracle’s hard partition licensing guidelines provide a structured approach to aligning virtual CPU (vCPU) allocations with physical CPU cores or threads in Oracle VM environments.

This article outlines the essential requirements, policies, and example scenarios for managing Oracle licensing effectively in hard-partitioned environments.


Key Requirements for Running Oracle Software in Oracle VM

Complying with Hard Partition Licensing
Organizations running Oracle software in Oracle VM environments must adhere to specific guidelines to ensure compliance with Oracle’s licensing policies.

  1. Binding vCPUs to Physical CPU Threads or Cores
    • Assign vCPUs to specific physical CPU cores or threads to comply with Oracle’s hard partition licensing requirements.
    • Proper vCPU allocation prevents unauthorized usage and ensures the correct number of licensed processors.
  2. Verification of CPU Bindings
    • Use tools xm vcpu-list to verify that vCPUs are correctly bound to the intended physical CPU cores or threads.
    • Regular monitoring ensures consistent compliance with licensing terms.

Oracle Licensing Policies for Hard Partitioning

Prohibition of Live Migration for CPU-Pinned VMs

Under Oracle’s licensing terms, live migration of virtual machines (VMs) with pinned CPUs is prohibited. This restriction ensures that vCPU bindings remain static and align with licensed physical resources.

Exclusion from DRS and DPM Policies

  • Distributed Resource Scheduler (DRS):
    VMs with CPU pinning cannot participate in DRS policies designed to optimize resource allocation dynamically.
  • Distributed Power Management (DPM):
    Similarly, these VMs are excluded from DPM policies to reduce power consumption during low-utilization periods.

Licensing Implications for Server Pools

Hard partition licensing does not permit live migration within Oracle VM server pools. Instead, licensing must account for all physical servers hosting Oracle software based on their CPU core count.


Example Scenarios for Server Pool Licensing

  1. Small Server Pool
    • Configuration: 32 physical servers, 20 VMs running Oracle software.
    • Licensing Requirement: License the 20 largest physical servers based on CPU core count.
  2. Large Server Pool
    • Configuration: 32 physical servers, 50 VMs running Oracle software.
    • Licensing Requirement: License all 32 physical servers since the total number of VMs exceeds the number of physical servers.

These examples highlight the importance of aligning licensing with the largest resource-consuming servers in a pool to remain compliant.


Understanding Trusted Partitions

Definition and Advantages
Trusted Partitions provide a flexible alternative for licensing Oracle software without the restrictions of live migration. This feature is available exclusively on Oracle Engineered Systems and offers the following benefits:

  • Subset Licensing: Organizations can license only a portion of the environment instead of the entire server pool.
  • No Live Migration Restrictions: Live migration is allowed within Trusted Partition setups, provided the configuration adheres to Oracle’s guidelines.

Steps for Configuring Hard Partition Licensing in Oracle VM

  1. Obtain Required Utilities
    • Download Oracle VM utilities, such as ovm_vmcontrol, from My Oracle Support.
  2. Set Up CPU Pinning
    • Use the utilities to bind vCPUs to specific physical CPU cores or threads.
  3. Restart Virtual Machines
    • Stop and restart VMs to apply the new CPU binding configurations.
  4. Verify Bindings
    • Confirm the vCPU bindings using commands like xm vcpu-list or xenpm get-cpu-topology.
  5. Document Licensing Allocations
    • Maintain accurate records of vCPU-to-core bindings to simplify audits and ensure compliance.

Licensing Hard Partitioning vs. Trusted Partitions

AspectHard PartitioningTrusted Partitions
Live MigrationNot permittedPermitted within Trusted Partition environments
System RequirementsApplicable to any Oracle VM setupExclusive to Oracle Engineered Systems
Licensing ScopeAll physical servers in a server poolSubset licensing allowed
FlexibilityLimited by static vCPU bindingsHighly flexible

Best Practices for Oracle Hard Partition Licensing

Maintain detailed records of configurations, including server pool setups, vCPU bindings, and license entitlements.t of the environment without restricting live migration, provided the setup adheres to Oracle’s guidelines for partitioned environments.

Plan Resource Allocation

Carefully allocate vCPUs to avoid over-licensing while ensuring adequate performance for critical workloads.

Regular Audits

Periodically verify CPU bindings and licensing compliance to avoid unexpected penalties during Oracle audits.

Understand Licensing Metrics

Familiarize your team with Oracle’s licensing metrics, including core factors and vCPU binding requirements.

Utilize Trusted Partitions for Flexibility

Where applicable, leverage Trusted Partitions for scalable and cost-effective licensing without live migration restrictions.

Oracle OVM Licensing – How To License Oracle

What is Oracle VM Licensing?
Oracle VM Licensing refers to allocating Oracle licenses to virtualized environments running on Oracle VM, ensuring compliance with Oracle’s licensing policies.

Does Oracle VM Support Hard Partition Licensing?
Yes, Oracle VM supports hard partition licensing. Under this model, vCPUs are bound to specific physical CPU cores or threads, limiting the software to specific resources.

How Do You Calculate Processor Licenses in Oracle VM?
Processor licenses are calculated by counting the number of physical cores allocated to Oracle workloads and applying Oracle’s core factor table.

What Is the Role of vCPUs in Oracle VM Licensing?
vCPUs represent virtual CPU allocations in a VM. Oracle requires these to be mapped directly to physical CPU cores for hard partition compliance.

Can You Use Live Migration with Oracle VM Hard Partition Licensing?
Live migration is not permitted for VMs using hard partitioning as it breaks the static vCPU-to-CPU core allocation required for compliance.

What Are Trusted Partitions in Oracle Licensing?
Trusted Partitions, which are exclusive to Oracle Engineered Systems, allow flexible licensing by enabling live migration and subset licensing.

How Can You Verify vCPU-to-CPU Core Mapping?
Commands like xm vcpu-list or xenpm get-cpu-topology can be used to verify vCPU-to-CPU core mapping in Oracle VM environments.

Is It Mandatory to License All Servers in a Server Pool?
If using hard partitioning, you license only the specific physical cores assigned. Without it, all servers in the pool must be licensed.

What tools are available to manage Oracle VM licensing?
Oracle VM Manager and utilities ovm_vmcontrol assist in setting up and verifying CPU bindings for licensing compliance.

What Happens If You Don’t Follow Oracle VM Licensing Policies?
Non-compliance can result in audit findings, additional licensing fees, or penalties from Oracle.

Can You Use Oracle VM in Hybrid Environments?
Yes, Oracle VM can run in hybrid setups, but licensing policies must align with both on-premise and cloud environments.

What Licensing Challenges Are Associated with CPU Pinning?
CPU pinning requires precise vCPU-to-core assignments. Misconfigurations can lead to licensing non-compliance or underutilized resources.

How Does Oracle Handle Licensing for Third-Party Hypervisors?
Third-party hypervisors are generally not eligible for hard partition licensing, and all physical servers in the cluster may need licensing.

Are Virtual CPUs (vCPUs) Counted the Same as Physical CPUs?
No, Oracle distinguishes vCPUs from physical CPUs. However, vCPUs must map directly to physical cores for hard partitioning compliance.

What Are the Best Practices for Oracle VM Licensing?

  • Regularly verify CPU core bindings.
  • Document vCPU-to-core mappings.
  • Avoid using live migration with hard partitioning.
  • Plan license allocations for scalability.
  • Conduct internal audits to ensure compliance.

Do you want to know more about our Oracle License Management Services?

Please enable JavaScript in your browser to complete this form.
Author
  • Fredrik Filipsson has 20 years of experience in Oracle license management, including nine years working at Oracle and 11 years as a consultant, assisting major global clients with complex Oracle licensing issues. Before his work in Oracle licensing, he gained valuable expertise in IBM, SAP, and Salesforce licensing through his time at IBM. In addition, Fredrik has played a leading role in AI initiatives and is a successful entrepreneur, co-founding Redress Compliance and several other companies.

    View all posts