デフォルト構成の場合、組織 VDC は、仮想データセンターをバッキングするいずれかの vCenter Server リソース プールで作成された仮想マシンを自動的に検出します。システムは簡単な vApp を作成して、検出された各仮想マシン (VM) を取り込みます。
自動検出の有効/無効は全般レベル、組織レベル、組織VDCレベルにて設定が可能
自動検出されるためには以下の条件を満たす必要がある
・次のVMはインポートできません
フォールトトレラントVM、テンプレート
・VMはOrg VDCネットワークに接続する必要があります。
・IDEコントローラーを備えたVMは、電源がオフの状態でなければなりません。
そして、想定通りにインポートされない場合、以下手順にてデバッグが可能
例:ORG01について出力
# ./cell-management-tool debug-auto-import --org ORG01 Total number of skipped VMs is 2 VM with name:vcd-cent01-gSCy, moref vm-2008 in VC 24-vcenter.env.lab can be skipped for the following reasons: ←VCDで作成したVMで、インポート対象外 1) Virtual machine is already imported in vCD or is managed by vCD. 2) Virtual machine is not present in a vCD managed resource pool. 3) Virtual machine is created by vCD. VM with name:cent01, moref vm-41 in VC 24-vcenter.env.lab can be skipped for the following reasons: ←VCDリソースプール外のため、インポート失敗 1) Virtual machine is not present in a vCD managed resource pool. 2) Virtual machine is too recent to be considered for import. Its change_version field should be older than timespan defined by VM_DISCOVERY_MIN_AGE_SEC (current value 3600 seconds) or it should have a record of task in task_inv whose status is 3 (COMPLETED).
また、検出に関わるパラメータを以下にて設定可能
・検出対象VMの最小年齢
例:60秒 (デフォルト1時間)
cell-management-tool manage-config -n VM_DISCOVERY_MIN_AGE_SEC -v 60
・検出失敗対象への再実行時間
例:25秒(デフォルト1時間)
cell-management-tool manage-config -n managed-vapp.discovery.retry-delay-sec -v 25
importについてはタスクから確認可能
※参考