Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
In libvirt disk xml, there is a snapshot attribute to disable VM creating disk snapshot:
<disk type='file' device='disk' snapshot='no'>
<driver name='qemu' type='qcow2'/>
<source file='/var/lib/libvirt/images/BZ1106416.qcow2'/>
<backingStore/>
<target dev='vda' bus='virtio'/>
<alias name='virtio-disk0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
</disk>
But currently this attribute is not in virt-install:
# virt-install --disk=\?|grep snapshot
It's better to introduce this attribute so that we can create an VM disabling snapshot by default.
Try to verify this bug with new build:
virt-manager-1.4.3-1.el7.noarch
Steps:
1. Introduce snapshot_policy parameter for disk device
# virt-install --disk=\?|grep snapshot
snapshot_policy
2. Create a new VM with disabling snasphot for disk:
# virt-install --name test-snap --memory 1024 \
--location /root/Downloads/RHEL-7.4-20170711.0-Server-x86_64-dvd1.iso \
--disk path=/var/lib/libvirt/images/test-qcow2-yes.img,size=8,format=qcow2,snapshot_policy=no \
--graphics vnc
Result:
Installation finshed successfully.
2.1 Check VM xml file, finding snapshot='no' in xml
<disk type='file' device='disk' snapshot='no'>
<driver name='qemu' type='qcow2'/>
<source file='/var/lib/libvirt/images/test-qcow2-yes.img'/>
<backingStore/>
--
2.2 Try to create internal snapshot when VM is inactive:
Launch virt-manager and connect to VM console, select 'Manage VM Snapshots', then click 'Create new snapshot' button(keep default setting and click 'Finish').
Result:
Error creating snapshot: unsupported configuration: nothing selected for snapshot
The result is expected.
2.3 Try to create internal snapshot when VM is active:(steps same as step2.2)
Result:
Error creating snapshot: unsupported configuration: internal snapshots and checkpoints require all disks to be selected for snapshot
The result is expected.
As a summary, newly added attribute "snapshot_policy=yes" works well, so move this bug from ON_QA to VERIFIED, thanks
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHEA-2018:0726
Description of problem: In libvirt disk xml, there is a snapshot attribute to disable VM creating disk snapshot: <disk type='file' device='disk' snapshot='no'> <driver name='qemu' type='qcow2'/> <source file='/var/lib/libvirt/images/BZ1106416.qcow2'/> <backingStore/> <target dev='vda' bus='virtio'/> <alias name='virtio-disk0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/> </disk> But currently this attribute is not in virt-install: # virt-install --disk=\?|grep snapshot It's better to introduce this attribute so that we can create an VM disabling snapshot by default.