このページの翻訳:
- 日本語 (ja)
- English (en)
最近の更新
- 2024.01.18 RailsでSSLエラー 以前のリビジョンを復元 (2024/01/18 07:06)
- 31 CentOS5 TLS1.2 created
- 2024.04.12 MySQL BIT Field created
最近の更新
from.qcow2 から to.qcow2 を作成
qemu-img create -b from.qcow2 -f qcow2 to.qcow2
# 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
# 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
qemu-img commit to.qcow2
これで、to.qcow2 の差分が、from.qcow2へマージされます。
# 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
これだとcommitで、from2.qcow2へマージされます。