<?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[VDI export to VMDK results in a corrupted disk]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I want to ask if anyone has encountered this issue. If I use XO to download VDI directly in VMDK format, the content is corrupted. VMware Workstation does not see the NTFS partition on the disk; instead it shows it as a RAW partition and the disk is unreadable.</p>
<p dir="auto">I tried downloading the same VDI as VHD and then converting it to VMDK using qemu-img, and this disk worked in VMware WS without any problems.</p>
<p dir="auto">Could there be an issue somewhere in the export process when exporting directly to VMDK?</p>
<p dir="auto">XO 99312 and 280c0 tested.</p>
]]></description><link>https://xcp-ng.org/forum/topic/12470/vdi-export-to-vmdk-results-in-a-corrupted-disk</link><generator>RSS for Node</generator><lastBuildDate>Mon, 09 Nov 2026 11:27:52 GMT</lastBuildDate><atom:link href="https://xcp-ng.org/forum/topic/12470.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 12 Sep 2026 17:12:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to VDI export to VMDK results in a corrupted disk on Mon, 14 Sep 2026 09:21:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/emmanuel-v" aria-label="Profile: Emmanuel-V">@<bdi>Emmanuel-V</bdi></a> In my opinion, it would make more sense if a standalone disk exported in VMDK format were exported directly as <code>monolithicSparse</code>, so that it would not need to be converted. This makes more sense to me because when only the disk is exported, rather than the entire VM (OVA), it can be assumed that the disk will be attached directly to some VM.</p>
]]></description><link>https://xcp-ng.org/forum/post/108493</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/108493</guid><dc:creator><![CDATA[abudef]]></dc:creator><pubDate>Mon, 14 Sep 2026 09:21:22 GMT</pubDate></item><item><title><![CDATA[Reply to VDI export to VMDK results in a corrupted disk on Mon, 14 Sep 2026 08:52:27 GMT]]></title><description><![CDATA[<p dir="auto">It might be worth adding a message in XO at export, or in the documentation ?</p>
]]></description><link>https://xcp-ng.org/forum/post/108492</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/108492</guid><dc:creator><![CDATA[Emmanuel V]]></dc:creator><pubDate>Mon, 14 Sep 2026 08:52:27 GMT</pubDate></item><item><title><![CDATA[Reply to VDI export to VMDK results in a corrupted disk on Sun, 13 Sep 2026 15:50:01 GMT]]></title><description><![CDATA[<p dir="auto">So in the end, I think the best approach is to export the VHD and convert it, because the conversion has to be done anyway, and the native VHD export is faster.</p>
]]></description><link>https://xcp-ng.org/forum/post/108484</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/108484</guid><dc:creator><![CDATA[abudef]]></dc:creator><pubDate>Sun, 13 Sep 2026 15:50:01 GMT</pubDate></item><item><title><![CDATA[Reply to VDI export to VMDK results in a corrupted disk on Sun, 13 Sep 2026 15:43:48 GMT]]></title><description><![CDATA[<p dir="auto">Ah, I see it now. What XO exports is the <code>streamOptimized</code> format, which is used in OVAs for transfer. Such a standalone VMDK cannot be used directly and needs to be converted for both VMware Workstation and ESXi <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f926.png?v=566b705aef6" class="not-responsive emoji emoji-android emoji--face_palm" style="height:1.4em;width:auto;vertical-align:middle" title=":face_palm:" alt="🤦" /> , or you can use the OVA import, which performs the conversion automatically.</p>
<p dir="auto">So before such a VMDK can be attached to a VMware VM, it needs to be converted to <code>monolithicSparse</code> e.g.:</p>
<pre><code>qemu-img.exe convert -p -f vmdk -O vmdk -o subformat=monolithicSparse WS25.vmdk WS25-2.vmdk
</code></pre>
]]></description><link>https://xcp-ng.org/forum/post/108483</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/108483</guid><dc:creator><![CDATA[abudef]]></dc:creator><pubDate>Sun, 13 Sep 2026 15:43:48 GMT</pubDate></item><item><title><![CDATA[Reply to VDI export to VMDK results in a corrupted disk on Sun, 13 Sep 2026 13:44:36 GMT]]></title><description><![CDATA[<p dir="auto">I´m not a developer so I asked Ai what it "thinks" about it...</p>
<pre><code>┌─────────────┐
│  XCP-ng VDI │
└──────┬──────┘
       │
       │ VDI_exportContent()
       │ format = VDI_FORMAT_VHD
       ▼
┌──────────────────┐
│    VHD stream    │
└────────┬─────────┘
         │
         │ vhdToVMDK()
         ▼
┌─────────────────────────┐
│  vhdToVMDKIterator()    │
└───────────┬─────────────┘
            │
            │ parseVhdToBlocks()
            ▼
┌─────────────────────────┐
│    parseVhdStream()     │
│                         │
│    VHD blocks           │
│    { id, data }         │
└───────────┬─────────────┘
            │
            │ onlyBlocks()
            │
            │ lba = id * blockSize
            ▼
══════════════════════════════════════════
     POSSIBLE ERROR HERE
     Incorrect mapping of id ↔ data
     or incorrect block ordering
══════════════════════════════════════════
            │
            ▼
┌─────────────────────────┐
│   generateVmdkData()    │
│                         │
│   VHD block             │
│      ↓                  │
│   grainData             │
│      ↓                  │
│   createMarkedGrain()   │
│      ↓                  │
│   tableBuffer           │
└───────────┬─────────────┘
            │
            ▼
┌──────────────────┐
│   VMDK stream    │
└────────┬─────────┘
         │
         ▼
┌──────────────────┐
│    VMDK file     │
└──────────────────┘
</code></pre>
]]></description><link>https://xcp-ng.org/forum/post/108481</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/108481</guid><dc:creator><![CDATA[abudef]]></dc:creator><pubDate>Sun, 13 Sep 2026 13:44:36 GMT</pubDate></item><item><title><![CDATA[Reply to VDI export to VMDK results in a corrupted disk on Sun, 13 Sep 2026 13:03:52 GMT]]></title><description><![CDATA[<p dir="auto">I don't think it's a VMware issue. If the XO export created a VMDK with incorrect data block contents, qemu-img check can still complete without reporting any errors. It only means that it did not find any problems with the VMDK structure.</p>
]]></description><link>https://xcp-ng.org/forum/post/108480</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/108480</guid><dc:creator><![CDATA[abudef]]></dc:creator><pubDate>Sun, 13 Sep 2026 13:03:52 GMT</pubDate></item><item><title><![CDATA[Reply to VDI export to VMDK results in a corrupted disk on Sun, 13 Sep 2026 12:01:40 GMT]]></title><description><![CDATA[<p dir="auto">It's possible that the issue lies within VMware Workstation. <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f937.png?v=566b705aef6" class="not-responsive emoji emoji-android emoji--shrug" style="height:1.4em;width:auto;vertical-align:middle" title=":shrug:" alt="🤷" /></p>
]]></description><link>https://xcp-ng.org/forum/post/108479</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/108479</guid><dc:creator><![CDATA[Danp]]></dc:creator><pubDate>Sun, 13 Sep 2026 12:01:40 GMT</pubDate></item><item><title><![CDATA[Reply to VDI export to VMDK results in a corrupted disk on Sun, 13 Sep 2026 11:29:49 GMT]]></title><description><![CDATA[<pre><code>qemu-img.exe info Windows Server 2025.vmdk
image: Windows Server 2025.vmdk
file format: vmdk
virtual size: 64G (68719476736 bytes)
disk size: 64G
cluster_size: 65536
Format specific information:
    cid: 2849992906
    parent cid: 4294967295
    create type: streamOptimized
    extents:
        [0]:
            compressed: true
            virtual size: 68719476736
            filename: Windows Server 2025.vmdk
            cluster size: 65536
            format:
</code></pre>
<pre><code>qemu-img.exe check Windows Server 2025.vmdk
No errors were found on the image.
</code></pre>
<p dir="auto">It seems that the disk itself is formally OK, but the content is somehow corrupted.</p>
]]></description><link>https://xcp-ng.org/forum/post/108478</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/108478</guid><dc:creator><![CDATA[abudef]]></dc:creator><pubDate>Sun, 13 Sep 2026 11:29:49 GMT</pubDate></item><item><title><![CDATA[Reply to VDI export to VMDK results in a corrupted disk on Sun, 13 Sep 2026 11:14:55 GMT]]></title><description><![CDATA[<p dir="auto">Have you attempted to analyze the exported file using  qemu-img?<br />
For example:</p>
<pre><code>qemu-img info file.vmdk
qemu-img check file.vmdk
</code></pre>
]]></description><link>https://xcp-ng.org/forum/post/108477</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/108477</guid><dc:creator><![CDATA[Danp]]></dc:creator><pubDate>Sun, 13 Sep 2026 11:14:55 GMT</pubDate></item><item><title><![CDATA[Reply to VDI export to VMDK results in a corrupted disk on Sun, 13 Sep 2026 11:09:20 GMT]]></title><description><![CDATA[<p dir="auto"><img src="/forum/assets/uploads/files/1789297755680-2a23be37-665b-4827-896a-a20545061b00-image.jpeg" alt="2a23be37-665b-4827-896a-a20545061b00-image.jpeg" class="img-markdown  img-fluid" width="1336" height="159" /></p>
]]></description><link>https://xcp-ng.org/forum/post/108476</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/108476</guid><dc:creator><![CDATA[abudef]]></dc:creator><pubDate>Sun, 13 Sep 2026 11:09:20 GMT</pubDate></item><item><title><![CDATA[Reply to VDI export to VMDK results in a corrupted disk on Sun, 13 Sep 2026 07:25:38 GMT]]></title><description><![CDATA[<p dir="auto">I tried to export 3 VDIs from 2 different XCP-ng pools. 2 VDIs from Windows Server 2025 VMs and 1 from Windows Server 2022 VM. All 3 VMDKs seem to be corrupted when I try to use them in VMware Workstation.</p>
<p dir="auto">I also tried reimporting 1 of the exported VMDKs back into the XCP-ng repository and the VM booted without any issue using the reimported VDI.</p>
<p dir="auto">Maybe there is either an issue with this VMDK format in VMware Workstation or the XO´s export/import method creates VMDK files that can be exported and reimport back into XCP-ng repository while preserving the original state of the VDI in the XCP-ng repository even if it´s unusable in VMware WS.</p>
]]></description><link>https://xcp-ng.org/forum/post/108471</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/108471</guid><dc:creator><![CDATA[abudef]]></dc:creator><pubDate>Sun, 13 Sep 2026 07:25:38 GMT</pubDate></item><item><title><![CDATA[Reply to VDI export to VMDK results in a corrupted disk on Sat, 12 Sep 2026 21:00:55 GMT]]></title><description><![CDATA[<p dir="auto">Ah... ok. I think I originally checked the VM export.</p>
<p dir="auto">This could be a bug. Does it occur with all VDIs? What happens if you try to import the file back into XO?</p>
]]></description><link>https://xcp-ng.org/forum/post/108469</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/108469</guid><dc:creator><![CDATA[Danp]]></dc:creator><pubDate>Sat, 12 Sep 2026 21:00:55 GMT</pubDate></item><item><title><![CDATA[Reply to VDI export to VMDK results in a corrupted disk on Sat, 12 Sep 2026 18:35:53 GMT]]></title><description><![CDATA[<p dir="auto"><img src="/forum/assets/uploads/files/1789238149843-c4865325-800d-4095-a884-9cf635c3e7c6-image.jpeg" alt="c4865325-800d-4095-a884-9cf635c3e7c6-image.jpeg" class="img-markdown  img-fluid" width="899" height="311" /></p>
]]></description><link>https://xcp-ng.org/forum/post/108466</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/108466</guid><dc:creator><![CDATA[abudef]]></dc:creator><pubDate>Sat, 12 Sep 2026 18:35:53 GMT</pubDate></item><item><title><![CDATA[Reply to VDI export to VMDK results in a corrupted disk on Sat, 12 Sep 2026 18:16:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/abudef" aria-label="Profile: abudef">@<bdi>abudef</bdi></a> What steps are you performing to export the VDI as a VMDK?</p>
]]></description><link>https://xcp-ng.org/forum/post/108465</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/108465</guid><dc:creator><![CDATA[Danp]]></dc:creator><pubDate>Sat, 12 Sep 2026 18:16:48 GMT</pubDate></item></channel></rss>