1837921 Members
6857 Online
110124 Solutions
New Discussion

Adding vCPUs dynamically

 
SOLVED
Go to solution
Hugo F Martinez
Advisor

Adding vCPUs dynamically

Hi,
I was trying to add vCPUs to my MV and i get the following message

vmhost1#hpvmmodify -P ttsprod -c 8 -e 10
hpvmmodify: Unable to dynamically set the number of vcpus.
hpvmmodify: Guest needs to be restarted (using hpvmstop followed by hpvmstart) for all changes to take effect.
vmhost1#hpvmstatus -v
Version B.04.20.05

Let me know if Im wrong but I read that adding vCPUs to a VM is dynamic in VM4.2

Thanks in advance
4 REPLIES 4
Dave Olker
Neighborhood Moderator
Solution

Re: Adding vCPUs dynamically

Online CPU add/delete is not available with HPVM v4.2, nor v4.3 shipping later this month. You can change the CPU entitlements of running guests, and you can disable CPUs(effectivley force them idle) then later re-enable CPUs inside a running guest, but you cannot change the number of CPUs assigned to a running guest.

Regards,

Dave


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
Hugo F Martinez
Advisor

Re: Adding vCPUs dynamically

Sorry to ask buy how can I disable cpu from the guest?
And do you have any paper that can be disclosed regarding new features about the version 4.3 of IVMs?
Torsten.
Acclaimed Contributor

Re: Adding vCPUs dynamically

The admin guide and notes are on the web.

http://www.hp.com/go/hpux-hpvm-docs

...
Chapter 1.1 New Features and Enhancements in This Release
...

From the guide:

...
1.7 Attributes That Can Be Changed Dynamically

A dynamic change does not require a reboot of the guest in question. The following attributes
can be changed dynamically:
â ¢ CPU
â Adding or removing guest vCPU entitlement. The default is uncapped mode. In
uncapped mode, this is also automatic based on overall â freeâ entitlement.
â Enabling or disabling vCPUs from within a guest.


Chapter 3.2.3 Virtual CPUs
...
You can change the number of enabled CPUs in HP-UX guests, using the hpvmmgmt â c num
command. This command sets the number of enabled virtual CPUs to the number indicated by ...





See also page 284 (example)



# hpvmmgmt -c 1
hpvmmgmt: 1 virtual CPUs enabled, 1 disabled


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Emil Velez
Honored Contributor

Re: Adding vCPUs dynamically

You had to configure the guest with at least 8 cpus then you can modify the guest to enable up to 8 cpus.

Beginning with VM 4.2, the number of enabled VM guest virtual CPUs
can be changed in the range of 1 to number of vCPUs attached when
the guest was started.
â ¢ On the VM guest
# hpvmmgmt -l cpu
hpvmmgmt: 3 virtual CPUs enabled, 0 disabled
# hpvmmgmt â c 2
# hpvmmgmt: 2 virtual CPUs enabled, 1 disabled


If the initial VM vCPU start value is not high enough
â ¢ shutdown the VM guest.
â ¢ use hpvmmodify â P â c to allocate num vCPUs
â ¢ restart the VM