KVM 和 qemu RPM 信息:-
[root@shirish_rhel ~]# rpm -qa | grep -i qemu
qemu-kvm-common-1.5.3-167.el7.x86_64
qemu-img-1.5.3-167.el7.x86_64
ipxe-roms-qemu-20180825-2.git133f4c.el7.noarch
libvirt-daemon-driver-qemu-4.5.0-23.el7.x86_64
qemu-kvm-1.5.3-167.el7.x86_64
qemu-kvm-tools-1.5.3-167.el7.x86_64
快照列表
[root@shirish_rhel ~]# virsh snapshot-list --domain centos7.0
Name Creation Time State
------------------------------------------------------------
testVM2-firstSNAP35 2019-08-08 13:22:11 -0400 shutoff
testVM2-firstSNAP36 2019-08-08 13:24:48 -0400 shutoff
testVM2-firstSNAP37 2019-08-08 13:27:13 -0400 shutoff
[root@shirish_rhel ~]# virsh snapshot-info --domain centos7.0 --snapshotname testVM2-firstSNAP37
Name: testVM2-firstSNAP37
Domain: centos7.0
Current: yes
State: shutoff
Location: external
Parent: -
Children: 0
Descendants: 0
Metadata: yes
如果虚拟机关闭:-
[root@shirish_rhel ~]# virsh blockcommit centos7.0 vda --active --verbose --pivot
error: Requested operation is not valid: domain is not running
如果虚拟机正在运行:-
[root@shirish_rhel ~]# virsh blockcommit centos7.0 vda --active --verbose --pivot
error: unsupported configuration: online commit not supported with this QEMU binary
答案1
RHEL 中默认提供的二进制文件qemu
不支持快照实时合并。要合并快照,您有两种选择:
关闭虚拟机并使用
qemu-img
(参见这里例如)安装
qemu-kvm-ev
包来自CentOS 虚拟化 SIG,具有所需的功能。