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

    Cannot import OVA from VirtualBox

    Scheduled Pinned Locked Moved Xen Orchestra
    23 Posts 7 Posters 7.0k Views 3 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.
    • D Offline
      dgmcdona @olivierlambert
      last edited by

      @olivierlambert I'd be happy to share the .ova that I'm working with, just let me know how you'd like me to do that. Where can I find logs for this type of error?

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

        Share it in the service you prefer 🙂 (Mega, whatever).

        Logs can be found in your browser console while you upload it.

        AlexanderKA 1 Reply Last reply Reply Quote 0
        • D Offline
          dgmcdona
          last edited by

          error​
          bubbles: false​
          cancelBubble: false​
          cancelable: false​
          composed: false​
          currentTarget: null​
          defaultPrevented: false​
          eventPhase: 0
          ​explicitOriginalTarget: FileReader
              error: DOMException​​​
                  code: 0
          ​​​        columnNumber: 0
          ​​​        data: null
          ​​​        filename: ""
                  ​​​lineNumber: 0
          ​​​        message: "File could not be read"
                  name: "NotReadableError"
                  result: 2154102785​​​
                  stack: ""​​​
                  <prototype>: DOMExceptionPrototype { name: Getter, message: Getter, INDEX_SIZE_ERR: 1, … }​​
              onabort: null​​
              onerror: null​​
              onload: null​​
              onloadend: null​​
              onloadstart: null​​
              onprogress: null​​
              readyState: 2​​
              result: null​​
              <prototype>: FileReaderPrototype { readAsArrayBuffer: readAsArrayBuffer(), readAsBinaryString: readAsBinaryString(), readAsText: readAsText(), … }
          ​isTrusted: true
          ​lengthComputable: true
          ​loaded: 3400646144
          ​originalTarget: FileReader { readyState: 2, result: null, error: DOMException, … }
          ​returnValue: true
          ​srcElement: FileReader { readyState: 2, result: null, error: DOMException, … }
          ​target: FileReader { readyState: 2, result: null, error: DOMException, … }
          ​timeStamp: 59158
          ​total: 3400646144
          ​type: "error"
          ​<get isTrusted()>: function isTrusted()
          ​<prototype>: ProgressEventPrototype { lengthComputable: Getter, loaded: Getter, total: Getter, … }
          index.js:225:12
          

          Link to the OVA

          nraynaudN 2 Replies Last reply Reply Quote 0
          • nraynaudN Offline
            nraynaud XCP-ng Team @dgmcdona
            last edited by

            @dgmcdona Ok I'm downloading it I will take a look.

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

              @dgmcdona I see that the system did not recognize the disk, I will look into it deeper.

              Capture d’écran 2020-09-04 à 11.49.23.png Capture d’écran 2020-09-04 à 11.49.36.png

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

                The fix should be here: https://github.com/vatesfr/xen-orchestra/pull/5255 if you have the ability to test Xo from the sources

                nraynaud opened this pull request in vatesfr/xen-orchestra

                closed fix(xo-vmdk-to-vhd/grabTables): read each entry independently #5255

                1 Reply Last reply Reply Quote 0
                • ben20benB Offline
                  ben20ben
                  last edited by ben20ben

                  Greetings all

                  browser - Brave (Chromium 85.0.4183.102)
                  XOA community edition - updated today via script

                  xo-server 5.66.2
                  xo-web 5.70.0

                  I am also having this issue. It's an ova file from virtualbox - I created it back in 2018 , if that is part of the problem?

                  Here is my error log:

                  bubbles: false
                  cancelBubble: false
                  cancelable: false
                  composed: false
                  currentTarget: FileReader {readyState: 2, result: null, error: DOMException: The requested file could not be read, typically due to permission problems that have …, onloadstart: null, onprogress: null, …}
                  defaultPrevented: false
                  eventPhase: 0
                  isTrusted: true
                  lengthComputable: true
                  loaded: 0
                  path: []
                  returnValue: true
                  srcElement: FileReader {readyState: 2, result: null, error: DOMException: The requested file could not be read, typically due to permission problems that have …, onloadstart: null, onprogress: null, …}
                  target: FileReader {readyState: 2, result: null, error: DOMException: The requested file could not be read, typically due to permission problems that have …, onloadstart: null, onprogress: null, …}
                  timeStamp: 379669.2550000007
                  total: 3307068416
                  type: "error"
                  __proto__: ProgressEvent
                  (anonymous)	@	index.js:224
                  o	@	asyncToGenerator.js:17
                  (anonymous)	@	asyncToGenerator.js:30
                  Promise.then (async)		
                  o	@	asyncToGenerator.js:27
                  (anonymous)	@	asyncToGenerator.js:35
                  t	@	_export.js:36
                  (anonymous)	@	asyncToGenerator.js:14
                  (anonymous)	@	index.js:216
                  (anonymous)	@	index.js:276
                  (anonymous)	@	utils.js:174
                  t.exports	@	_arrayEach.js:15
                  t.exports	@	forEach.js:37
                  r.mapPlus	@	utils.js:174
                  (anonymous)	@	index.js:264
                  o	@	asyncToGenerator.js:17
                  (anonymous)	@	asyncToGenerator.js:35
                  t	@	_export.js:36
                  (anonymous)	@	asyncToGenerator.js:14
                  (anonymous)	@	index.js:237
                  (anonymous)	@	index.js:206
                  Promise.then (async)		
                  value	@	index.js:174
                  executeOnChange	@	LinkedValueUtils.js:130
                  (anonymous)	@	ReactDOMInput.js:239
                  o	@	ReactErrorUtils.js:24
                  s	@	EventPluginUtils.js:83
                  executeDispatchesInOrder	@	EventPluginUtils.js:106
                  d	@	EventPluginHub.js:41
                  p	@	EventPluginHub.js:52
                  t.exports	@	forEachAccumulated.js:22
                  processEventQueue	@	EventPluginHub.js:250
                  (anonymous)	@	ReactEventEmitterMixin.js:15
                  handleTopLevel	@	ReactEventEmitterMixin.js:25
                  p	@	ReactEventListener.js:70
                  perform	@	Transaction.js:141
                  batchedUpdates	@	ReactDefaultBatchingStrategy.js:60
                  batchedUpdates	@	ReactUpdates.js:95
                  dispatchEvent	@	ReactEventListener.js:145
                  
                  

                  I do see this line

                  DOMException: The requested file could not be read, typically due to permission problems
                  

                  What perms do I need to set on the ova to let it read this ova and import? I regret that I can not share the ova file as it is private but I can try and debug perhaps?

                  Here is the error log from XOA Enterprise (I run both VMs) when trying to import the same file.
                  xo-server 5.64.1
                  xo-web 5.67.0

                  bubbles: false
                  cancelBubble: false
                  cancelable: false
                  composed: false
                  currentTarget: FileReader {readyState: 2, result: null, error: DOMException: The requested file could not be read, typically due to permission problems that have …, onloadstart: null, onprogress: null, …}
                  defaultPrevented: false
                  eventPhase: 0
                  isTrusted: true
                  lengthComputable: true
                  loaded: 0
                  path: []
                  returnValue: true
                  srcElement: FileReader {readyState: 2, result: null, error: DOMException: The requested file could not be read, typically due to permission problems that have …, onloadstart: null, onprogress: null, …}
                  target: FileReader {readyState: 2, result: null, error: DOMException: The requested file could not be read, typically due to permission problems that have …, onloadstart: null, onprogress: null, …}
                  timeStamp: 23579.565000000002
                  total: 3307068416
                  type: "error"
                  __proto__: ProgressEvent
                  

                  Anything else I can provide to help debug, lmk. Thank you.

                  Edit - I attempted to import via the windows xen center and that also failed to import. I can attach logs if you tell me how, but I think xen center is another dev team. I might need to somehow convert my ova file from 2018 to a newer standard somehow?

                  The private ova file is a debian 8 system with the default gui install. It has a VMDK as it's disk format.. I am fairly certain I would have set that up as dynamically allocated.

                  D 1 Reply Last reply Reply Quote 0
                  • D Offline
                    dgmcdona @ben20ben
                    last edited by dgmcdona

                    @ben20ben @nraynaud has created a pull request with the fix, but if you're not using XO from the sources, it won't be available until the next release of XOA, which will hopefully be soon. Also, not sure if you're problem has been caused by the same issue.

                    ben20benB 1 Reply Last reply Reply Quote 0
                    • ben20benB Offline
                      ben20ben @dgmcdona
                      last edited by

                      @dgmcdona I am using both the XOA enterprise and the community edition.

                      I updated the community edition of XOA to the newest version using the script that is on github , I linked to the script in my last post. Does that pull in the fix or do I have to apply a patch within XOA? I am confused as to what a github pull request is.. I am a noob at this clearly. I do run the community and it's updated. What else do I need to do to apply the patched code to my XOA community instance?

                      Thanks!

                      D 1 Reply Last reply Reply Quote 0
                      • D Offline
                        dgmcdona @ben20ben
                        last edited by

                        @ben20ben I see that they merged the relevant pull request into the master branch 3 days ago, so if you're running XO from the sources, and you do an update, the patch should be applied.

                        1 Reply Last reply Reply Quote 0
                        • E Offline
                          eraser3000
                          last edited by

                          I also am having trouble importing a virtualbox ova.

                          ova.jpg

                          This is what I get when I try to import.

                          This is the source of the file:

                          https://github.com/librenms/packer-builds/releases/download/1.63/librenms-ubuntu-18.04-amd64.ova

                          Any ideas?

                          1 Reply Last reply Reply Quote 0
                          • E Offline
                            eraser3000
                            last edited by eraser3000

                            I should have mentioned, I tried to import from XOA as well.

                            This is what it looks like:

                            ova2.png

                            If I click import it seems to do something but after a few minutes nothing happens.

                            No VM ever shows up either.

                            Thanks

                            1 Reply Last reply Reply Quote 0
                            • AlexanderKA Offline
                              AlexanderK @olivierlambert
                              last edited by AlexanderK

                              @olivierlambert how is it possible to view logs on browser? really new on this

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

                                https://developer.mozilla.org/en-US/docs/Tools/Browser_Console

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