XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Unable to import vmdk Error: not a VMDK file

    Scheduled Pinned Locked Moved Xen Orchestra
    10 Posts 3 Posters 2.7k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      Meth0d
      last edited by

      I have succesfully imported some vmdk files from my esxi host but one keeps failing on me:

      Apr 24 10:04:36 xoa xo-server[4231]:   error: Error: not a VMDK file
      Apr 24 10:04:36 xoa xo-server[4231]:       at /opt/xen-orchestra/packages/xo-vmdk-to-vhd/src/vmdk-read.js:132:13
      Apr 24 10:04:36 xoa xo-server[4231]:       at Generator.next (<anonymous>)
      Apr 24 10:04:36 xoa xo-server[4231]:       at asyncGeneratorStep (/opt/xen-orchestra/packages/xo-vmdk-to-vhd/dist/vmdk-read.js:20:103)
      Apr 24 10:04:36 xoa xo-server[4231]:       at _next (/opt/xen-orchestra/packages/xo-vmdk-to-vhd/dist/vmdk-read.js:22:194)
      Apr 24 10:04:36 xoa xo-server[4231]:       at AsyncResource.runInAsyncScope (async_hooks.js:197:9)
      Apr 24 10:04:36 xoa xo-server[4231]:       at cb (/opt/xen-orchestra/node_modules/bluebird/js/release/util.js:355:42)
      Apr 24 10:04:36 xoa xo-server[4231]:       at tryCatcher (/opt/xen-orchestra/node_modules/bluebird/js/release/util.js:16:23)
      Apr 24 10:04:36 xoa xo-server[4231]:       at Promise._settlePromiseFromHandler (/opt/xen-orchestra/node_modules/bluebird/js/release/promise.js:547:31)
      Apr 24 10:04:36 xoa xo-server[4231]:       at Promise._settlePromise (/opt/xen-orchestra/node_modules/bluebird/js/release/promise.js:604:18)
      Apr 24 10:04:36 xoa xo-server[4231]:       at Promise._settlePromiseCtx (/opt/xen-orchestra/node_modules/bluebird/js/release/promise.js:641:10)
      Apr 24 10:04:36 xoa xo-server[4231]:       at _drainQueueStep (/opt/xen-orchestra/node_modules/bluebird/js/release/async.js:97:12)
      Apr 24 10:04:36 xoa xo-server[4231]:       at _drainQueue (/opt/xen-orchestra/node_modules/bluebird/js/release/async.js:86:9)
      Apr 24 10:04:36 xoa xo-server[4231]:       at Async._drainQueues (/opt/xen-orchestra/node_modules/bluebird/js/release/async.js:102:5)
      Apr 24 10:04:36 xoa xo-server[4231]:       at Immediate.Async.drainQueues [as _onImmediate] (/opt/xen-orchestra/node_modules/bluebird/js/release/async.js:15:14)
      Apr 24 10:04:36 xoa xo-server[4231]:       at processImmediate (internal/timers.js:461:21)
      Apr 24 10:04:36 xoa xo-server[4231]:       at process.topLevelDomainCallback (domain.js:144:15)
      Apr 24 10:04:36 xoa xo-server[4231]:       at process.callbackTrampoline (internal/async_hooks.js:129:14)
      Apr 24 10:04:36 xoa xo-server[4231]: }
      

      Not sure where to look, only difference to the other disks is that its a *-flat.vmdk

      1 Reply Last reply Reply Quote 0
      • M Offline
        Meth0d
        last edited by

        oh and the Web UI keeps pretending its doing something while its not 🙂

        2a540977-0f84-4ec2-afdd-7668c22b7950-image.png

        1 Reply Last reply Reply Quote 0
        • olivierlambertO Offline
          olivierlambert Vates 🪐 Co-Founder CEO
          last edited by

          What is a flat VMDK?

          1 Reply Last reply Reply Quote 0
          • M Offline
            Meth0d
            last edited by

            I think flat is what VMware considers your "base copy", the disk frozen at a point in time.
            I dont really know since the VM does not have any snapshots, if i download the (only) *.vmdk from this VM from the datastore browser i get a *-flat.vmdk file. and that gives me the error (or better so say ...nothing in the WebUI 🙂

            1 Reply Last reply Reply Quote 0
            • olivierlambertO Offline
              olivierlambert Vates 🪐 Co-Founder CEO
              last edited by olivierlambert

              If it's possible, could you put that VMDK somewhere we can download it? Maybe it's a format we do not manage yet. Hard to tell without "seeing it" first.

              M 2 Replies Last reply Reply Quote 0
              • M Offline
                Meth0d @olivierlambert
                last edited by

                @olivierlambert i will see whats left after compressing the vmdk, my line is not suited for 40GB uploads (yet) 😕

                1 Reply Last reply Reply Quote 0
                • M Offline
                  Meth0d @olivierlambert
                  last edited by

                  @olivierlambert i have send you a link via chat to the vmdk file (actually 2 files including the *-flat.vmdk)

                  1 Reply Last reply Reply Quote 0
                  • olivierlambertO Offline
                    olivierlambert Vates 🪐 Co-Founder CEO
                    last edited by

                    Thanks we'll take a look when we can. I'll keep you posted!

                    1 Reply Last reply Reply Quote 0
                    • nraynaudN Offline
                      nraynaud XCP-ng Team
                      last edited by

                      Hi @Meth0d , I had a look at your file, I see that it's VMFS ( https://en.wikipedia.org/wiki/VMware_VMFS ) inside, which seems to be a real file system and not a disk image. I'm unfamiliar with esxi, but I think you might not have exported the virtual machine the way other users do.

                      M 1 Reply Last reply Reply Quote 0
                      • M Offline
                        Meth0d @nraynaud
                        last edited by Meth0d

                        @nraynaud well i just used the datastore browser to download the vmdk. i did the same thing with some other (smaller) VMs without any problems. All of this from the same ESXi host.
                        Thanks for looking into it though, i will try the export VM way next but have to find the right time for a shutdown ...

                        1 Reply Last reply Reply Quote 0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        • First post
                          Last post