Use vSphere Hot-Add to adjust CPU and RAM

For those who often have to use and work in virtual environments, the shortage of hardware resources occurs quite a lot. However, if they want to fix this problem, how will they do it? Pause the program, upgrade the system ... In the following article, we will guide you some basic tasks to limit.

TipsMake.com - For those who often have to use and work in a virtual environment, the lack of hardware resources happens quite a lot. However, if they want to fix this problem, how will they do it? Pause the program, upgrade the system . In the following article, we will guide you through a few basic steps to limit the problem with the Hot-Add feature of Vmware vSphere.

Basically, this Hot-Add feature allows managers to improve the performance of the system by increasing RAM capacity without affecting the operation of the virtual machine. Likewise, Hot-Plug , but the object here is CPU , not RAM . In some special cases, Hot-Add and Hot-Plug can be used interchangeably.

Some points to note:

In most cases, there are very few types of hardware that can be applied in this 'hot' way, especially while the virtual machine system is operating. Another point to note is that the operating system and the program must be 'identified' by the hardware device that they want to add.

The following is a case where a virtual machine system has not been enabled with Hot-Add or Hot-Plug features .

To refer to the hardware properties of the virtual machine, open the vSphere client program, select the virtual machine (in this test is vMA ), click Edit Settings in the Summary tab, and when the Virtual Machine Properties window displays , open the Hardware tab:

Use vSphere Hot-Add to adjust CPU and RAM Picture 1Use vSphere Hot-Add to adjust CPU and RAM Picture 1

Click Memory and check if the Memory Configuration section is as blurred as the image below.

Use vSphere Hot-Add to adjust CPU and RAM Picture 2Use vSphere Hot-Add to adjust CPU and RAM Picture 2
Assume that the VM - Virtual Machine system is still active when performing this process

If it is blurry, it means that we cannot change the RAM capacity. Next, select the CPUs section to check the processor information:

Use vSphere Hot-Add to adjust CPU and RAM Picture 3Use vSphere Hot-Add to adjust CPU and RAM Picture 3

Try clicking the Add button - with the main function of assigning additional hardware devices to the virtual machine, here we will see there are many devices with text next to unavailable , but only Hard Disk and SCSI Device:

Use vSphere Hot-Add to adjust CPU and RAM Picture 4Use vSphere Hot-Add to adjust CPU and RAM Picture 4

About vSphere Hot-Add and Hot-Plug:

Before we continue, let's talk about some of the drawbacks of using vSphere Hot-Add and Hot-Plug.

While vSphere supports Hot-Add and thus allows users to easily assign more RAM , but does not support the reduction of RAM . And more importantly, these features must be supported by the operating system, not just depending on vSphere .

Below is a list of some versions of Windows Server operating systems that support the feature:

Use vSphere Hot-Add to adjust CPU and RAM Picture 5Use vSphere Hot-Add to adjust CPU and RAM Picture 5

Besides, some other operating systems support the ability to increase CPU capacity without having to reboot:

Windows 7 Enterprise and Ultimate 64-bit

Windows Server 2008 64-bit Datacenter

Both Hot-Add and Hot-Plug features are not enabled by default, and if you want to use them, you must turn off the virtual machine first. This is quite complicated, because when you realize that the system is sluggish, that's when everything works. The last point to note is that Hot-Add and Hot-Plug are not compatible with VMware Fault Tolerance, so if your system is using VMware FT on a virtual machine, Hot-Add or Hot-Plug is not enabled.

Enable Hot-Add and Hot-Plug:

To do this, open the vSphere Client program and turn off the virtual machine you want to apply, make sure that the operating system supports Hot-Plug and Hot-Add features before continuing. After you have turned off the virtual machine, select Edit Settings in the Summary tab:

Use vSphere Hot-Add to adjust CPU and RAM Picture 6Use vSphere Hot-Add to adjust CPU and RAM Picture 6

In the Virtual Machine Properties window , open the Options tab and select Memory / CPU Hotplug . Next is Memory Hot Add and select Enable memory . Similarly to the CPU , open the Hot Plug CPU controller and select Enable CPU . Then click OK :

Use vSphere Hot-Add to adjust CPU and RAM Picture 7Use vSphere Hot-Add to adjust CPU and RAM Picture 7

At this point, you can turn on the virtual machine. Next, check the hardware configuration and compare it with before using Hot-Add and Hot-Plug. Log in to the internal operating system and open My Computer Properties :

Use vSphere Hot-Add to adjust CPU and RAM Picture 8Use vSphere Hot-Add to adjust CPU and RAM Picture 8

And see hardware information: RAM and CPU . In this test our is 1GB of RAM:

Use vSphere Hot-Add to adjust CPU and RAM Picture 9Use vSphere Hot-Add to adjust CPU and RAM Picture 9

In the left pane, select Device Manager> Processors:

Use vSphere Hot-Add to adjust CPU and RAM Picture 10Use vSphere Hot-Add to adjust CPU and RAM Picture 10

Increasing more RAM and CPU into active virtual machine:

Next, go back to the vSphere Client program, select the Summary> Edit Settings tab as before. Go to the Properties window of the virtual machine, select the Hardware and Memory tab. And in this time, the Memory Configuration item can be used:

Use vSphere Hot-Add to adjust CPU and RAM Picture 11Use vSphere Hot-Add to adjust CPU and RAM Picture 11
We were able to do this while the virtual machine was working

After increasing the RAM capacity (for example, from 1GB to 3GB), do the same with the CPU :

Use vSphere Hot-Add to adjust CPU and RAM Picture 12Use vSphere Hot-Add to adjust CPU and RAM Picture 12
Change from 1 CPU to 3 CPU

Click OK to apply the changes. If you want to check the results of this process, open the Summary tab:

Use vSphere Hot-Add to adjust CPU and RAM Picture 13Use vSphere Hot-Add to adjust CPU and RAM Picture 13

If you want to check it further, log in to the operating system inside the virtual machine and open My Computer Properties :

Use vSphere Hot-Add to adjust CPU and RAM Picture 14Use vSphere Hot-Add to adjust CPU and RAM Picture 14
CPU

Use vSphere Hot-Add to adjust CPU and RAM Picture 15Use vSphere Hot-Add to adjust CPU and RAM Picture 15
RAM

>>> Video reference:

Good luck!

4 ★ | 1 Vote