<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>Hot Plug CPU &#8211; AgileOps</title>
	<atom:link href="https://agileops.co.uk/category/hot-plug-cpu/feed/" rel="self" type="application/rss+xml" />
	<link>https://agileops.co.uk</link>
	<description>Virtualization made simple for Everyone.</description>
	<lastBuildDate>Thu, 14 Nov 2019 22:44:18 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.8</generator>

<image>
	<url>https://agileops.co.uk/wp-content/uploads/2017/10/favicon-01-50x50.png</url>
	<title>Hot Plug CPU &#8211; AgileOps</title>
	<link>https://agileops.co.uk</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">194680508</site>	<item>
		<title>How to enable Hot Plug CPU and Hot Plug Memory</title>
		<link>https://agileops.co.uk/how-to-enable-hot-plug-cpu-and-hot-plug-memory/</link>
					<comments>https://agileops.co.uk/how-to-enable-hot-plug-cpu-and-hot-plug-memory/#respond</comments>
		
		<dc:creator><![CDATA[Ibrahim Quraishi]]></dc:creator>
		<pubDate>Tue, 05 Nov 2019 09:00:12 +0000</pubDate>
				<category><![CDATA[Hot Plug CPU]]></category>
		<category><![CDATA[Hot Plug Memory]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[hot add cpu]]></category>
		<category><![CDATA[hot add memory]]></category>
		<guid isPermaLink="false">https://agileops.co.uk/?p=15125</guid>

					<description><![CDATA[Hi All, today I am going to explain how we can leverage the Hot add CPU and Memory feature on a Virtual Machine. This can be a very handy feature...]]></description>
										<content:encoded><![CDATA[<div class="vgblk-rw-wrapper limit-wrapper">
<p>Hi All, today I am going to explain how we can leverage the Hot add CPU and Memory feature on a Virtual Machine. This can be a very handy feature if we are running a production environment that cannot allow downtime.</p>



<p>Agenda for today:</p>



<p>What is Hot Plug CPU</p>



<p>What is Hot Plug Memory</p>



<p>Perquisite to enable</p>



<p>How to enable the settings</p>



<p><strong>What is Hot Plug CPU</strong><br> Hot Plug CPU is a technique that can dynamically increase the CPU cores for a VM that supports HOT add CPU. This is however depended on the guest OS which you are running. I have found on Linux based CentOS /Red Hat any version above 6.5 supports this feature.</p>



<p>How can we forget Microsoft Windows Server? Don&#8217;t worry any OS from 2012 above are fully supported. ( 2012 R2/ 2016 and 2019 )</p>



<p> To enable right click and edit settings of the VM, then expand CPU drop down tick the check box to enable CPU Hot Add  as shown below:</p>



<figure class="wp-block-image"><img fetchpriority="high" decoding="async" width="1011" height="555" data-attachment-id="15267" data-permalink="https://agileops.co.uk/how-to-enable-hot-plug-cpu-and-hot-plug-memory/image-18/" data-orig-file="https://agileops.co.uk/wp-content/uploads/2019/11/image.png" data-orig-size="1011,555" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="image" data-image-description="" data-image-caption="" data-medium-file="https://agileops.co.uk/wp-content/uploads/2019/11/image-300x165.png" data-large-file="https://agileops.co.uk/wp-content/uploads/2019/11/image.png" tabindex="0" role="button" src="https://agileops.co.uk/wp-content/uploads/2019/11/image.png" alt="" class="wp-image-15267" srcset="https://agileops.co.uk/wp-content/uploads/2019/11/image.png 1011w, https://agileops.co.uk/wp-content/uploads/2019/11/image-300x165.png 300w, https://agileops.co.uk/wp-content/uploads/2019/11/image-768x422.png 768w, https://agileops.co.uk/wp-content/uploads/2019/11/image-700x384.png 700w, https://agileops.co.uk/wp-content/uploads/2019/11/image-466x256.png 466w, https://agileops.co.uk/wp-content/uploads/2019/11/image-933x512.png 933w, https://agileops.co.uk/wp-content/uploads/2019/11/image-350x192.png 350w" sizes="(max-width: 1011px) 100vw, 1011px" /></figure>



<p><strong>What is Hot Plug Memory<br> </strong>Dynamically increasing the memory of a running VM is hotplug memory. this is fully supported from Linux servers Red Hat / Centos based from 6.5 and above and Windows server above 2012.</p>



<p>To enable edit settings of the VM and expand the Memory section Memory Hot Plug enable check box as shown below:</p>



<figure class="wp-block-image"><img decoding="async" width="1024" height="297" data-attachment-id="15268" data-permalink="https://agileops.co.uk/how-to-enable-hot-plug-cpu-and-hot-plug-memory/image-1-4/" data-orig-file="https://agileops.co.uk/wp-content/uploads/2019/11/image-1.png" data-orig-size="1041,302" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="image-1" data-image-description="" data-image-caption="" data-medium-file="https://agileops.co.uk/wp-content/uploads/2019/11/image-1-300x87.png" data-large-file="https://agileops.co.uk/wp-content/uploads/2019/11/image-1-1024x297.png" tabindex="0" role="button" src="https://agileops.co.uk/wp-content/uploads/2019/11/image-1-1024x297.png" alt="" class="wp-image-15268" srcset="https://agileops.co.uk/wp-content/uploads/2019/11/image-1-1024x297.png 1024w, https://agileops.co.uk/wp-content/uploads/2019/11/image-1-300x87.png 300w, https://agileops.co.uk/wp-content/uploads/2019/11/image-1-768x223.png 768w, https://agileops.co.uk/wp-content/uploads/2019/11/image-1-700x203.png 700w, https://agileops.co.uk/wp-content/uploads/2019/11/image-1-466x135.png 466w, https://agileops.co.uk/wp-content/uploads/2019/11/image-1-933x271.png 933w, https://agileops.co.uk/wp-content/uploads/2019/11/image-1-350x102.png 350w, https://agileops.co.uk/wp-content/uploads/2019/11/image-1.png 1041w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p><strong>Perquisite to Enable Hot Add</strong><br> The virtual machine has a guest operating system that supports Memory hot-add functionality.<br> The virtual machine is using hardware version 7 or later.<br> VMware Tools is installed.<br> Power off the Virtual Machine to enable hot-add. Can be scripted with PowerCLI.</p>



<figure class="wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="CentOS Linux Hot Plug CPU and Hot Plug Memory Demo" width="1400" height="788" src="https://www.youtube.com/embed/_7LTnqmCHFI?feature=oembed" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div></figure>



<p>Limitation for memory if its set less than 4 GB you can only extend it till maximum of 3 Gb. to over come this you should power off and set the memory on minimum of 4 GB then ESXi server will allow you increase the memory to the full host capacity </p>
</div><!-- .vgblk-rw-wrapper -->]]></content:encoded>
					
					<wfw:commentRss>https://agileops.co.uk/how-to-enable-hot-plug-cpu-and-hot-plug-memory/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">15125</post-id>	</item>
		<item>
		<title>How to enable Hot Add CPU and Hot Add Memory</title>
		<link>https://agileops.co.uk/how-to-enable-hot-add-cpu-and-hot-add-memory/</link>
					<comments>https://agileops.co.uk/how-to-enable-hot-add-cpu-and-hot-add-memory/#respond</comments>
		
		<dc:creator><![CDATA[Ibrahim Quraishi]]></dc:creator>
		<pubDate>Wed, 17 Jul 2019 16:38:51 +0000</pubDate>
				<category><![CDATA[ESX]]></category>
		<category><![CDATA[Hardware Virtualization]]></category>
		<category><![CDATA[Hot Plug CPU]]></category>
		<category><![CDATA[Hot Plug Memory]]></category>
		<category><![CDATA[VMware]]></category>
		<guid isPermaLink="false">https://agileops.co.uk/?p=14888</guid>

					<description><![CDATA[Hi All, today I am going to explain how we can leverage the Hot add CPU and Memory feature on a Virtual Machine. This can be a very handy feature...]]></description>
										<content:encoded><![CDATA[<div class="vgblk-rw-wrapper limit-wrapper">
<p>Hi All, today I am going to explain how we can leverage the Hot add CPU and Memory feature on a Virtual Machine. This can be a very handy feature if we are running a production environment that cannot allow downtime.</p>



<p>Today I am going to cover the following topics. </p>



<p>What is Hot Plug CPU</p>



<p>What is Hot Plug Memory</p>



<p>

Perquisite to enable

</p>



<p>How to enable the settings  </p>



<h2 class="wp-block-heading"> What is Hot Plug CPU </h2>



<p><strong>Hot Plug CPU  </strong>is a technique that can dynamically increase the cpu cores for a VM that supports HOT add CPU. This is however depended on the guest OS which you are running. I have found on Linux based CentOS /Red Hat any version above 6.5 supports this feature.</p>



<p>How can we forget Microsoft Windows Server? Dont worry any OS from 2012 above are fully supported. ( 2012 R2/ 2016 and 2019 ) </p>



<h2 class="wp-block-heading"> What is Hot Plug Memory </h2>



<p>Dynamically increasing the memory of a running VM is hotplug memory. this is fully supported from Linux servers Red Hat / Centos based from 6.5 and above and Windows server above 2012. </p>



<p></p>



<h2 class="wp-block-heading"> Perquisite to Enable  Hot Add</h2>



<ol><li>The virtual machine has a guest operating system that supports Memory hot-add functionality.</li><li> The virtual machine is using hardware version 7 or later.</li><li>VMware Tools is installed.</li><li>Power off the Virtual Machine to enable hot-add.Can be scripted with</li></ol>



<p>PowerCLI, can be used to enable this on a lot of VM&#8217;s to make our life easy. However, we need to power off for the settings to take effect. </p>



<p>A swift Google search will point you some good scripts disclaimer Please test it on a test VM before running on development or production servers.</p>



<p>Note the hot add feature required a full power off and on operation on VM, not a reboot. ( reboot will not work) </p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p> <a href="httpss://code.vmware.com/forums/2530/vsphere-powercli#573518">httpss://code.vmware.com/forums/2530/vsphere-powercli#573518</a> </p><p> <a href="httpss://virtuallythatguy.co.uk/how-to-set-vm-hot-plug-for-memory-and-cpu-vcpu-and-vmem-hot-plug-using-powercli/">httpss://</a></p><cite>Function Enable-vCpuAndMemHotAdd($vm){ <br> $vmConfigSpec = New-Object VMware.Vim.VirtualMachineConfigSpec <br> $extra1 = New-Object VMware.Vim.optionvalue <br> $extra1.Key=&#8221;mem.hotadd&#8221; <br> $extra1.Value=&#8221;true&#8221; <br> $vmConfigSpec.extraconfig += $extra1 <br> $extra2 = New-Object VMware.Vim.optionvalue <br> $extra2.Key=&#8221;vcpu.hotadd&#8221; <br> $extra2.Value=&#8221;true&#8221; <br> $vmConfigSpec.extraconfig += $extra2 <br> $vm.Extensiondata.ReconfigVM($vmConfigSpec) <br> } <br> Get-Content  &#8220;c:\listofvms.txt&#8221; | %{ <br> $vm = Get-VM -Name $_ <br> Enable-vCpuAndMemHotAdd $vm  <br> }<br><br>   </cite></blockquote>



<p>You can also find a really neet script which I like a lot on this website: <a href="httpss://virtuallythatguy.co.uk/how-to-set-vm-hot-plug-for-memory-and-cpu-vcpu-and-vmem-hot-plug-using-powercli/">virtuallythatguy.co.uk/how-to-set-vm-hot-plug-for-memory-and-cpu-vcpu-and-vmem-hot-plug-using-powercli/</a> </p>



<p> Vmware Settings Expand the CPU </p>



<h2 class="wp-block-heading"> CPU Hot Plug</h2>



<p>Edit Settings for the VM, expand the CPU on the CPU Hot Plug check Enable CPU Hot Add.</p>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="529" height="282" data-attachment-id="14890" data-permalink="https://agileops.co.uk/how-to-enable-hot-add-cpu-and-hot-add-memory/image/" data-orig-file="https://agileops.co.uk/wp-content/uploads/2019/07/image.png" data-orig-size="529,282" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="image" data-image-description="" data-image-caption="" data-medium-file="https://agileops.co.uk/wp-content/uploads/2019/07/image-300x160.png" data-large-file="https://agileops.co.uk/wp-content/uploads/2019/07/image.png" tabindex="0" role="button" src="https://agileops.co.uk/wp-content/uploads/2019/07/image.png" alt="" class="wp-image-14890" srcset="https://agileops.co.uk/wp-content/uploads/2019/07/image.png 529w, https://agileops.co.uk/wp-content/uploads/2019/07/image-300x160.png 300w, https://agileops.co.uk/wp-content/uploads/2019/07/image-446x238.png 446w, https://agileops.co.uk/wp-content/uploads/2019/07/image-327x174.png 327w" sizes="(max-width: 529px) 100vw, 529px" /></figure>



<h2 class="wp-block-heading">








Hot Plug Memory



</h2>



<p> Edit Settings for the VM, expand the Memory on the Memory Hot Plug check Enable. </p>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="538" height="163" data-attachment-id="14891" data-permalink="https://agileops.co.uk/how-to-enable-hot-add-cpu-and-hot-add-memory/image-1/" data-orig-file="https://agileops.co.uk/wp-content/uploads/2019/07/image-1.png" data-orig-size="538,163" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="image-1" data-image-description="" data-image-caption="" data-medium-file="https://agileops.co.uk/wp-content/uploads/2019/07/image-1-300x91.png" data-large-file="https://agileops.co.uk/wp-content/uploads/2019/07/image-1.png" tabindex="0" role="button" src="https://agileops.co.uk/wp-content/uploads/2019/07/image-1.png" alt="" class="wp-image-14891" srcset="https://agileops.co.uk/wp-content/uploads/2019/07/image-1.png 538w, https://agileops.co.uk/wp-content/uploads/2019/07/image-1-300x91.png 300w, https://agileops.co.uk/wp-content/uploads/2019/07/image-1-446x135.png 446w, https://agileops.co.uk/wp-content/uploads/2019/07/image-1-327x99.png 327w" sizes="(max-width: 538px) 100vw, 538px" /></figure>



<h2 class="wp-block-heading">The limitation with Memory increase </h2>



<p> Always remember that if the memory is under 3 GB Memory can not be increased above 4 without power off and increase to 4 GB or higher.  </p>
</div><!-- .vgblk-rw-wrapper -->]]></content:encoded>
					
					<wfw:commentRss>https://agileops.co.uk/how-to-enable-hot-add-cpu-and-hot-add-memory/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">14888</post-id>	</item>
	</channel>
</rss>
