xen-orchestra/@xen-orchestra/upload-ova
2023-11-28 09:30:32 +01:00
..
src chore: use http-request-plus@1 2023-02-17 10:51:28 +01:00
.babelrc.js chore: enforce strict mode for CJS files 2022-02-22 12:34:41 +01:00
.eslintrc.js chore(eslint): only use @babel/eslint-parser for pkgs using Babel 2021-04-23 14:47:34 +02:00
.npmignore feat: unified .npmignore for all packages 2021-04-07 13:58:14 +02:00
.USAGE.md chore: hide USAGE.md 2022-02-18 17:11:52 +01:00
package.json feat: technical release (#7208) 2023-11-28 09:30:32 +01:00
README.md feat(*/README.md): better badges 2020-06-01 14:41:52 +02:00

@xen-orchestra/upload-ova

Basic CLI to upload ova files to Xen-Orchestra

Usage

Usage:

  xo-upload-ova --register [--expiresIn duration] <XO-Server URL> <username> [<password>]
    Registers the XO instance to use.

    --expiresIn duration
      Can be used to change the validity duration of the
      authorization token (default: one month).

  xo-upload-ova --unregister
    Remove stored credentials.

  xo-upload-ova --inspect <file>
    Displays the data that would be imported from the ova.

  xo-upload-ova --upload <file> <sr> [--override <key>=<value> [<key>=<value>]+]
    Actually imports the VM contained in <file> to the Storage Repository <sr>.
    Some parameters can be overridden from the file, consult --inspect to get the list.
    Note: --override has to come last. By default arguments are string, prefix them with <json:> to type
    them, ex. " --override nameLabel='new VM'  memory=json:67108864 disks.vmdisk1.capacity=json:134217728"

xo-upload-ova v0.1.0

Register your XO instance

> xo-upload-ova --register http://xo.my-company.net admin@admin.net admin
Successfully logged with admin@admin.net

Note: only a token will be saved in the configuration file.

Import your .ova file

> xo-upload-ova --upload dsl.ova a7c630bf-b38c-489e-d3c3-e62507948980 --override 'nameLabel=dsl ' descriptionLabel='short desc' memory=json:671088640 disks.vmdisk1.descriptionLabel='disk description' disks.vmdisk1.capacity=json:1342177280

Contributions

Contributions are very welcomed, either on the documentation or on the code.

You may:

  • report any issue you've encountered;
  • fork and create a pull request.

License

AGPL-3.0-or-later © Vates SAS