cloud-foundation-fabric/examples/cloud-operations/vm-migration/esxi
Elia e279818b55
M4CE (v5) Examples (#413)
* M4CE (v5) Examples

* vm-migration new parent folder

* New vm-migration section

* Updated variables description

* Updated variables description

* Fixed broken link

* Updated variables description

* Fix lines spacing

* Added output variable

* Updated Variables description

* New variables layout

* fixed new line

* M4CE (v5) Examples

* vm-migration new parent folder

* New vm-migration section

* Updated variables description

* Updated variables description

* Fixed broken link

* Updated variables description

* Fix lines spacing

* Added output variable

* Updated Variables description

* New variables layout

* fixed new line

* added test

* move test on new folder

* Updated variables order and description

* Added output file

* vm-migration example tests

* Updated output description

* Updated output description

* Fixed Typo

Co-authored-by: Simone Ruffilli <sruffilli@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
2022-02-02 15:21:10 +01:00
..
README.md M4CE (v5) Examples (#413) 2022-02-02 15:21:10 +01:00
backend.tf.sample M4CE (v5) Examples (#413) 2022-02-02 15:21:10 +01:00
diagram.png M4CE (v5) Examples (#413) 2022-02-02 15:21:10 +01:00
main.tf M4CE (v5) Examples (#413) 2022-02-02 15:21:10 +01:00
provider.tf M4CE (v5) Examples (#413) 2022-02-02 15:21:10 +01:00
variables.tf M4CE (v5) Examples (#413) 2022-02-02 15:21:10 +01:00
vsphere.tf M4CE (v5) Examples (#413) 2022-02-02 15:21:10 +01:00

README.md

M4CE(v5) - ESXi Connector

This example deploys a virtual machine from an OVA image and the security prerequisites to run the Migrate for Compute Engine (v5) connector on VMWare ESXi.

The example is designed to deploy the M4CE (v5) connector on and existing VMWare environment. The network configuration required to allow the communication of the migrate connetor to the GCP API is not included in this example.

This is the high level diagram:

High-level diagram

Managed resources and services

This sample creates several distinct groups of resources:

Variables

name description type required default
m4ce_ssh_public_key Filesystem path to the public key for the SSH login string
vcenter_password VCenter user password. string
vsphere_environment VMVware VSphere connection parameters object({…})
m4ce_appliance_properties M4CE connector OVA image configuration parameters object({…}) {…}
m4ce_connector_ovf_url http URL to the public M4CE connector OVA image string "https://storage.googleapis.com/vmmigration-public-artifacts/migrate-connector-2-0-1663.ova"

Manual Steps

Once this example is deployed a VCenter user has to be created and binded to the M4CE role in order to allow the connector access the VMWare resources. The user can be created manually through the VCenter web interface or througt GOV commandline if it is available:

export GOVC_URL=<VCENTER_URL> (eg. https://192.168.1.100/sdk)
export GOVC_USERNAME=<VCENTER_ADMIN_USER> (eg. administrator@example.local)
export GOVC_PASSWORD=<PASSWORD>
export GOVC_INSECURE=true

govc sso.user.create  -p <USER_PASSWORD> -R gcp-m4ce-role gcp-m4ce-user
govc permissions.set  -principal gcp-m4ce-user@example.local   -propagate=true  -role gcp-m4ce-role