OpenShift Virtualization
Red Hat® OpenShift® Virtualization は Red Hat OpenShift に含まれる機能であり、組織が新規および既存の仮想マシン (VM) ワークロードを実行およびデプロイするための先進的なプラットフォームを提供します。このソリューションにより、従来の仮想マシンを、信頼できる、一貫した包括的なハイブリッドクラウド・アプリケーション・プラットフォームに簡単に移行できます。
OpenShift Virtualization は、VM の移行を単純化するとともに、クラウドネイティブ・アプリケーション・プラットフォームのシンプルさと速度を利用してインフラストラクチャのモダナイゼーションの道筋を提供します。また、先進的な管理の原則を取り入れつつ既存の仮想化への投資を維持することを目指しており、Red Hat の包括的な仮想化ソリューションの基盤となります。
Migration Toolkit for Virtualization (MTV)
Migration Toolkit for Virtualization (MTV) を使用すると、仮想マシンを VMware vSphere などから OpenShift Container Platform で実行されている OpenShift Virtualization に移行できます。
OCP 4.18 Bare Metal 環境 OpenShift Virtualization (OCP-V) で、執筆時点の最新版である MTV 2.8 を導入・設定してみます。
なお、MTV の導入・使用に際しては以下の前提条件を満たす必要があります。
Installation
OCP Console の Operator Hub から mtv-operator
で検索をします。
必要な箇所を変更した後に Install
ボタンを押して導入が完了します。
Installed Operator に表示されている Migration Toolkit for Virtualization Operator
の ForkliftController
Tab から Create ForkliftController
ボタンを押して、Default 設定で ForkliftController を作成します。
この時点で openshift-mtv
Project に以下のような Pod が稼働します。
$ oc get pods -n openshift-mtv
NAME READY STATUS RESTARTS AGE
forklift-api-c4d779784-sqqh5 1/1 Running 1 33d
forklift-controller-66d59c9978-tqb7q 2/2 Running 1 33d
forklift-operator-7d86585845-hdl64 1/1 Running 1 33d
forklift-ui-plugin-74b5c549d6-4dm5t 1/1 Running 1 33d
forklift-validation-5b68b94f47-72q4x 1/1 Running 1 33d
forklift-volume-populator-controller-7b8c54b99f-84g6g 1/1 Running 1 33d
導入が完了すると OCP Console に Migration
セクションが追加されます。
Configuration
MTV の設定は、OCP Console の Migration/Overview 画面右側の Settings
または ForkliftController
CR の編集で行います。
Settings
では、以下の編集を行う事ができます。
ForkliftController
CR の編集は、上記画面の YAML
Tab または CLI で行います。
$ oc explain ForkliftController
GROUP: forklift.konveyor.io
KIND: ForkliftController
VERSION: v1beta1
DESCRIPTION:
ForkliftController is the Schema for the forkliftcontrollers API
FIELDS:
apiVersion <string>
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values. More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
kind <string>
Kind is a string value representing the REST resource this object
represents. Servers may infer this from the endpoint the client submits
requests to. Cannot be updated. In CamelCase. More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
metadata <ObjectMeta>
Standard object's metadata. More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
spec <Object>
Spec defines the desired state of ForkliftController
status <Object>
Status defines the observed state of ForkliftController
$ oc explain ForkliftController.spec
GROUP: forklift.konveyor.io
KIND: ForkliftController
VERSION: v1beta1
FIELD: spec <Object>
DESCRIPTION:
Spec defines the desired state of ForkliftController
$ oc get ForkliftController -n openshift-mtv
NAME AGE
forklift-controller 120d
一般的な環境で MTV を使用するだけであればパラメータの変更は不要ですが、状況に応じて検討が必要です。
なお、今回導入した MTV 2.8 では OCP Console の API Explorer
や oc explain
でパラメータの説明が表示されないため、以下のドキュメントを参照する必要があります。なお、ForkliftController CR only
と記載のあるパラメータは、OCP Console からの編集はできません。