VMware Communities
Juge_I
Contributor
Contributor

Need for adjusting CPU, Memory configuration on the fly for my virtual machine

Is it so I need vSphere with VMware and is there some version of vSphere which has clearer setup procedure. Cannot use virtual boot disk with customer performance test environment.
My only need is to test system with some recovery tests. Machine loosing CPU for a minute etc...

Reply
0 Kudos
3 Replies
scott28tt
VMware Employee
VMware Employee

@Juge_I 

You can't "hot remove" CPU or memory from a VM, you can "hot add" them though if you have the right hypervisor.

ESXi allows you to "hot add" CPU and memory for certain guest OSes, plus it also allows you to artificially constrain compute resource allocation temporarily - for example you can build a VM with 2 virtual CPUs but then temporarily set a "CPU limit" that is the equivalent in MHz to 1 of your physical CPU cores. That's not the same as doing a "hot remove", but as close as you can probably get.

If an OS really did lose a CPU or access to memory for a minute it would almost certainly crash.

vSphere is made up of ESXi as the host hypervisor, and vCenter Server as a centralised management mechanism - if you only need to conduct your tests on 1 ESXi host, you wouldn't need vCenter Server, this makes for a much simpler deployment, look here: https://docs.vmware.com/en/VMware-vSphere/7.0/vsphere-esxi-70-installation-setup-guide.pdf

 


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
Reply
0 Kudos
darksidemaze
Contributor
Contributor

Another way to limit what code can be run on a CPU is Processor affinity - Wikipedia

Basically you are controlling what software can run on a CPU/core and/or Graphics card processor/core. 

Some links which might be useful if you are a coder or want greater insight into facilities available at different layers.
SetProcessAffinityMask function (winbase.h) - Win32 apps | Microsoft Docs
Differences in the Binding Model from Direct3D 11 - Win32 apps | Microsoft Docs
Resource Binding Overview - Win32 apps | Microsoft Docs

 

Reply
0 Kudos
continuum
Immortal
Immortal

>> Is it so I need vSphere with VMware and is there some version of vSphere which has clearer setup procedure.
>> Cannot use virtual boot disk with customer performance test environment.
>> My only need is to test system with some recovery tests. Machine loosing CPU for a minute etc...

Next time please read your post before you post it.
Do you want to modify VMplayerVMs ? .... what platform do you use Player or ESXi ???
Old guestOS typically can not handle any changes regarding CPUs .... - what guestOS do you talk about ?

>> >> Cannot use virtual boot disk with customer performance test environment.
What ???
A VM can not be launched when a vmdk is missing - unless the bootdisk is a virtual USB-disk !!!

>> Machine loosing CPU for a minute etc...
A VM that lost its virtual CPU is a crashed VM ...

TIP: chances for receiving useful answers are good  when you tell us what you EXACTLY WANT TO DO.
Chances are poor if you assume that we already know that.

Ulli

 


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

Reply
0 Kudos