- Red Hat Cloud Suite Virtualization Migration Demo
- 1. Overview
- 2. Getting Started
- 3. Migrate a VM from VMware to Red Hat Enterprise Virtualization
- 4. Migrate a VM From VMware to OpenStack Platform
- 5. Migrate a VM From Red Hat Enterprise Virtualization to OpenStack Platform
- 6. End State
- 7. Extra Credit
This demonstration uses Red Hat CloudForms 3.2 as a broker to drive virtual-to-virtual tools such as ovftool
and virt-v2v
to migrate VMs from VMware vSphere to Red Hat Enterprise Virtualization and from Red Hat Enterprise Virtualization to Red Hat Enterprise Linux OpenStack Platform 7.
-
Migrate the VMs created in the Red Hat Cloud Suite Deployment demo
-
Completion of the Red Hat Cloud Suite Deployment demo
-
The following provisioned VMs:
-
wp1
- a Red Hat Enterprise Linux 7 host running Apache and WordPress -
wp2
- a Red Hat Enterprise Linux 7 host running Apache and WordPress -
haproxy
- a Red Hat Enterprise Linux 7 host running the HAProxy tool configured to proxy traffic towp1
andwp2
-
mysql
- a Red Hat Enterprise Linux 7 host running MariaDB that thewp1
andwp2
hosts talk to
-
The demo environment consists of the following systems:
Hostname |
Internal IP |
Description |
|
|
Jump host and iSCSI/NFS server |
|
|
IPA server managed by Satellite, serves |
|
|
CloudForms server |
|
|
Red Hat Satellite 6.1 server |
|
|
Red Hat Enterprise Virtualization Manager server |
|
|
KVM hypervisor managed by Red Hat Enterprise Virtualization |
|
|
ESXi hypervisor |
|
|
VMware vCenter server |
|
|
Red Hat OpenStack Platform server |
|
|
Virtual-to-Virtual Migration server |
-
Log in to https://rhpds.redhat.com with your OPENTLC SSO credentials.
-
Go to Services → Catalogs → Service Catalogs.
-
Under All Services → Cloud Infrastructure Demos, select Red Hat Cloud Suite Migration Demo.
-
On the right, click Order.
-
Read all of the information on the resulting page, check the necessary box, and then click Submit.
Important
|
|
Tip
|
Be very mindful of the runtime of your demo environment! It may take you several hours to complete the demo, so you may have to extend the runtime. This is especially important in later steps, when you are building the VMs. For information on how to extend runtime and lifetime, see https://www.opentlc.com/lifecycle. |
-
Once the system is running, use SSH to access your demo server using your OPENTLC login name and private SSH key.
-
Example using a Unix/Linux system:
$ ssh -i /path/to/private_key <YOUR-OPENTLC-USERNAME>@demo-<YOUR-GUID>.rhpds.opentlc.com
-
-
Become
root
using your OPENTLC password:$ sudo -i
-
Establish an SSH connection to the CloudForms server and monitor
automation.log
:# ssh cf # tail -f /var/www/miq/vmdb/log/automation.log
TipThe log entries are very long, so it helps if you stretch this screen as wide as possible. -
From a web browser, open each of the URLs below in a separate window or tab using these credentials (except when noted):
-
Username:
admin
-
Password:
r3dh4t1!
NoteYou must accept all of the self-signed SSL certificates. TipYou can also find these URLs in the email provided when you provisioned the demo environment. -
Red Hat Enterprise Virtualization Manager: https://rhevm-GUID.rhpds.opentlc.com
-
Navigate to and click Administration Portal.
-
-
vCenter: https://vcenter-GUID.rhpds.opentlc.com
-
Use the username
root
to log in to vCenter. -
Click Log in to vSphere Web Client.
-
Flash Player is required.
-
-
Click VMs and Templates.
-
-
CloudForms: https://cf-GUID.rhpds.opentlc.com
-
OpenStack Dashboard: https://osp-GUID.rhpds.opentlc.com/dashboard
-
-
On the
cf
system, go to Infrastructure → Providers. -
If you see an exclamation mark (!) in a provider, check the provider’s box, go to Configuration → Edit Selected Infrastructure Provider, and click Validate.
-
Repeat the previous step for each provider.
-
Go to Infrastructure → Providers → Virtual Machines → VMs → All VMs.
-
Make sure all four VMs show up as entities in CloudForms.
NoteIf you needed to validate providers, you may have to wait a few minutes and refresh the screen before the VMs show up. -
Tell CloudForms to shut down (not power off) all four VMs.
-
On the
cf
system, go to Infrastructure → Providers. -
Click RHEV.
-
Select Policy → Edit Tags.
-
Select Point of Arrival and then select Rhev for the assigned value.
-
This sets this provider as an available Red Hat Enterprise Virtualization destination.
-
-
Select the provider_type tag and select POA for the assigned value, then click Save.
-
This sets this provider as the current point of arrival.
-
-
Navigate to the VMware provider.
-
Select Policy → Edit Tags.
-
Select provider_type and select POD for the assigned value, then click Save.
-
This sets this provider as the point of departure or source provider.
-
-
On the
cf
system, go to Services → Catalogs → Service Catalogs. -
Under All Services → Import CSV, select Import Attributes.
-
On the right, click Order.
-
On the resulting screen, type
attributes.csv
in the Filename field and click Submit. -
Monitor
automation.log
on thecf
server. When the process is complete, continue with the next section.NoteIf you see any errors about wp2-rhcs-cloudlab-redhat-com
, you can ignore them for now because you are not exporting from Red Hat Enterprise Virtualization yet.
-
On the
cf
system, go to Services → Catalogs → Service Catalogs. -
Under All Services → Import CSV, select Import Tags.
-
On the right, click Order.
-
On the resulting screen, type
tags.csv
in the Filename field and click Submit. -
Monitor
automation.log
on thecf
server. When the process is complete, continue with the next section.NoteContinue to ignore errors about wp2-rhcs-cloudlab-redhat-com
.
-
Go to Infrastructure → Providers → Virtual Machines → VMs → All VMs.
-
Navigate to the
wp1
VM. -
Under Custom Attributes, confirm that there is a custom attribute called
ip
with the value you provided inattributes.csv
. -
Under Smart Management, confirm that migrate_group is set to demo2 and Point of Arrival is set to Rhev.
-
On the
cf
system, go to Services → Catalogs → Service Catalogs. -
Under All Services → Migration, select Batch_Migrate.
-
On the right, click Order.
-
For Migration Group, select demo1 and click Submit.
-
Monitor
automation.log
and the Red Hat Enterprise Virtualization Admin GUI closely.NoteIt may be beneficial to open three separate sessions to the Migration server and run the following: # watch find /mnt
# tail -f /mnt/migrate/ova/mysql.rhcs.cloudlab.redhat.com/*log
# tail -f /mnt/migrate/ova/mysql.rhcs.cloudlab.redhat.com/*err
Note
|
It takes about 20 minutes for automation.log to show that the service has completed.
|
-
Configure OpenStack Platform as a migration destination.
-
On the
cf
system, go to Clouds → Providers. -
Select OSP.
-
Select Policy → Edit Tags.
-
Select Point of Arrival and select OpenStack for the assigned value.
-
This sets this provider as an available OpenStack destination.
-
-
Select provider_type and select POA for the assigned value, then click Save.
-
This sets this provider as the current point of arrival.
-
-
-
Clear the POA tag from Red Hat Enterprise Virtualization.
-
On the
cf
system, go to Infrastructure → Providers. -
Select RHEV.
-
Select Policy → Edit Tags.
-
Click the Trash Can icon next to the Point of Arrival tag.
-
Click the Trash Can icon next to the provider_type tag.
-
Click Save.
-
-
Set the VM tags and attributes.
-
Using the procedure learned before, monitor
automation.log
while running the Import Tags and Import Attributes catalog items again.NoteYou can ignore the warnings from the VMs with disabled providers.
-
-
Migrate the VM.
-
On the
cf
system, go to Services → Catalogs → Service Catalogs. -
Under All Services → Migration, select Batch_Migrate.
-
On the right, click Order.
-
For Migration Group, select demo2 then click Submit.
-
-
Monitor
automation.log
and the OpenStack Platform dashboard closely.
-
Clear the POA tag from VMware.
-
On the
cf
system, go to Infrastructure → Providers. -
Select VMware.
-
Select Policy → Edit Tags.
-
Click the Trash Can icon next to the Point of Arrival tag.
-
Click the Trash Can icon next to the provider_type tag.
-
Click Save.
-
-
Configure Red Hat Enterprise Virtualization to be a POD.
-
Navigate to the RHEV provider.
-
Click Policy → Edit Tags.
-
Select the provider_type tag, select POD for the assigned value, and then click Save.
-
-
Set the VM tags and attributes.
-
Using the procedure learned before, monitor
automation.log
while running the Import Tags and Import Attributes catalog items again.NoteYou can ignore the warnings from the VMs with disabled providers.
-
-
Migrate the VM.
-
On the
cf
system, go to Services → Catalogs → Service Catalogs. -
Under All Services → Migration, select Batch_Migrate.
-
On the right, click Order.
-
For Migration Group, select demo3 then click Submit.
-
-
Monitor
automation.log
and the OpenStack Platform dashboard closely.
-
You now have the
mysql
server on Red Hat Enterprise Virtualization and the twowp
servers on OpenStack Platform. -
The
haproxy
system remains on Red Hat Enterprise Virtualization.