<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Unable to define count of CPUs during VM create]]></title><description><![CDATA[<p dir="auto">Dear Community and Vates staff,</p>
<p dir="auto">I'm trying to automate VM creation using XO REST API, specifically using <code>/rest/v0/pools/_/actions/create_vm</code> endpoint.<br />
Looks like this endpoint doesn't yet support defining CPU count for the VM. I have XO Community setup in the lab which is compiled from sources. Version is commit <a href="https://github.com/vatesfr/xen-orchestra/commit/c70f911b5eae2a2edb2509d7f4a901c9cf1cb6f7" target="_blank" rel="noopener noreferrer nofollow ugc">c70f9</a>, while writing this it's 9 commits behind master.</p>
<p dir="auto">After searching another topics, I found following, <a href="https://xcp-ng.org/forum/post/87887">https://xcp-ng.org/forum/post/87887</a></p>
<blockquote>
<p dir="auto">8 Jan 2025, 18:14<br />
We will try to add support for CPU settings soon.<br />
Also, expect things to accelerate in 2025 regarding the REST API.</p>
</blockquote>
<p dir="auto">This sounds awesome, but as we are already over year 2025, would there be any information available when <code>CPU settings</code> are available in the REST API ?<br />
Are there any alternative methods available for this need? Previously mentioned Topic mentions JSON RPC but is there any docs available for this interface.</p>
<p dir="auto">Attaching also screenshot of <code>create_vm</code> endpoint schema from swagger:<img src="/forum/assets/uploads/files/1773219991895-fac08cc0-6c8a-4bb1-80c4-4ab9b1c76ff3-image.jpeg" alt="fac08cc0-6c8a-4bb1-80c4-4ab9b1c76ff3-image.jpeg" class="img-markdown  img-fluid" width="760" height="1232" /></p>
<p dir="auto">Thank you in advance!</p>
<p dir="auto">Br,<br />
Aki</p>
]]></description><link>https://xcp-ng.org/forum/topic/11954/unable-to-define-count-of-cpus-during-vm-create</link><generator>RSS for Node</generator><lastBuildDate>Mon, 16 Nov 2026 11:08:37 GMT</lastBuildDate><atom:link href="https://xcp-ng.org/forum/topic/11954.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 11 Mar 2026 09:08:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Unable to define count of CPUs during VM create on Wed, 11 Mar 2026 19:57:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/mathieura" aria-label="Profile: MathieuRA">@<bdi>MathieuRA</bdi></a></p>
<p dir="auto">Glad to see this finally fixed.  I brought this up a while ago...</p>
<p dir="auto"><a href="https://xcp-ng.org/forum/post/102102">https://xcp-ng.org/forum/post/102102</a></p>
]]></description><link>https://xcp-ng.org/forum/post/103397</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/103397</guid><dc:creator><![CDATA[acebmxer]]></dc:creator><pubDate>Wed, 11 Mar 2026 19:57:43 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to define count of CPUs during VM create on Wed, 11 Mar 2026 15:33:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/akihu2" aria-label="Profile: akihu2">@<bdi>akihu2</bdi></a> Perfect, thanks.</p>
<p dir="auto">Yes, you can close this topic</p>
]]></description><link>https://xcp-ng.org/forum/post/103383</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/103383</guid><dc:creator><![CDATA[MathieuRA]]></dc:creator><pubDate>Wed, 11 Mar 2026 15:33:21 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to define count of CPUs during VM create on Wed, 11 Mar 2026 15:06:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/mathieura" aria-label="Profile: MathieuRA">@<bdi>MathieuRA</bdi></a></p>
<p dir="auto">Thank you for the PR merge.<br />
I've tested this and both REST API and XO6 seem to work perfectly.<br />
As this issue is resolved, do I need to close this topic or how does things work here?</p>
<p dir="auto">Br,<br />
Aki</p>
]]></description><link>https://xcp-ng.org/forum/post/103379</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/103379</guid><dc:creator><![CDATA[akihu2]]></dc:creator><pubDate>Wed, 11 Mar 2026 15:06:29 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to define count of CPUs during VM create on Wed, 11 Mar 2026 10:34:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/mathieura" aria-label="Profile: MathieuRA">@<bdi>MathieuRA</bdi></a></p>
<p dir="auto">Wow thank you for super fast response! I did check the XO6 also previously and noticed that it had the option to define VCPU count but it didn't work, this explains it completely <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f60e.png?v=566b705aef6" class="not-responsive emoji emoji-android emoji--sunglasses" style="height:1.4em;width:auto;vertical-align:middle" title=":sunglasses:" alt="😎" /><br />
Waiting for merge. I will test and share results here once available.</p>
<p dir="auto">Thanks again!</p>
]]></description><link>https://xcp-ng.org/forum/post/103359</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/103359</guid><dc:creator><![CDATA[akihu2]]></dc:creator><pubDate>Wed, 11 Mar 2026 10:34:58 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to define count of CPUs during VM create on Wed, 11 Mar 2026 10:15:57 GMT]]></title><description><![CDATA[<p dir="auto">Here is the fix for the REST API + XO6<br />
<a href="https://github.com/vatesfr/xen-orchestra/pull/9591" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/vatesfr/xen-orchestra/pull/9591</a></p>
]]></description><link>https://xcp-ng.org/forum/post/103358</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/103358</guid><dc:creator><![CDATA[MathieuRA]]></dc:creator><pubDate>Wed, 11 Mar 2026 10:15:57 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to define count of CPUs during VM create on Wed, 11 Mar 2026 09:47:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/akihu2" aria-label="Profile: akihu2">@<bdi>akihu2</bdi></a> Hi.<br />
It appears to be a bug, as the XO6 UI offers the option to choose the number of VCPU when creating a VM (obviously, this doesn't work).<br />
I will fix this immediately.</p>
]]></description><link>https://xcp-ng.org/forum/post/103356</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/103356</guid><dc:creator><![CDATA[MathieuRA]]></dc:creator><pubDate>Wed, 11 Mar 2026 09:47:31 GMT</pubDate></item></channel></rss>