onevcenter
- vCenter import tool
onevcenter
command [args] [options]
--config file Configuration file for custom options
-d, --datastore datastore_id OpenNebula datastore used
--use-defaults Use defaults for answers to questions
--endpoint endpoint URL of OpenNebula xmlrpc frontend
-h, --help Show this message
-h, --host host_id OpenNebula host used to authenticate the
operation
-o, --object object vCenter object: [datastores, templates,networks,
datastores, images]
--password password Password to authenticate with OpenNebula
-p, --port port vCenter API port, defaults to 443 (SSL) or 80
--user name User name used to connect to OpenNebula
--vcenter vCenter The vCenter hostname
-V, --version Show version and copyright information
--vpass password The password for the user
--vuser username The username to interact with vCenter
cleartags vmid Clear extraconfig tags from a vCenter VM, useful when a VM has been launched by OpenNebula and needs to be reimported
Example:
- Clean VM 15:
onevcenter cleargs 15
hosts Import vCenter clusters as OpenNebula hosts
Example:
- Get available clusters:
onevcenter hosts --vcenter <vcenter> --vuser <vcenter_user> --vpass <password>
valid options: defaults, port, vcenter, vpass, vuser
import [oid] Import the the desired vCenter object
Examples:
- importing first datastore
onevcenter list -o templates -h <host_id>
- importing 2 concrete templates:
onevcenter import "vm-1252, vm-553, vm-1248" -o templates -h <host_id>
- importing a image range:
onevcenter import 0..10 -o images -h <host_id> -d <ds-img_id>
valid options: datastore, host, object
import_defaults [oid] Import the the desired vCenter object
Examples:
- importing first datastore
onevcenter list -o templates -h <host_id>
- importing 2 concrete templates:
onevcenter import "vm-1252, vm-553, vm-1248" -o templates -h <host_id>
- importing a image range:
onevcenter import 0..10 -o images -h <host_id> -d <ds-img_id>
valid options: configuration, datastore, host, object
list Show a list with unimported vCenter objects
Examples:
- listing available templates:
onevcenter list -o templates -h <host_id>
- listing available images:
onevcenter list -o datastores -h <host_id> -d <ds-img_id>
valid options: datastore, host, object, vcenter, vpass, vuser
list_all Show a list with unimported vCenter objects excluding all filters
Examples:
- listing networks including uplinks:
onevcenter list_all -o networks -h <host_id>
valid options: datastore, host, object, vcenter, vpass, vuser
file Path to a file
range List of id's in the form 1,8..15
text String
OpenNebula 6.0.0.3 Copyright 2002-2021, OpenNebula Project, OpenNebula Systems