-
Bug
-
Resolution: Duplicate
-
Undefined
-
None
-
rhel-9.6
-
No
-
Moderate
-
rhel-sst-virt-tools
-
ssg_virtualization
-
None
-
False
-
-
None
-
None
-
None
-
None
-
Unspecified
-
Unspecified
-
Unspecified
-
None
What were you trying to do that didn't work?
The guest with a network disk (SSH/HTTP/HTTPS) will shut down when reverting to the first snapshot.
Please provide the package NVR for which the bug is seen:
libvirt-10.10.0-6.el9.x86_64
qemu-kvm-9.1.0-14.el9.x86_64
How reproducible is this bug?:
100%
Steps to reproduce
0. Edit storage_use_nbdkit = 1 to /etc/libvirt/qemu.conf and restart virtqemud service.
1. Prepare a ssh server.
2. Prepare the /tmp/known_hosts and /tmp/id_rsa required in ssh network disk.
Note: On the local machine, /tmp/known_hosts stores the public key of the remote host, and /tmp/id_rsa stores the local private key. Before that, we need to use ssh-copy-id from local host to remote host.
3. Start the guest with ssh network disk.
<disk type="network" device="disk"> <driver name="qemu" type="raw"/> <source protocol="ssh" name="/var/lib/libvirt/images/test.img" index="1"> <host name="10.73.210.25" port="22"/> <knownHosts path="/tmp/known_hosts"/> <identity username="root" keyfile="/tmp/id_rsa"/> </source> <target dev="sdb" bus="scsi"/> <alias name="scsi0-0-0-1"/> <address type="drive" controller="0" bus="0" target="0" unit="1"/> </disk>
4. Create snapshots.
# for i in {1..3}; do virsh snapshot-create-as rhel s$i --memspec snapshot=external,file=/tmp/mem.s$i --diskspec vda,snapshot=no --diskspec sdb,snapshot=external,file=/var/lib/libvirt/images/test.s$i; done Domain snapshot s1 created Domain snapshot s2 created Domain snapshot s3 created
5. Revert the snapshot to s1.
- virsh snapshot-revert rhel s1
error: Failed to revert snapshot s1
error: unsupported configuration: source for disk 'sdb' is not a regular file; refusing to generate external snapshot name
6. Check the guest status. - virsh list --all
Id Name State
---------------------------------
- rhel shut offExpected results
The guest is still running.
Actual results
The guest is shut down.
- duplicates
-
RHEL-30971 The guest will shut off after snapshot-revert guest to non-file disk status
-
- In Progress
-