AIX 7.2TL5 create_ovaコマンド で OS上で ova イメージ・ファイル取得が可能

#### はじめに

2020/11 に リリースされた AIX 7.2 TL5 で、create_ova コマンドが追加されています。
今までは ova(OpenVirtualAppliance) イメージ・ファイルを作成するには PowerVC の管理下での取得実行が考えられましたが、このコマンドによってOS上のみでの取得が可能になります。


参照：[IBM AIX 7.2 provides several key technology-level enhancements and IBM AIX Enterprise Editions are updated ](https://www-01.ibm.com/common/ssi/ShowDoc.wss?docURL=/common/ssi/rep_ca/4/872/ENUSAP20-0364/index.html&lang=en&request_locale=en)
> AIX adds a new command: create_ova. This new command creates an open virtual appliance (OVA) package. An OVA package is an archive file that can be deployed as a virtual machine. The create_ova command is used to create a single-volume raw disk image and to export contents of a raw disk image to a compatible OVA package format. The OVA package can be imported into any IBM Power Virtualization Center (PowerVC) environment that contains a supported storage device. You can also import the OVA package into any cloud service that supports the Open Virtualization Format (OVF) packaging standard. The imported OVA package can be deployed as a virtual machine.

ova イメージ・ファイルで、カスタムAIX サーバーから、IBM Cloud サービス Power Systems Virtual Server への移行を行うことが容易になりますね。

・PowerSystems Virtual Server ブート・イメージのインポート
https://cloud.ibm.com/docs/power-iaas?topic=power-iaas-importing-boot-image
> 「イメージ・ファイル名 (Image file name)」フィールドでサポートされる形式は、.ova、.ova.gz、.tar、.tar.gz および .tgz です。


---

検証実施はこちらの記事を参考にしています。
[Creating bootable AIX OVA images ]
(http://gibsonnet.net/blog/cgaix/html/create_ova_aix_blog.html)
> For the above to work, I needed a mksysb image in a file system somewhere, a spare disk large enough to clone rootvg and enough free file system space for the image file, the ova file and free space for the gzip operation i.e. 20GB disk for alt_rootvg, 2-3GB for the mksysb image, approximately 60GB for the image file "work space". For a total of (around) 85GB of storage required for a 20GB image, that compresses down to a little over 1.2GB!

実行するためには別途ディスク容量を確保しておく必要がありますね。

---
#### 検証シナリオ

AIX rootvg ボリューム・グループをターゲット・ディスク hdisk0 にエクスポートし、ボリューム・グループの内容を /ova ディレクトリー下に OVA パッケージにパックする。

参考：AIX のコマンドマニュアルにも、create_ova コマンド
https://www.ibm.com/support/knowledgecenter/ja/ssw_aix_72/c_commands/create_ova.html


#### 検証環境
・AIXサーバー： 7.2 TL5 SP1
　(用意したディスク)
　　　rootvg 20GB (hdisk2)
　　　代替インストール用ディスク 20GB (hdisk0)
　　　ova パッケージング用ディスク領域 75GB (hdisk1)
　
#### 環境確認

・ oslvel 

```
# oslevel -s
7200-05-01-2038
```

・コマンド確認

```
#  ls -l /usr/sbin/create_ova
lrwxrwxrwx    1 root     system           25 Nov 12 20:14 /usr/sbin/create_ova -> /usr/lib/instl/create_ova
# lslpp -w /usr/lib/instl/create_ova
  File                                        Fileset               Type
  ----------------------------------------------------------------------------
  /usr/lib/instl/create_ova                   bos.rte.install       File
```

-> create_ova は bos.rte.install に含まれています。


ディスク環境 ((hdisk0 20GB(alt_instvg用, hdisk1 80GB(testvg/ovaファイル配置用, hdisk2 20GB(rootvg))

```
# lspv
hdisk0          none                                None
hdisk1          00c38470c5f6dd05                    testvg          active
hdisk2          00f6db0af58e9775                    rootvg          active
# lsvg
rootvg
testvg
# lsvg -l testvg
testvg:
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
loglv00             jfs2log    1       1       1    open/syncd    N/A
fslv00              jfs2       600     600     1    open/syncd    /ova
```

・yum の設定 (AIX Toolbox にアクセスできるようにしています)

```
# yum repolist
repo id                                                  repo name                                                          status
AIX_Toolbox                                              AIX generic repository                                             2,706
AIX_Toolbox_72                                           AIX 7.2 specific repository                                          223
AIX_Toolbox_noarch                                       AIX noarch repository                                                250
repolist: 3,179
```


#### 実行(1回目)

```
# time create_ova -o /ova -d hdisk0
Initializing resources ...


Checking for resource group ROOTVG...Checking hdisk0 space requirement...done
Checking /var space requirement...done
Checking /opt space requirement...done
Initializing resources ...


Checking for resource group yum...done

Checking for resource group python...done
Installing filesets ...

Checking /opt space requirement...done
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package python.ppc 0:2.7.15-3 will be updated
--> Processing Dependency: python = 2.7.15-3 for package: python-devel-2.7.15-3.ppc
--> Processing Dependency: python = 2.7.15-3 for package: python-tools-2.7.15-3.ppc
---> Package python.ppc 0:2.7.18-1 will be an update
--> Processing Dependency: gdbm >= 1.18.1 for package: python-2.7.18-1.ppc
--> Processing Dependency: sqlite >= 3.28.0 for package: python-2.7.18-1.ppc
--> Processing Dependency: libgcc >= 8.3.0 for package: python-2.7.18-1.ppc
--> Processing Dependency: ncurses >= 6.2 for package: python-2.7.18-1.ppc
--> Processing Dependency: gettext >= 0.19.8.1 for package: python-2.7.18-1.ppc
--> Processing Dependency: bzip2 >= 1.0.8 for package: python-2.7.18-1.ppc
--> Processing Dependency: libstdc++ >= 8.3.0 for package: python-2.7.18-1.ppc
--> Processing Dependency: readline >= 8.0 for package: python-2.7.18-1.ppc
--> Processing Dependency: expat >= 2.2.9 for package: python-2.7.18-1.ppc
--> Processing Dependency: libgdbm.a(libgdbm.so.6) for package: python-2.7.18-1.ppc
--> Running transaction check
---> Package bzip2.ppc 0:1.0.6-2 will be updated
---> Package bzip2.ppc 0:1.0.8-2 will be an update
---> Package expat.ppc 0:2.2.4-1 will be updated
---> Package expat.ppc 0:2.2.9-2 will be an update
---> Package gdbm.ppc 0:1.8.3-5 will be updated
---> Package gdbm.ppc 0:1.18.1-1 will be an update
---> Package gettext.ppc 0:0.19.7-1 will be updated
---> Package gettext.ppc 0:0.19.8.1-5 will be an update
--> Processing Dependency: libunistring >= 0.9.9-2 for package: gettext-0.19.8.1-5.ppc
--> Processing Dependency: libiconv >= 1.14 for package: gettext-0.19.8.1-5.ppc
--> Processing Dependency: glib2 >= 2.56.1-2 for package: gettext-0.19.8.1-5.ppc
--> Processing Dependency: libxml2 >= 2.9.7 for package: gettext-0.19.8.1-5.ppc
--> Processing Dependency: libiconv.a(libiconv.so.2) for package: gettext-0.19.8.1-5.ppc
--> Processing Dependency: libunistring.a(libunistring.so.2) for package: gettext-0.19.8.1-5.ppc
---> Package libgcc.ppc 0:8.1.0-2 will be updated
---> Package libgcc.ppc 0:8.3.0-3 will be an update
---> Package libstdc++.ppc 0:8.1.0-2 will be updated
---> Package libstdc++.ppc 0:8.3.0-3 will be an update
---> Package ncurses.ppc 0:6.1-2 will be updated
---> Package ncurses.ppc 0:6.2-2 will be an update
---> Package python-devel.ppc 0:2.7.15-3 will be updated
---> Package python-devel.ppc 0:2.7.18-1 will be an update
---> Package python-tools.ppc 0:2.7.15-3 will be updated
---> Package python-tools.ppc 0:2.7.18-1 will be an update
---> Package readline.ppc 0:7.0-5 will be updated
---> Package readline.ppc 0:8.0-2 will be an update
---> Package sqlite.ppc 0:3.15.2-1 will be updated
---> Package sqlite.ppc 0:3.32.3-1 will be an update
--> Running transaction check
---> Package glib2.ppc 0:2.14.6-2 will be updated
---> Package glib2.ppc 0:2.56.1-2 will be an update
---> Package libiconv.ppc 0:1.16-1 will be installed
---> Package libunistring.ppc 0:0.9.9-2 will be installed
---> Package libxml2.ppc 0:2.9.9-1 will be installed
--> Processing Dependency: xz-libs >= 5.2.2-1 for package: libxml2-2.9.9-1.ppc
--> Processing Dependency: liblzma.a(liblzma.so.5) for package: libxml2-2.9.9-1.ppc
--> Running transaction check
---> Package xz-libs.ppc 0:5.2.5-1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package             Arch       Version             Repository             Size
================================================================================
Updating:
 python              ppc        2.7.18-1            AIX_Toolbox            21 M
Installing for dependencies:
 libiconv            ppc        1.16-1              AIX_Toolbox           1.6 M
 libunistring        ppc        0.9.9-2             AIX_Toolbox           1.5 M
 libxml2             ppc        2.9.9-1             AIX_Toolbox           5.4 M
 xz-libs             ppc        5.2.5-1             AIX_Toolbox           540 k
Updating for dependencies:
 bzip2               ppc        1.0.8-2             AIX_Toolbox           238 k
 expat               ppc        2.2.9-2             AIX_Toolbox           895 k
 gdbm                ppc        1.18.1-1            AIX_Toolbox           278 k
 gettext             ppc        0.19.8.1-5          AIX_Toolbox           7.6 M
 glib2               ppc        2.56.1-2            AIX_Toolbox            28 M
 libgcc              ppc        8.3.0-3             AIX_Toolbox_72        978 k
 libstdc++           ppc        8.3.0-3             AIX_Toolbox_72         12 M
 ncurses             ppc        6.2-2               AIX_Toolbox           3.5 M
 python-devel        ppc        2.7.18-1            AIX_Toolbox            16 k
 python-tools        ppc        2.7.18-1            AIX_Toolbox            16 k
 readline            ppc        8.0-2               AIX_Toolbox           2.4 M
 sqlite              ppc        3.32.3-1            AIX_Toolbox           8.2 M

Transaction Summary
================================================================================
Install       4 Packages
Upgrade      13 Packages

Total download size: 95 M
Downloading Packages:
--------------------------------------------------------------------------------
Total                                           8.8 MB/s |  95 MB     00:10
Running Transaction Check
Running Transaction Test


Transaction Check Error:
  installing package gettext-0.19.8.1-5.ppc needs 15MB on the /opt filesystem
  installing package gdbm-1.18.1-1.ppc needs 11MB on the /opt filesystem
  installing package bzip2-1.0.8-2.ppc needs 12MB on the /opt filesystem
  installing package expat-2.2.9-2.ppc needs 15MB on the /opt filesystem
  installing package python-2.7.18-1.ppc needs 111MB on the /opt filesystem
  installing package python-devel-2.7.18-1.ppc needs 15MB on the /opt filesystem
  installing package python-tools-2.7.18-1.ppc needs 15MB on the /opt filesystem

Error Summary
-------------
Disk Requirements:
  At least 111MB more space needed on the /opt filesystem.


real    0m40.08s
user    0m1.21s
sys     0m0.28s

```



-> rpm が導入されていますが、/opt 容量不足で失敗.....
コマンド実行にはpipe viewer(pv) が必要で、その前提が色々導入されました。

> The create_ova tool requires the pipe viewer (pv) tool to be installed in order to function. If the tool is not installed, the first time you run create_ova, it will attempt to “yum install” it for you. If you don’t have access to a yum repos (either locally or via the internet), you could grab this tool and install it upfront.


ファイルシステム容量をこのくらいで実行してみます。

```
# df -m
Filesystem    MB blocks      Free %Used    Iused %Iused Mounted on
/dev/hd4        1024.00    952.38    7%     4729     3% /
/dev/hd2        3360.00   1212.73   64%    43168    13% /usr
/dev/hd9var      320.00    174.35   46%     1052     3% /var
/dev/hd3         224.00    221.16    2%       59     1% /tmp
/dev/hd1          32.00     31.64    2%        7     1% /home
/dev/hd11admin    128.00    127.63    1%        5     1% /admin
/proc                 -         -    -        -      - /proc
/dev/hd10opt    2048.00   1705.11   17%    11525     3% /opt
/dev/livedump    256.00    255.64    1%        4     1% /var/adm/ras/livedump
/dev/repo00     7488.00     32.37  100%     2533    25% /usr/sys/inst.images
/ahafs                -         -    -       35     1% /aha
/dev/fslv00    76800.00  76787.95    1%        4     1% /ova
```


#### 実行(2回目)

```
# time create_ova -o /ova -d hdisk0
Initializing resources ...


Checking for resource group ROOTVG...Checking hdisk0 space requirement...done
Checking /var space requirement...done
Checking /opt space requirement...done
Initializing resources ...


Checking for resource group yum...done

Checking for resource group python...done
Installing filesets ...

Checking /opt space requirement...done
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package python.ppc 0:2.7.15-3 will be updated
--> Processing Dependency: python = 2.7.15-3 for package: python-devel-2.7.15-3.ppc
--> Processing Dependency: python = 2.7.15-3 for package: python-tools-2.7.15-3.ppc
---> Package python.ppc 0:2.7.18-1 will be an update
--> Processing Dependency: gdbm >= 1.18.1 for package: python-2.7.18-1.ppc
--> Processing Dependency: sqlite >= 3.28.0 for package: python-2.7.18-1.ppc
--> Processing Dependency: libgcc >= 8.3.0 for package: python-2.7.18-1.ppc
--> Processing Dependency: ncurses >= 6.2 for package: python-2.7.18-1.ppc
--> Processing Dependency: gettext >= 0.19.8.1 for package: python-2.7.18-1.ppc
--> Processing Dependency: bzip2 >= 1.0.8 for package: python-2.7.18-1.ppc
--> Processing Dependency: libstdc++ >= 8.3.0 for package: python-2.7.18-1.ppc
--> Processing Dependency: readline >= 8.0 for package: python-2.7.18-1.ppc
--> Processing Dependency: expat >= 2.2.9 for package: python-2.7.18-1.ppc
--> Processing Dependency: libgdbm.a(libgdbm.so.6) for package: python-2.7.18-1.ppc
--> Running transaction check
---> Package bzip2.ppc 0:1.0.6-2 will be updated
---> Package bzip2.ppc 0:1.0.8-2 will be an update
---> Package expat.ppc 0:2.2.4-1 will be updated
---> Package expat.ppc 0:2.2.9-2 will be an update
---> Package gdbm.ppc 0:1.8.3-5 will be updated
---> Package gdbm.ppc 0:1.18.1-1 will be an update
---> Package gettext.ppc 0:0.19.7-1 will be updated
---> Package gettext.ppc 0:0.19.8.1-5 will be an update
--> Processing Dependency: libunistring >= 0.9.9-2 for package: gettext-0.19.8.1-5.ppc
--> Processing Dependency: libiconv >= 1.14 for package: gettext-0.19.8.1-5.ppc
--> Processing Dependency: glib2 >= 2.56.1-2 for package: gettext-0.19.8.1-5.ppc
--> Processing Dependency: libxml2 >= 2.9.7 for package: gettext-0.19.8.1-5.ppc
--> Processing Dependency: libiconv.a(libiconv.so.2) for package: gettext-0.19.8.1-5.ppc
--> Processing Dependency: libunistring.a(libunistring.so.2) for package: gettext-0.19.8.1-5.ppc
---> Package libgcc.ppc 0:8.1.0-2 will be updated
---> Package libgcc.ppc 0:8.3.0-3 will be an update
---> Package libstdc++.ppc 0:8.1.0-2 will be updated
---> Package libstdc++.ppc 0:8.3.0-3 will be an update
---> Package ncurses.ppc 0:6.1-2 will be updated
---> Package ncurses.ppc 0:6.2-2 will be an update
---> Package python-devel.ppc 0:2.7.15-3 will be updated
---> Package python-devel.ppc 0:2.7.18-1 will be an update
---> Package python-tools.ppc 0:2.7.15-3 will be updated
---> Package python-tools.ppc 0:2.7.18-1 will be an update
---> Package readline.ppc 0:7.0-5 will be updated
---> Package readline.ppc 0:8.0-2 will be an update
---> Package sqlite.ppc 0:3.15.2-1 will be updated
---> Package sqlite.ppc 0:3.32.3-1 will be an update
--> Running transaction check
---> Package glib2.ppc 0:2.14.6-2 will be updated
---> Package glib2.ppc 0:2.56.1-2 will be an update
---> Package libiconv.ppc 0:1.16-1 will be installed
---> Package libunistring.ppc 0:0.9.9-2 will be installed
---> Package libxml2.ppc 0:2.9.9-1 will be installed
--> Processing Dependency: xz-libs >= 5.2.2-1 for package: libxml2-2.9.9-1.ppc
--> Processing Dependency: liblzma.a(liblzma.so.5) for package: libxml2-2.9.9-1.ppc
--> Running transaction check
---> Package xz-libs.ppc 0:5.2.5-1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package             Arch       Version             Repository             Size
================================================================================
Updating:
 python              ppc        2.7.18-1            AIX_Toolbox            21 M
Installing for dependencies:
 libiconv            ppc        1.16-1              AIX_Toolbox           1.6 M
 libunistring        ppc        0.9.9-2             AIX_Toolbox           1.5 M
 libxml2             ppc        2.9.9-1             AIX_Toolbox           5.4 M
 xz-libs             ppc        5.2.5-1             AIX_Toolbox           540 k
Updating for dependencies:
 bzip2               ppc        1.0.8-2             AIX_Toolbox           238 k
 expat               ppc        2.2.9-2             AIX_Toolbox           895 k
 gdbm                ppc        1.18.1-1            AIX_Toolbox           278 k
 gettext             ppc        0.19.8.1-5          AIX_Toolbox           7.6 M
 glib2               ppc        2.56.1-2            AIX_Toolbox            28 M
 libgcc              ppc        8.3.0-3             AIX_Toolbox_72        978 k
 libstdc++           ppc        8.3.0-3             AIX_Toolbox_72         12 M
 ncurses             ppc        6.2-2               AIX_Toolbox           3.5 M
 python-devel        ppc        2.7.18-1            AIX_Toolbox            16 k
 python-tools        ppc        2.7.18-1            AIX_Toolbox            16 k
 readline            ppc        8.0-2               AIX_Toolbox           2.4 M
 sqlite              ppc        3.32.3-1            AIX_Toolbox           8.2 M

Transaction Summary
================================================================================
Install       4 Packages
Upgrade      13 Packages

Total size: 95 M
Downloading Packages:
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : libgcc-8.3.0-3.ppc                                          1/30
  Updating   : libstdc++-8.3.0-3.ppc                                       2/30
  Updating   : ncurses-6.2-2.ppc                                           3/30
  Updating   : readline-8.0-2.ppc                                          4/30
  Updating   : sqlite-3.32.3-1.ppc                                         5/30
  Installing : xz-libs-5.2.5-1.ppc                                         6/30
  Installing : libunistring-0.9.9-2.ppc                                    7/30
  Installing : libiconv-1.16-1.ppc                                         8/30
add shr4.o shared members from /usr/lib/libiconv.a to  /opt/freeware/lib/libiconv.a
add shr.o shared members from /usr/lib/libiconv.a to  /opt/freeware/lib/libiconv.a
add shr4_64.o shared members from /usr/lib/libiconv.a to  /opt/freeware/lib/libiconv.a
/
  Installing : libxml2-2.9.9-1.ppc                                         9/30
  Updating   : glib2-2.56.1-2.ppc                                         10/30
  Updating   : gettext-0.19.8.1-5.ppc                                     11/30
  Updating   : gdbm-1.18.1-1.ppc                                          12/30
  Updating   : bzip2-1.0.8-2.ppc                                          13/30
  Updating   : expat-2.2.9-2.ppc                                          14/30
  Updating   : python-2.7.18-1.ppc                                        15/30
  Updating   : python-devel-2.7.18-1.ppc                                  16/30
  Updating   : python-tools-2.7.18-1.ppc                                  17/30
  Cleanup    : python-tools-2.7.15-3.ppc                                  18/30
  Cleanup    : glib2-2.14.6-2.ppc                                         19/30
  Cleanup    : python-devel-2.7.15-3.ppc                                  20/30
  Cleanup    : python-2.7.15-3.ppc                                        21/30
  Cleanup    : ncurses-6.1-2.ppc                                          22/30
  Cleanup    : libstdc++-8.1.0-2.ppc                                      23/30
  Cleanup    : sqlite-3.15.2-1.ppc                                        24/30
  Cleanup    : readline-7.0-5.ppc                                         25/30
  Cleanup    : libgcc-8.1.0-2.ppc                                         26/30
  Cleanup    : bzip2-1.0.6-2.ppc                                          27/30
  Cleanup    : expat-2.2.4-1.ppc                                          28/30
  Cleanup    : gdbm-1.8.3-5.ppc                                           29/30
  Cleanup    : gettext-0.19.7-1.ppc                                       30/30
Ignore the error about AIX-rpm dependency since the older libintl.a            is already preserved and will be reverted back

Dependency Installed:
  libiconv.ppc 0:1.16-1   libunistring.ppc 0:0.9.9-2   libxml2.ppc 0:2.9.9-1
  xz-libs.ppc 0:5.2.5-1

Updated:
  python.ppc 0:2.7.18-1

Dependency Updated:
  bzip2.ppc 0:1.0.8-2         expat.ppc 0:2.2.9-2  gdbm.ppc 0:1.18.1-1
  gettext.ppc 0:0.19.8.1-5    glib2.ppc 0:2.56.1-2 libgcc.ppc 0:8.3.0-3
  libstdc++.ppc 0:8.3.0-3     ncurses.ppc 0:6.2-2  python-devel.ppc 0:2.7.18-1
  python-tools.ppc 0:2.7.18-1 readline.ppc 0:8.0-2 sqlite.ppc 0:3.32.3-1

Complete!
done

Checking for resource group python-pip...Installing filesets ...

Checking /opt space requirement...done
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package python-pip.noarch 0:10.0.1-1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package          Arch         Version           Repository                Size
================================================================================
Installing:
 python-pip       noarch       10.0.1-1          AIX_Toolbox_noarch       4.3 M

Transaction Summary
================================================================================
Install       1 Package

Total download size: 4.3 M
Installed size: 4.3 M
Downloading Packages:
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : python-pip-10.0.1-1.noarch                                   1/1

Installed:
  python-pip.noarch 0:10.0.1-1

Complete!
done
/opt/freeware/bin/cloud-init already installed.

Done verifying resources.
Name: cloud-init
Version: 0.7.5
Summary: EC2 initialisation magic
Home-page: http://launchpad.net/cloud-init/
Author: Scott Moser
Author-email: scott.moser@canonical.com
License: GPLv3
Location: /opt/freeware/lib/python2.7/site-packages
Requires: cheetah, PrettyTable, oauth, pyserial, configobj, pyyaml, argparse, requests, jsonpatch
Required-by:
Executing command:
cloud-init --version
cloud-init 0.7.5
Executing command:
alt_disk_copy -B -d hdisk0
Calling mkszfile to create new /image.data file.
Checking disk sizes.
Creating cloned rootvg volume group and associated logical volumes.
Creating logical volume alt_hd5.
Creating logical volume alt_hd6.
Creating logical volume alt_hd8.
Creating logical volume alt_hd4.
Creating logical volume alt_hd2.
Creating logical volume alt_hd9var.
Creating logical volume alt_hd3.
Creating logical volume alt_hd1.
Creating logical volume alt_hd10opt.
Creating logical volume alt_hd11admin.
Creating logical volume alt_lg_dumplv.
Creating logical volume alt_livedump.
Creating logical volume alt_repo00.
Creating /alt_inst/ file system.
Creating /alt_inst/admin file system.
Creating /alt_inst/home file system.
Creating /alt_inst/opt file system.
Creating /alt_inst/tmp file system.
Creating /alt_inst/usr file system.
Creating /alt_inst/usr/sys/inst.images file system.
Creating /alt_inst/var file system.
Creating /alt_inst/var/adm/ras/livedump file system.
Generating a list of files
for backup and restore into the alternate file system...
Backing-up the rootvg files and restoring them to the alternate file system...
Modifying ODM on cloned disk.
Building boot image on cloned disk.
forced unmount of /alt_inst/var/adm/ras/livedump
forced unmount of /alt_inst/var/adm/ras/livedump
forced unmount of /alt_inst/var
forced unmount of /alt_inst/var
forced unmount of /alt_inst/usr/sys/inst.images
forced unmount of /alt_inst/usr/sys/inst.images
forced unmount of /alt_inst/usr
forced unmount of /alt_inst/usr
forced unmount of /alt_inst/tmp
forced unmount of /alt_inst/tmp
forced unmount of /alt_inst/opt
forced unmount of /alt_inst/opt
forced unmount of /alt_inst/home
forced unmount of /alt_inst/home
forced unmount of /alt_inst/admin
forced unmount of /alt_inst/admin
forced unmount of /alt_inst
forced unmount of /alt_inst
Changing logical volume names in volume group descriptor area.
Fixing LV control blocks...
Fixing file system superblocks...

Checking for resource group PIPEVIEWER...Installing filesets ...

Checking /tmp space requirement...done
Checking /var space requirement...done
Checking /opt space requirement...done
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package pv.ppc 0:1.6.6-1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package       Arch           Version              Repository              Size
================================================================================
Installing:
 pv            ppc            1.6.6-1              AIX_Toolbox             85 k

Transaction Summary
================================================================================
Install       1 Package

Total download size: 85 k
Installed size: 85 k
Downloading Packages:
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : pv-1.6.6-1.ppc                                               1/1

Installed:
  pv.ppc 0:1.6.6-1

Complete!
done
Checking /ova space requirement...done

Checking for resource group aix_1605344480.img...
2048020.0GiB 0:06:24 [53.3MiB/s] [53.3MiB/s] [======================================================================>] 100%       0    +
 records in
20480+0 records out
41943040+0 records in
41943040+0 records out
done

Checking for resource group aix_1605344480.ova.gz...
Checking /ova space requirement...done
a ./aix_1605344480.ovf 4 blocks
a ./aix_1605344480.img 41943040 blocks
20.0GiB 0:20:23 [16.7MiB/s] [16.7MiB/s] [======================================================================>] 100%

Done verifying resources.

real    33m6.84s
user    7m51.53s
sys     2m55.54s
```

-> 35分弱かかりましたが、成功しました。

ova イメージ・ファイルもできています。サイズは6GBくらい。

```
# ls -l /ova
total 11823520
-rw-r--r--    1 root     system   6053639102 Nov 14 03:34 aix_1605344480.ova.gz
drwxr-xr-x    2 root     system          256 Nov 14 02:55 lost+found
```




----
#### まとめ

・AIX 7.2 TL5 の新しいコマンド create_ova で OS上で ova イメージ・ファイルを作成することが可能です。
・ディスク容量がそれなりに必要です。
・AIX ToolBox を使えるようにしておく、または必要なrpmを事前に導入しておく必要があります。
・コマンド・オプション を変更して mksysb ファイルを使う方法、ディスク・サイズを指定する方法などもあります。


** 追記 ** 

追加されるrpmについての情報を次の記事に記載しました。->  [AIX create_ova コマンド使用時に導入されるrpm モジュール](https://qiita.com/c_u/items/2f10adc3473fe56db30c)


以上です。