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

    OVA import failing

    Scheduled Pinned Locked Moved Xen Orchestra
    48 Posts 7 Posters 10.6k Views 2 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
      martinhorton @nraynaud
      last edited by

      @nraynaud OK, I've just woken up and read your message. Based on the message I am going to add the following information that now seems relevant. This VM, prior to being exported had a disk removed but not deleted from disk. My guess, and of course, it's only a guess, is that the file is listed in the XML file as part of the VM but in reality isn't there because the file was deleted.

      I am going to remove the file from the directory and save it somewhere else and then re-export it and see if it works.

      But now I will repeat my little mantra that I used to lecture people with as a software developer for decades. Make your error messages meaningful. Had this error message said "Hard disk 2 listed in inventory but file not found" I am guessing it would have triggered a memory in me or anyone else. My favorite pet peeve is the error message "File was not found". That means nothing; the message 'File abc.docx not found in directory C:\somedirectory" is a lot more meaningful.

      I'll report back on the success or otherwise of my test.

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

        @nraynaud I tried that, it didn't work

        I am uploading the .ovf file
        W2K12Full.ovf.txt

        1 Reply Last reply Reply Quote 0
        • C Offline
          cbritton
          last edited by

          @nraynaud I unfortunately deleted my ova files. However, I still have the esxi server. I am exporting a new ova now. If I can get the error to happen for me again I will send you a link to download the ova file.

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

            @cbritton thank you, that would be great.

            I really want everybody here know that I believe there is a bug in my code, it's just that I really need help reproducing on my machine to pinpoint it.

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

              @cbritton privately sent me a file that exhibit the error, many thanks. I am searching for the bug now.

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

                you can follow the bug fix here: https://github.com/vatesfr/xen-orchestra/pull/5129

                nraynaud opened this pull request in vatesfr/xen-orchestra

                closed fix(import/OVA): fix big size parsing in OVA files #5129

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

                  @nraynaud I see you have fixed the bug. How do I implement this? Do I have to rebuild XO from sources again? Also, thanks for fixing it.

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

                    @martinhorton yes, if you were running from the sources, you'll need to rebuild from master.

                    If you're using Xen Orchestra Appliance, the fix is available in the 'latest' channel in version 5.48.1 https://github.com/vatesfr/xen-orchestra/blob/master/CHANGELOG.md

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

                      @nraynaud Thanks for the reply. Yes, I figured it out and the import seems to be running now! Thanks

                      1 Reply Last reply Reply Quote 0
                      • G Offline
                        geekwithoutacause
                        last edited by

                        SO I managed to import an ova of about 60 gigs and the import worked. However it can't boot?
                        This is a windows-10 vm from esxi converted with ovftool.
                        Any idea?

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

                          When something doesn't work, please explain in what way. Otherwise, it's a bit hard to help you 🙂

                          Example: you said it doesn't boot. But in what way? Any error message?

                          G 1 Reply Last reply Reply Quote 0
                          • G Offline
                            geekwithoutacause @olivierlambert
                            last edited by

                            @olivierlambert

                            @olivierlambert said in OVA import failing:

                            When something doesn't work, please explain in what way. Otherwise, it's a bit hard to help you 🙂

                            Example: you said it doesn't boot. But in what way? Any error message?

                            Makes sense. Here is a screenshot of the console....
                            369dd710-f1c4-4ad4-a46e-6bfd6f8cb5ec-image.png

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

                              1. Are you sure the VM got the disk plugged?
                              2. On VMware, did you use BIOS or UEFI boot? Switch to the correct value in XO (for example), in VM/advanced tab
                              G 1 Reply Last reply Reply Quote 0
                              • G Offline
                                geekwithoutacause @olivierlambert
                                last edited by

                                @olivierlambert

                                @olivierlambert said in OVA import failing:

                                1. Are you sure the VM got the disk plugged?
                                2. On VMware, did you use BIOS or UEFI boot? Switch to the correct value in XO (for example), in VM/advanced tab

                                Whoa. The vm instance was set to EFI boot and xcp-ng had it set to BIOS. I figured the conversion would set that correctly and I had not checked. I changed it to EFI and it's working now ! Thank you for the quick response !

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

                                  Nailed it 😄

                                  G 1 Reply Last reply Reply Quote 0
                                  • G Offline
                                    geekwithoutacause @olivierlambert
                                    last edited by

                                    @olivierlambert said in OVA import failing:

                                    Nailed it 😄

                                    yes sir.
                                    Quick question, Is there any way to speed up the vm import ? Takes all day from my desktop to my esxi box which has instances on an nfs drive.

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

                                      Keep in mind the file has to flow from your browser toward your XOA, then to your XOA to your host, which might use another network share itself.

                                      If your XOA could mount the place where you have your OVA directly, you could use upload-ova utility (see https://github.com/vatesfr/xen-orchestra/tree/master/%40xen-orchestra/upload-ova#usage ) to send them directly.

                                      G 1 Reply Last reply Reply Quote 0
                                      • G Offline
                                        geekwithoutacause @olivierlambert
                                        last edited by

                                        @olivierlambert

                                        @olivierlambert said in OVA import failing:

                                        Keep in mind the file has to flow from your browser toward your XOA, then to your XOA to your host, which might use another network share itself.

                                        If your XOA could mount the place where you have your OVA directly, you could use upload-ova utility (see https://github.com/vatesfr/xen-orchestra/tree/master/%40xen-orchestra/upload-ova#usage ) to send them directly.

                                        Going to look into that, thank you.

                                        1 Reply Last reply Reply Quote 0
                                        • First post
                                          Last post