本製品のインスタンス (VM)が動作している場合は停止します。
本製品のコンソールに管理者権限(administrator)でログインし、以下のコマンドを実行します。
# dashadm power stop
qemu-imgコマンドを利用し、システム領域用とユーザーデータ領域用それぞれの仮想ディスクファイルをベースファイルとした、qcow2イメージを作成します
以下は、システム領域用の仮想ディスクファイルDASH-1.1.0_kvm.qcow2からDASH-1.1.0_kvm_tmp.qcow2を作成し、ユーザーデータ領域用の仮想ディスクファイルDASH-1.1.0_user.rawから、DASH-1.0.0_user_tmp.qcow2を作成する例です
# cd /var/lib/libvirt/images # qemu-img create -f qcow2 -b DASH-1.1.0_kvm.qcow2 DASH-1.1.0_kvm_tmp.qcow2 # qemu-img create -f qcow2 -b DASH-1.1.0_user.img DASH-1.1.0_user_tmp.qcow2
virsh editコマンドを利用し、作成したqcow2イメージを使用するように仮想マシンの設定を変更します。
システム領域用の仮想ディスクファイル
タグのfile属性を、作成したqcow2イメージに変更します。
ユーザーデータ領域用の仮想ディスクファイル
タグのtype属性をrawからqcow2に変更し、タグのfile属性を、作成したqcow2イメージに変更します。
実行例は以下のとおりです。
本製品の仮想アプライアンスのドメイン名とは、仮想マシンマネージャーで表示されている仮想マシンの名前です。
# virsh edit <本製品の仮想アプライアンスのドメイン名>
太字の箇所を変更します。
変更前
<devices> <emulator>/usr/libexec/qemu-kvm</emulator> <disk type='file' device='disk'> <driver name='qemu' type='qcow2'/> <source file='/var/lib/libvirt/images/DASH-1.1.0_kvm.qcow2'/> <target dev='hda' bus='ide'/> <address type='drive' controller='0' bus='0' target='0' unit='0'/> </disk> <disk type='file' device='disk'> <driver name='qemu' type='raw'/> <source file='/var/lib/libvirt/images/DASH-1.1.0_user.img'/> <target dev='vda' bus='virtio'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/> </disk>
変更後
<devices> <emulator>/usr/libexec/qemu-kvm</emulator> <disk type='file' device='disk'> <driver name='qemu' type='qcow2'/> <source file='/var/lib/libvirt/images/DASH-1.1.0_kvm_tmp.qcow2'/> <target dev='hda' bus='ide'/> <address type='drive' controller='0' bus='0' target='0' unit='0'/> </disk> <disk type='file' device='disk'> <driver name='qemu' type='qcow2'/> <source file='/var/lib/libvirt/images/DASH-1.1.0_user_tmp.qcow2'/> <target dev='vda' bus='virtio'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/> </disk>
注意
ユーザーデータ領域用に複数の仮想ディスクファイルを使用している場合、それらすべてについてqcow2イメージを作成し、仮想マシンの設定を変更してください。