内容へ移動
fl8 Wiki
ユーザ用ツール
ログイン
サイト用ツール
検索
ツール
文書の表示
以前のリビジョン
バックリンク
最近の変更
メディアマネージャー
サイトマップ
ログイン
>
最近の変更
メディアマネージャー
サイトマップ
現在位置:
Dokuwiki.fl8.jp
»
01_linux
»
08_仮想化
»
kvm
»
09 qcow2 backing file
トレース:
01_linux:08_仮想化:kvm:09_qcow2_backing_file
この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。
====== 09 qcow2 backing file ====== ===== backing fileを使って、create ===== from.qcow2 から to.qcow2 を作成 <code> qemu-img create -b from.qcow2 -f qcow2 to.qcow2 </code> ==== 確認 ==== <code> # ls -al from.qcow2 to.qcow2 -rwxrwx--- 1 root vstorage-users 1459617792 Nov 8 07:58 from.qcow2 -rwxrwx--- 1 root vstorage-users 196848 Nov 8 07:58 to.qcow2 </code> <code> # qemu-img info to.qcow2 image: to.qcow2 file format: qcow2 virtual size: 15G (16106127360 bytes) disk size: 196K cluster_size: 65536 backing file: from.qcow2 Format specific information: compat: 1.1 lazy refcounts: false refcount bits: 16 corrupt: false </code> ===== backing元ファイルへ差分を反映 ===== <code> qemu-img commit to.qcow2 </code> これで、to.qcow2 の差分が、from.qcow2へマージされます。 ===== rebaseすると、元ファイルを残したままcommitできる ===== <code> # cp from.qcow2 from2.qcow2 # qemu-img rebase -b from2.qcow2 to.qcow2 # qemu-img info to.qcow2 image: to.qcow2 file format: qcow2 virtual size: 15G (16106127360 bytes) disk size: 256K cluster_size: 65536 backing file: from2.qcow2 Format specific information: compat: 1.1 lazy refcounts: false refcount bits: 16 corrupt: false </code> これだとcommitで、from2.qcow2へマージされます。 {{tag>qcow2}}
01_linux/08_仮想化/kvm/09_qcow2_backing_file.txt
· 最終更新: 2022/11/07 23:02 by
matsui
ページ用ツール
文書の表示
以前のリビジョン
バックリンク
文書の先頭へ