-
Notifications
You must be signed in to change notification settings - Fork 2
4. Parameters
--vcenter vcenter.fqdn.com
- Fully Qualified Domain Name or IP Address of the vCenter Server.
--vuser '[email protected]'
- Username for administrative access to vCenter.
--vpass 'changeme123!'
- Password for administrative access to vCenter.
--port 443
- An optional port number if using a non-standard port.
--esxi ip
- Enable transfer directly from ESXi using SSH. Requires SSH access to the ESXi host, but can be used if the vCenter is slow and VDDK library is not available to be used.
--esxi_user username
- Set the username for logging into the ESXi host. Defaults to: root
--esxi_pass password
- The password for the username provided in the previous parameter for ESXi host.
-n text|--name text
- Filter by name containing text
-d text|--datacenter text
- Filter by Datacenter name containing text
-c text|--cluster text
- Filter by Cluster name containing text
-s vm_state|--state vm_state
- Filter VM's by their power state, can be: [poweroff, running, suspended]
--config-file
- Set the custom configuration file, the default will be in /var/lib/one/oneswap.yaml
. See the bottom of this page for all the available options.
--w directory|--work-dir directory
- Set the working directory, defaults to /tmp
. It will create subfolders under this directory.
--custom
- Forces the basic conversion process, where the disks are copied and converted using qemu-img
rather than virt-v2v.
--hybrid
- Download images using rbvmomi2, then use virt-v2v to convert the images locally. Automatically will fallback to finish conversion.
--fallback
- Set to fallback to the custom method in the event that virt-v2v returns some error that prevents the VM from converting.
--img-wait secs
- Number of seconds to wait for the transferred image to be READY in OpenNebula. Default: 120
--http_transfer
- Enables HTTP transfer for the OpenNebula Images from the OneSwap machine to the OpenNebula Frontend. Required if this is being ran on a machine other than the OpenNebula Frontend.
--http_host 12.34.56.78
- Hostname or IP of the OneSwap server, must be accessible from the OpenNebula Frontend
--http_port 29869
- Specify a port to use when performing the HTTP transfer
--network id
- If a VCENTER_NETWORK_MATCH
attribute in an OpenNebula does not match the name of a vCenter network, assign the NIC to this OpenNebula Network ID instead. Defaults to 1 if not provided.
--skip-ip
- Do not create the IP in OpenNebula ( if it exists in vCenter guest info )
--skip-mac
- Do not create the MAC in OpenNebula
--datastore id
- Create images in the Image Datastore with this ID. Defaults to 1 if not provided.
--v2v-path /path/to/custom/v2v
- Set a custom virt-v2v executable path. Defaults to system path.
--f type|--format type
- Disk format: [ qcow2 | raw ], Default: qcow2
--vddk /path/to/vddk/vmware-vix-disklib-distrib
- Directory containing the VDDK(VMWare Virtual Disk Developers Kit) library files. Not compatible with ESXi SSH Transfer.
--qemu-ga
- Install qemu-guest-agent package in the Linux virtual machine.
--win-qemu-ga /path/to/virtio-win.iso
- Path to the Windows VirtIO drivers ISO, install QEMU Guest Agent
--virtio /path/to/virtio-win.iso
- Path to the Windows VirtIO Drivers ISO, installs virtio device drivers
--virt-tools /path/to/virt-tools/
- Directory containing rhsrvany.exe, defaults to /usr/share/virt-tools
. ( https://github.com/rwmjones/rhsrvany )
--delete-after
- Cleanup the working directory and remove the converted disk and the descriptor files. By default, the files are left there for inspection in the event of a failure.
--context-package /path/to/packages/
- Directory which contains the context packages to be injected. Defaults to: /var/lib/one/context/
.
--one-cluster id
- ID of the Cluster in OpenNebula the VM Template should be scheduled to
--one-host id
- ID of the Host in OpenNebula the VM Template should be scheduled to
--one-sys-ds id
- ID of the System Datastore in OpenNebula the VM should be scheduled to
--one-ds-cluster id
- ID of the Cluster in OpenNebula the System Datastore should be scheduled to
--dev-prefix [ sd | hd | vd ]
- DEV_PREFIX for all disks
--cpu_model model_type
- Define the CPU_MODEL
--graphics_type [ vnc | sdl | spice ]
- Create a remote console
--graphics_listen 12.34.56.78
- Graphics listen IP address
--graphics_port 5900
- Graphics listen on port
--graphics_keymap ky-mp
- Define keymapping for the graphics interface
--graphics_password 'pass1234'
- Define a password for the graphics connection
--graphics_command command
- Define a command for the graphics connection
--disable_contextualization
- Completely disable trying to inject OpenNebula Contextualization packages
--persistent_img
- Create the VM's disks as persistent
--memory_max 16384
- Define the maximum memory for hot resizing memory, in MB
--vcpu_max 16
- Define the maximum vcpus for hot resizing vcpu
--cpu 4
- Physical CPU assigned to the virtual machine, will match CPU cores from vCenter by default
--vcpu 4
- vCPU assigned to the VM, will match CPU cores from vCenter otherwise.
You can copy or link the configuration file to /var/lib/one/oneswap.yaml
, however you can also define a custom path with the --config-file
parameter. Comment out any paramteres that you do not want to use, and define any that you are going to use. Any values defined with the command line parameters will also override any of the values in the configuration file. That way you can set up defaults in the configuration file, but override whatever is necessary for specific situations. The OpenNebula connection details must be provided on the command line, rather than the config file.
Descriptions for each entry are inside the config file.