このページの翻訳:
- 日本語 (ja)
- English (en)
最近の更新
- 04 ↷ 50_dialy:2024:04:04 から 50_dialy:2024:04:05 へページを名称変更しました。
- 2024.04.02 Homebrewを入れる [各バージョン確認]
最近の更新
文書の過去の版を表示しています。
root@hvdev1001:~# virsh domblklist testvm Target Source ------------------------------------------------ vda /var/lib/libvirt/images/testvm.qcow2 sda -
root@hvdev1001:~# virsh snapshot-create-as testvm --name testsnap --no-metadata --disk-only Domain snapshot testsnap created
root@hvdev1001:~# virsh domblklist testvm Target Source --------------------------------------------------- vda /var/lib/libvirt/images/testvm.testsnap sda -
# virsh dumpxml testvm . . . <disk type='file' device='disk'> <driver name='qemu' type='qcow2'/> <source file='/var/lib/libvirt/images/testvm.testsnap' index='3'/> <backingStore type='file' index='2'> <format type='qcow2'/> <source file='/var/lib/libvirt/images/testvm.qcow2'/> <backingStore/> </backingStore> <target dev='vda' bus='virtio'/> <alias name='virtio-disk0'/> <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/> </disk> . .
# qemu-img info /var/lib/libvirt/images/testvm.qcow2 image: /var/lib/libvirt/images/testvm.qcow2 file format: qcow2 virtual size: 25 GiB (26843545600 bytes) disk size: 4.16 GiB cluster_size: 65536 Format specific information: compat: 1.1 lazy refcounts: true refcount bits: 16 corrupt: false # cp /var/lib/libvirt/images/testvm.qcow2 /backups/
※注意 –base –topはフルパスじゃないとエラーになります。
root@hvdev1001:~# virsh blockcommit testvm vda --base /var/lib/libvirt/images/testvm.qcow2 --top /var/lib/libvirt/images/testvm.testsnap --wait --verbose --pivot Block commit: [100 %] Successfully pivoted
root@hvdev1001:~# virsh domblklist testvm Target Source ------------------------------------------------ vda /var/lib/libvirt/images/testvm.qcow2 sda -
# virsh dumpxml testvm . . . <disk type='file' device='disk'> <driver name='qemu' type='qcow2'/> <source file='/var/lib/libvirt/images/testvm.qcow2' index='2'/> <backingStore/> <target dev='vda' bus='virtio'/> <alias name='virtio-disk0'/> <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/> </disk>