How to Enable HugePages for a Para-Virtualized Machine ( PVM ) on Oracle VM 3.2 (Doc ID 1529373.1)

Last updated on JULY 12, 2017

Applies to:

Oracle VM - Version 3.2.4 and later
Linux x86-64

Goal

The goal of this document is to instruct on how to properly configure and enable the HugePages Kernel feature in a Oracle VM 3.2 environment for a PVM (Paravirtualized Virtual Machine). In order to accomplish this, the VM Server (Dom0) requires to be configured properly as well the Virtual Machine (guest or DomU). You can use Hugepages in a HVM (Hardware Virtualized Machine) as usual, with or without having this feature ('superpages') configured.

Requirements:

Oracle VM - Version 3.2.4 and later (earlier versions might work but are not supported)

Guest OS requirements:

Note: For Oracle VM 3.4.x, PVM and Hugepages see Document 2216622.1
Note: Hugepages feature is disabled for PVM guest running UEK4 4.1.12-85.el6uek and later.

Kernel changelog shows: * Mon Jan 23 2017 Chuck Anderson <chuck.anderson@oracle.com> [4.1.12-85.el6uek]
- x86/mm/xen: Suppress hugetlbfs in PV guests (Jan Beulich) [Orabug: 25227135] {CVE-2016-3961}

The recommendations is to change the domain type for virtual machines from Paravirtualized (PVM) to Hardware virtualized, with paravirtualized drivers (PVHVM) for those cases.

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms