仮想マシンをコピーする
作業時のメモです。
KVMの仮想マシンをコピーしたい場合は、「virt-clone」コマンドを使えばOK。
ただし、コピー元のサーバーは停止しておく必要があります。
# virsh list --all Id 名前 状態 ---------------------------------- - centos6-test シャットオフ # virt-clone --original centos6-test --name centos6-copy --file /var/lib/libvirt/images/centos6-copy.img Cloning centos6-test.img | 10 GB 01:37 Clone 'centos6-copy' created successfully. # virsh list --all Id 名前 状態 ---------------------------------- - centos6-test シャットオフ - centos6-copy シャットオフ
今日はこんな所で。