Previous page

Next page

Locate page in Contents

Print this page

Enabling Memory Hotplug for Virtual Machines

If a guest operating system supports the memory hotplug functionality, you can enable this functionality for the virtual machine. Once the memory hotplug functionality is turned on, you can increase the amount of memory available to your virtual machines even if they are running.

Note: Decreasing the amount of memory available to a running virtual machine is not supported in the current version of Virtuozzo.

Currently, the following systems come with the memory hotplug support:

Linux (both x86 and x64 versions)

  • CentOS 5.3 and higher
  • Red Hat Enterprise LInux 5.3 and higher
  • Fedora 13 and higher
  • SUSE Linux Enterprise Server 10 and higher
  • Ubuntu 10.04 and higher

Windows

  • x64 version of Windows Server 2008 R2 (Datacenter Edition)
  • x86 and x64 versions of Windows Server 2008 (Standard, Enterprise, and Datacenter editions)
  • x86 and x64 versions of Windows Server 2003 (Enterprise Edition)

By default, memory hotplug support is disabled for all newly created virtual machines. To enable this functionality, you can use the --mem-hotplug option of the prlctl set command. For example, to enable the memory hotplug support in the MyVM virtual machine that runs one of the supported operating systems, stop the MyVM virtual machine and run this command:

# prlctl set MyVM --mem-hotplug on

set mem hotplug: 1

Once the functionality is enabled, you can increase the amount of memory for the MyVM virtual machine even it is running.

To disable the memory hotplug support in the MyVM virtual machine, use this command:

# prlctl set MyVM --mem-hotplug off

set mem hotplug: 0

The changes will come into effect on the next virtual machine start.