<?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[Migrate VM Error: VDI_NOT_IN_MAP]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Trying to migrate VM from old XCP-NG (8.0.1) to a newer server running xcp-ng (8.2.1) and I'm getting the following error:</p>
<p dir="auto">Xen Orchestra, commit d1f2e<br />
xo-server 5.112.0</p>
<pre><code>vm.migrate
{
  "vm": "012b07a1-24cf-6d59-5faf-804e0e187b7a",
  "mapVdisSrs": {
    "94396c87-11b4-4f0e-a996-985cb74d07bf": "088980d4-0fdd-18bf-4c36-a555c35b011b",
    "7a1a6cce-5143-4fd9-b311-6c82d5b26d02": "191299cb-bb3b-872b-3f42-6ae2c3ccab38",
    "220b6828-53d8-42d0-99b3-83e731f19904": "088980d4-0fdd-18bf-4c36-a555c35b011b"
  },
  "mapVifsNetworks": {
    "f6b40ac2-0e4a-51a0-d478-b1c989be72d7": "3a0b3ba8-e6e9-c73c-d968-dde5511f98be",
    "7984e99e-c8df-2f72-fe93-ad1388e7f50f": "67982c5b-b56d-f9dc-0288-b369ee90e16b"
  },
  "migrationNetwork": "3a0b3ba8-e6e9-c73c-d968-dde5511f98be",
  "sr": "47bdfc16-4832-a187-8c8a-0bb377b9e255",
  "targetHost": "675fbc71-a2c7-4301-856a-6dd6a1b9651e"
}
{
  "code": 21,
  "data": {
    "objectId": "012b07a1-24cf-6d59-5faf-804e0e187b7a",
    "code": "VDI_NOT_IN_MAP"
  },
  "message": "operation failed",
  "name": "XoError",
  "stack": "XoError: operation failed
    at operationFailed (/opt/xen-orchestra/packages/xo-common/api-errors.js:26:11)
    at file:///opt/xen-orchestra/packages/xo-server/src/api/vm.mjs:561:15
    at Xo.migrate (file:///opt/xen-orchestra/packages/xo-server/src/api/vm.mjs:547:3)
    at Api.#callApiMethod (file:///opt/xen-orchestra/packages/xo-server/src/xo-mixins/api.mjs:401:20)"
}
</code></pre>
<p dir="auto">This VM has four attached local storage but XO is only showing 3 local storage while XCP-ng Center (20.04.01) shows the correct number:</p>
<p dir="auto"><img src="/forum/assets/uploads/files/1682565438267-c99a71bc-be13-412b-89da-17c36e81c0bb-image.png" alt="c99a71bc-be13-412b-89da-17c36e81c0bb-image.png" class="img-markdown  img-fluid" /></p>
<p dir="auto">When I go in XO Health, it's reporting the following:</p>
<p dir="auto"><img src="/forum/assets/uploads/files/1682565768064-b35bf531-bc96-4826-9577-cdab2e653c4e-image.png" alt="b35bf531-bc96-4826-9577-cdab2e653c4e-image.png" class="img-markdown  img-fluid" /> <img src="/forum/assets/uploads/files/1682564904923-7b2921cd-10f7-47ad-8bd6-6740a30d18ad-image.png" alt="7b2921cd-10f7-47ad-8bd6-6740a30d18ad-image.png" class="img-markdown  img-fluid" /></p>
<p dir="auto">When I open up the disk in XO, I see the following:<br />
<img src="/forum/assets/uploads/files/1682565286289-29afef31-a59b-4707-adf4-1e0dcd9b467d-image.png" alt="29afef31-a59b-4707-adf4-1e0dcd9b467d-image.png" class="img-markdown  img-fluid" /></p>
<p dir="auto">After about 30 minutes, the list of disks changed and now it shows the following:<br />
<img src="/forum/assets/uploads/files/1682566110269-712f65d0-35f9-4536-a887-28ac2e453ecc-image.png" alt="712f65d0-35f9-4536-a887-28ac2e453ecc-image.png" class="img-markdown  img-fluid" /></p>
<p dir="auto">Any recommendations on what could be the issue(s)? And how best I should proceed to fix the issue(s)?</p>
<p dir="auto">Thank You,</p>
<p dir="auto">SW</p>
]]></description><link>https://xcp-ng.org/forum/topic/7245/migrate-vm-error-vdi_not_in_map</link><generator>RSS for Node</generator><lastBuildDate>Fri, 06 Nov 2026 18:34:28 GMT</lastBuildDate><atom:link href="https://xcp-ng.org/forum/topic/7245.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 27 Apr 2023 02:52:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Migrate VM Error: VDI_NOT_IN_MAP on Fri, 06 Dec 2024 16:29:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/stormmaster" aria-label="Profile: StormMaster">@<bdi>StormMaster</bdi></a> Thank you for sharing your findings!</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/stephane-m-dev" aria-label="Profile: stephane-m-dev">@<bdi>stephane-m-dev</bdi></a> Thank you for the update! Looking forward to testing the fix just not sure how to replicate other than what <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/stormmaster" aria-label="Profile: StormMaster">@<bdi>StormMaster</bdi></a> found.</p>
]]></description><link>https://xcp-ng.org/forum/post/86579</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/86579</guid><dc:creator><![CDATA[stevewest15]]></dc:creator><pubDate>Fri, 06 Dec 2024 16:29:53 GMT</pubDate></item><item><title><![CDATA[Reply to Migrate VM Error: VDI_NOT_IN_MAP on Fri, 06 Dec 2024 15:03:09 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Thanks to all for the information you shared.<br />
We are currently testing a fix for the VDI_NOT_IN_MAP error.</p>
<p dir="auto">The fix should be released for the next update.<br />
So feel free to test and tell us if it fixed the problem.</p>
]]></description><link>https://xcp-ng.org/forum/post/86574</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/86574</guid><dc:creator><![CDATA[stephane-m-dev]]></dc:creator><pubDate>Fri, 06 Dec 2024 15:03:09 GMT</pubDate></item><item><title><![CDATA[Reply to Migrate VM Error: VDI_NOT_IN_MAP on Thu, 31 Oct 2024 17:06:05 GMT]]></title><description><![CDATA[<p dir="auto">First of all, sorry for hijacking this old topic but as it was so well documented, it made more sense to expand upon it then to try and recreate everything that was already here.</p>
<p dir="auto">Second, I generally don't use XCP-ng Center.  However, once coming across this post I did open it to verify that what I saw in this post was the same as what my XCP-ng Center was showing.</p>
<p dir="auto">Third, I am on one of the latest community additions but I have seen this occur a couple of time on previous versions as well.</p>
<p dir="auto">Okay with that out of the way, I now believe that I know what is causing this to happen...</p>
<p dir="auto">When you have a VM with multiple VDI's in it and one of those VDI's is both large and fairly busy, if the following exists then XO will not show one or more of the smaller drives despite the hosts still functioning normally while working on that VM:</p>
<ul>
<li>The virtual machine has multiple snapshots of all of the VDI's in it.  (IE like after several backups)</li>
<li>For some reason a bunch of the snapshots are consolidated at one.</li>
<li>All the snapshots that were consolidated are removed from the VM and the snapshots of the VDI's have coalesced but the system is still working on coalescing the large VDI.</li>
<li>If a backup process tries to work on this VM, it will create a snapshot that XO shows to stay connected to the smaller drives even though the backup is skipped because a new snapshot of the large VDI can't be created due to the older snapshots not being coalesced yet.</li>
</ul>
<p dir="auto">Once the large VDI has properly coalesced all it's snapshots, the hosts will continue to treat it as any other VM but that VDI never does show up in XO again.</p>
<p dir="auto">The only solution that I have found to fix it is to turn off the VM and then create a copy of missing VDI or VDI's and use those copies to replace the missing VDI's.</p>
<p dir="auto">I know that I am just a member of the community but I hope that this helps everyone to understand what is going when this happens to them.  <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=041a08e19dc" class="not-responsive emoji emoji-android emoji--wink" style="height:1.4em;width:auto;vertical-align:middle" title=";)" alt="😉" /></p>
<p dir="auto">It happened to me a couple of times before I was able to peace together the whole puzzle.</p>
]]></description><link>https://xcp-ng.org/forum/post/85222</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/85222</guid><dc:creator><![CDATA[StormMaster]]></dc:creator><pubDate>Thu, 31 Oct 2024 17:06:05 GMT</pubDate></item><item><title><![CDATA[Reply to Migrate VM Error: VDI_NOT_IN_MAP on Thu, 27 Apr 2023 11:52:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/darkbeldin" aria-label="Profile: Darkbeldin">@<bdi>Darkbeldin</bdi></a> Thank you, I looked at the SMlog and searched for this snapshot where I only saw activity back in March 27 and yesterday (April 26). See attachment.<br />
<a href="/forum/assets/uploads/files/1682595257305-smlog.txt">smlog.txt</a></p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/olivierlambert" aria-label="Profile: olivierlambert">@<bdi>olivierlambert</bdi></a> Thank you! How do I add a new disk and ensure it doesn't use the same device id (/dev/xvdc) as that is currently used by the VM? The VM currently sees this:</p>
<p dir="auto">/dev/xvda1       94G   18G   76G  19% /<br />
/dev/xvdb1       12G  4.4G  7.7G  37% /var/lib<br />
<strong>/dev/xvdc1       80G   23G   58G  28% /var/www</strong><br />
/dev/xvdd1      200G   54G  147G  27% /Emails</p>
<p dir="auto"><img src="/forum/assets/uploads/files/1682595863551-cb0df2c2-2fd5-4da2-be25-bfc48da21f3e-image.png" alt="cb0df2c2-2fd5-4da2-be25-bfc48da21f3e-image.png" class="img-markdown  img-fluid" /></p>
<p dir="auto">What does "Import VDI content" and "Export VDI content" do? Just trying to see if I can copy this snapshot and then attach it to the VM:<br />
<img src="/forum/assets/uploads/files/1682596320537-b2e6377d-3cd0-430a-941d-9840599f9566-image.png" alt="b2e6377d-3cd0-430a-941d-9840599f9566-image.png" class="img-markdown  img-fluid" /></p>
<p dir="auto">Thank You,</p>
<p dir="auto">SW</p>
]]></description><link>https://xcp-ng.org/forum/post/61518</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/61518</guid><dc:creator><![CDATA[stevewest15]]></dc:creator><pubDate>Thu, 27 Apr 2023 11:52:56 GMT</pubDate></item><item><title><![CDATA[Reply to Migrate VM Error: VDI_NOT_IN_MAP on Thu, 27 Apr 2023 07:31:19 GMT]]></title><description><![CDATA[<p dir="auto">You shouldn't have a VDI snapshot attached as a regular disk for your VM. This leads to weird behavior. I don't think it's possible to do that with Xen Orchestra, but I suppose it's possible with XCP-ng Center, sadly <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f615.png?v=041a08e19dc" class="not-responsive emoji emoji-android emoji--confused" style="height:1.4em;width:auto;vertical-align:middle" title=":/" alt="😕" /></p>
<p dir="auto">You should be certain to get a regular disk attached to your VM.</p>
]]></description><link>https://xcp-ng.org/forum/post/61496</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/61496</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Thu, 27 Apr 2023 07:31:19 GMT</pubDate></item><item><title><![CDATA[Reply to Migrate VM Error: VDI_NOT_IN_MAP on Thu, 27 Apr 2023 06:27:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/stevewest15" aria-label="Profile: stevewest15">@<bdi>stevewest15</bdi></a> Difficult to say but apparently XO considerer the Websites disk as a snapshot and also XCPcenter is reporting no size for it, so there is probably an issue with it.<br />
You will probably need to dig into the host SMlog to understand the issue.</p>
]]></description><link>https://xcp-ng.org/forum/post/61494</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/61494</guid><dc:creator><![CDATA[Darkbeldin]]></dc:creator><pubDate>Thu, 27 Apr 2023 06:27:12 GMT</pubDate></item></channel></rss>