Skip to content

Commit 11dabad

Browse files
authored
Merge pull request #751 from RichardHoch/MTV-3188_rcm_cli
MTV-3188 RCM in CLI documentation
2 parents 12f1478 + 9f34d8e commit 11dabad

File tree

1 file changed

+37
-27
lines changed

1 file changed

+37
-27
lines changed

documentation/modules/new-migrating-virtual-machines-cli.adoc

Lines changed: 37 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -573,10 +573,9 @@ spec:
573573
namespace: <namespace>
574574
EOF
575575
----
576-
<1> Allowed values are `pod` and `multus`.
577-
<2> Specify a network attachment definition for each additional {virt} network. Specify the
578-
`namespace` either by using the `namespace property` or with a name built as follows: `<network_namespace>/<network_name>`.
579-
<3> Required only when `type` is `multus`. Specify the namespace of the {virt} network attachment definition.
576+
<1> Allowed values are `pod`, `ignored`, and `multus`.
577+
<2> Specify the network name. When the `type` is `multus`, use the {virt} network attachment definition name.
578+
<3> Required only when the `type` is `multus`. Specify the namespace of the {virt} network attachment definition.
580579
endif::[]
581580

582581
ifdef::vmware[]
@@ -813,20 +812,22 @@ spec:
813812
networkNameTemplate: <network_interface_template> <9>
814813
pvcNameTemplate: <pvc_name_template> <10>
815814
pvcNameTemplateUseGenerateName: true <11>
815+
skipGuestConversion: false <12>
816816
targetNamespace: <target_namespace>
817-
volumeNameTemplate: <volume_name_template> <12>
818-
vms: <13>
819-
- id: <source_vm1> <14>
817+
useCompatibilityMode: true <13>
818+
volumeNameTemplate: <volume_name_template> <14>
819+
vms: <15>
820+
- id: <source_vm1> <16>
820821
- name: <source_vm2>
821-
networkNameTemplate: <network_interface_template_for_this_vm> <15>
822-
pvcNameTemplate: <pvc_name_template_for_this_vm> <16>
823-
volumeNameTemplate: <volume_name_template_for_this_vm> <17>
824-
targetName: <target_name> <18>
825-
hooks: <19>
822+
networkNameTemplate: <network_interface_template_for_this_vm> <17>
823+
pvcNameTemplate: <pvc_name_template_for_this_vm> <18>
824+
volumeNameTemplate: <volume_name_template_for_this_vm> <19>
825+
targetName: <target_name> <20>
826+
hooks: <21>
826827
- hook:
827828
namespace: <namespace>
828-
name: <hook> <20>
829-
step: <step> <21>
829+
name: <hook> <22>
830+
step: <step> <23>
830831

831832
EOF
832833
----
@@ -837,7 +838,7 @@ EOF
837838
<5> Specify the name of the `NetworkMap` CR.
838839
<6> Specify a storage mapping even if the VMs to be migrated are not assigned with disk images. The mapping can be empty in this case.
839840
<7> Specify the name of the `StorageMap` CR.
840-
<8> By default, virtual network interface controllers (vNICs) change during the migration process. As a result, vNICs that are configured with a static IP address linked to the interface name in the guest VM lose their IP address. +
841+
<8> By default, virtual network interface controllers (vNICs) change during the migration process. As a result, vNICs that are configured with a static IP address linked to the interface name in the guest VM lose their IP address.
841842
To avoid this, set `preserveStaticIPs` to `true`. {project-short} issues a warning message about any VMs for which vNIC properties are missing. To retrieve any missing vNIC properties, run those VMs in vSphere in order for the vNIC properties to be reported to {project-short}.
842843
<9> [[callout9]]Optional. Specify a template for the network interface name for the VMs in your plan.
843844
The template follows the Go template syntax and has access to the following variables:
@@ -865,28 +866,37 @@ The template follows the Go template syntax and has access to the following vari
865866
* `"{{if .Shared}}shared-{{end}}{{.VmName}}-{{.DiskIndex}}"`
866867
+
867868
<11> Optional:
868-
* When set to `true`, {project-short} adds one or more randonly generated alphanumeric characters to the name of the PVC in order to ensure all PVCs have unique names.
869-
* When set to `false`, if you specify a `pvcNameTemplate`, {project-short} does not add such charchters to the name of the PVC.
869+
* When set to `true`, {project-short} adds one or more randomly generated alphanumeric characters to the name of the PVC in order to ensure all PVCs have unique names.
870+
* When set to `false`, if you specify a `pvcNameTemplate`, {project-short} does not add such characters to the name of the PVC.
870871
+
871872
include::snip_pvcNameTemplateUseGenerateName-warn.adoc[]
872873
+
873-
<12> [[callout12]]Optional: Specify a template for the volume interface name for the VMs in your plan.
874+
<12> Determines whether VMs are converted before migration using the `virt-v2v` tool, which makes the VMs compatible with {virt}.
875+
* When set to `false`, the default value, {project-short} migrates VMs using `virt-v2v`.
876+
* When set to `true`, {project-short} migrates VMs using raw copy mode, which copies the VMs without converting them first.
877+
+
878+
Raw copy mode copies VMs without converting them with `virt-v2v`. This allows for faster conversions, migrating VMs running a wider range of operating systems, as well as supporting migrating disks encrypted using Linux Unified Key Setup (LUKS) without needing keys. However, VMs migrated using raw copy mode might not function properly on {virt}. For more information on `virt-v2v`, see xref:virt-v2v-mtv_mtv[How {project-short} uses the virt-v2v tool].
879+
+
880+
<13> Determines whether the migration uses VirtIO devices or compatibility devices (SATA bus, E1000E NIC) when `skipGuestConversion` is `true`, that is, when raw copy mode is used for the migration. The setting of `useCompatibilityMode` has no effect when `skipGuestConversion` is `false`, because `virt-v2v` conversion always uses VirtIO devices.
881+
* When set to `true`, the default setting, {project-short} uses compatibility devices (SATA bus, E1000E NIC) in the migration process to ensure that the VMs can be booted after migration.
882+
* When set to `false`, {project-short} uses high-performance VirtIO devices in the migration process, and `virt-v2v` ensures that the VMs can be booted after migration. Before using this option, verify that VirtIO drivers are already installed in the source VMs.
883+
<14> [[callout14]]Optional: Specify a template for the volume interface name for the VMs in your plan.
874884
The template follows the Go template syntax and has access to the following variables:
875885
** `.PVCName`: Name of the PVC mounted to the VM using this volume.
876886
** `.VolumeIndex`: Sequential index of the volume interface (0-based).
877887
+
878888
*Examples*
879889
** `"disk-{{.VolumeIndex}}"`
880890
** `"pvc-{{.PVCName}}"`
881-
<13> You can use either the `id` or the `name` parameter to specify the source VMs.
882-
<14> Specify the VMware vSphere VM moRef. To retrieve the moRef, see xref:retrieving-vmware-moref_vmware[Retrieving a VMware vSphere moRef].
883-
<15> Optional: Specify a network interface name for the specific VM. Overrides the value set in `spec:networkNameTemplate`. Variables and examples as in xref:callout9[callout 9].
884-
<16> Optional: Specify a PVC name for the specific VM. Overrides the value set in `spec:pvcNameTemplate`. Variables and examples as in xref:callout10[callout 10].
885-
<17> Optional: Specify a volume name for the specific VM. Overrides the value set in `spec:volumeNameTemplate`. Variables and examples as in xref:callout12[callout 12].
886-
<18> Optional: {project-short} automatically generates a name for the target VM. You can override this name by using this parameter and entering a new name. The name you enter must be unique and it must be a valid Kubernetes subdomain. Otherwise, the migration fails automatically.
887-
<19> Optional: Specify up to two hooks for a VM. Each hook must run during a separate migration step.
888-
<20> Specify the name of the `Hook` CR.
889-
<21> Allowed values are `PreHook`, before the migration plan starts, or `PostHook`, after the migration is complete.
891+
<15> You can use either the `id` or the `name` parameter to specify the source VMs.
892+
<16> Specify the VMware vSphere VM moRef. To retrieve the moRef, see xref:retrieving-vmware-moref_vmware[Retrieving a VMware vSphere moRef].
893+
<17> Optional: Specify a network interface name for the specific VM. Overrides the value set in `spec:networkNameTemplate`. Variables and examples as in xref:callout9[callout 9].
894+
<18> Optional: Specify a PVC name for the specific VM. Overrides the value set in `spec:pvcNameTemplate`. Variables and examples as in xref:callout10[callout 10].
895+
<19> Optional: Specify a volume name for the specific VM. Overrides the value set in `spec:volumeNameTemplate`. Variables and examples as in xref:callout14[callout 14].
896+
<20> Optional: {project-short} automatically generates a name for the target VM. You can override this name by using this parameter and entering a new name. The name you enter must be unique, and it must be a valid Kubernetes subdomain. Otherwise, the migration fails automatically.
897+
<21> Optional: Specify up to two hooks for a VM. Each hook must run during a separate migration step.
898+
<22> Specify the name of the `Hook` CR.
899+
<23> Allowed values are `PreHook` before the migration plan starts or `PostHook` after the migration is complete.
890900
+
891901
include::snip_vmware-name-change.adoc[]
892902
endif::[]

0 commit comments

Comments
 (0)