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

    Importing an .XVA VM

    Scheduled Pinned Locked Moved Migrate to XCP-ng
    5 Posts 2 Posters 478 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
      McHenry
      last edited by

      Does xcp-ng have a cli function for:

      xe vm-import
      

      I have tried this without success. The xe help indicates the function exists:

      [23:44 svr10482 zfs]# xe help vm-import
      command name            : vm-import
              reqd params     :
              optional params : filename, preserve, sr-uuid, force, host-username, host-password, type, remote-config, url, vdi:
              description     : Import a VM. If type=ESXServer is given, it will import from a VMWare server and 'host-username', 'host-password' and 'remote-config' are required. Otherwise, it will import from a file, and 'filename' is required. If the option preserve=true is given then as many settings as possible are restored, including VIF MAC addresses. The default is to regenerate VIF MAC addresses. The VDIs will be imported into the Pool's default SR unless an override is provided. If the force option is given then any disk data checksum failures will be ignored. If the parameter 'url' is specified, xapi will attempt to import from that URL.
      
      [23:40 svr10482 zfs]# ls -l *.xva
      -rw-r--r-- 1 root root 136909479936 Oct 15 20:58 NSMRD101.xva
      [23:40 svr10482 zfs]# xe vm-import NSMRD101.xva
      The server failed to handle your request, due to an internal error. The given message may give details useful for debugging the problem.
      message: INTERNAL_ERROR: [ Not_found ]
      
      BenjiReisB 2 Replies Last reply Reply Quote 0
      • BenjiReisB Offline
        BenjiReis Vates 🪐 XCP-ng Team @McHenry
        last edited by

        @McHenry hi

        you need to call xe vm-import filename=/path/to/file.xva

        M 1 Reply Last reply Reply Quote 1
        • M Offline
          McHenry @BenjiReis
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • BenjiReisB Offline
            BenjiReis Vates 🪐 XCP-ng Team @McHenry
            last edited by

            @McHenry The import should have given you an uuid once finished which si the uuid of the VM.

            It should also appears when doing an xe vm-list

            M 1 Reply Last reply Reply Quote 1
            • M Offline
              McHenry @BenjiReis
              last edited by

              @BenjiReis

              Got it, thank you.

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