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.
Descriptionmxie@redhat.com
2016-08-22 06:47:31 UTC
Created attachment 1192777[details]
screenshot
Description of problem:
Can't change name for uefi guest on virt-manager
Version-Release number of selected component (if applicable):
libvirt-2.0.0-5.el7.x86_64
virt-manager-1.4.0-1.el7.noarch
qemu-kvm-1.5.3-121.el7.x86_64
How reproducible:
100%
Steps to Reproduce:
1.Prepate a uefi guest on virt-manager
# virsh dumpxml juzhou-test-efi
<domain type='kvm'>
<name>juzhou-test-efi</name>
<uuid>18e6c7b5-ece3-45c4-bca6-529113e42d26</uuid>
<memory unit='KiB'>4194304</memory>
<currentMemory unit='KiB'>4194304</currentMemory>
<vcpu placement='static'>1</vcpu>
<os>
<type arch='x86_64' machine='pc-i440fx-rhel7.3.0'>hvm</type>
<loader readonly='yes' type='pflash'>/usr/share/OVMF/OVMF_CODE.fd</loader>
<nvram template='/usr/share/OVMF/OVMF_VARS.fd'>/var/lib/libvirt/qemu/nvram/juzhou-test-efi_VARS.fd</nvram>
<boot dev='hd'/>
</os>
<features>
<acpi/>
<apic/>
</features>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/libexec/qemu-kvm</emulator>
<disk type='volume' device='disk'>
<driver name='qemu' type='raw' cache='none'/>
<source pool='default' volume='juzhou-test-efi-sda'/>
<target dev='vda' bus='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
</disk>
2.Try to change name for uefi guest on virt-manager, but it can't be changed with error :Error apply changes: Requested operation is not valid: cannot delete inactive domain with nvram, pls refer to screenshot
Actual results:
As above description
Expected results:
Can change name for uefi guest on virt-manager
Additional info:
Can change name for no-uefi guest on virt-manager successfully
Upstream commit:
commit 92c230d1113403b506e115416dff1218479b7116
Author: Pavel Hrdina <phrdina>
Date: Mon Mar 6 09:43:10 2017 +0100
domain: add support to rename domain with nvram vars file
I can reproduce this bug with build:
virt-manager-1.4.0-2.el7.noarch
virt-manager-common-1.4.0-2.el7.noarch
virt-install-1.4.0-2.el7.noarch
Then try to verify this bug with new build:
virt-install-1.4.1-1.el7.noarch
virt-manager-1.4.1-1.el7.noarch
virt-manager-common-1.4.1-1.el7.noarch
libvirt-3.1.0-2.el7.x86_64
Steps:
1. Prepare a uefi guest on virt-manager with configuraion:
# virsh dumpxml rhel7.3-uefi-rename
<domain type='kvm'>
<name>rhel7.3-uefi-rename</name>
...
<os>
<type arch='x86_64' machine='pc-q35-rhel7.4.0'>hvm</type>
<loader readonly='yes' type='pflash'>/usr/share/OVMF/OVMF_CODE.secboot.fd</loader>
<nvram>/var/lib/libvirt/qemu/nvram/rhel7.3-uefi-rename_VARS.fd</nvram>
<boot dev='hd'/>
</os>
...
<disk type='file' device='disk'>
<driver name='qemu' type='raw'/>
<source file='/var/lib/libvirt/images/rhel7.3-2.img'/>
<target dev='vda' bus='virtio'/>
<address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
</disk>
...
2. Launch virt-manager, double click the guest to "Show virtual hardware details" page.
3. Modify guest Name from "rhel7.3-uefi-rename" to "rhel7.3-uefi", then click "Apply" button.
Result:
After step3, guest name can be changed to "rhel7.3-uefi" successfully, and guest can start successfully.
Also test with a window-uefi guest, guest also can be renamed successfully.
So move this bug from ON_QA to VERIFIED.
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/RHBA-2017:2072
Created attachment 1192777 [details] screenshot Description of problem: Can't change name for uefi guest on virt-manager Version-Release number of selected component (if applicable): libvirt-2.0.0-5.el7.x86_64 virt-manager-1.4.0-1.el7.noarch qemu-kvm-1.5.3-121.el7.x86_64 How reproducible: 100% Steps to Reproduce: 1.Prepate a uefi guest on virt-manager # virsh dumpxml juzhou-test-efi <domain type='kvm'> <name>juzhou-test-efi</name> <uuid>18e6c7b5-ece3-45c4-bca6-529113e42d26</uuid> <memory unit='KiB'>4194304</memory> <currentMemory unit='KiB'>4194304</currentMemory> <vcpu placement='static'>1</vcpu> <os> <type arch='x86_64' machine='pc-i440fx-rhel7.3.0'>hvm</type> <loader readonly='yes' type='pflash'>/usr/share/OVMF/OVMF_CODE.fd</loader> <nvram template='/usr/share/OVMF/OVMF_VARS.fd'>/var/lib/libvirt/qemu/nvram/juzhou-test-efi_VARS.fd</nvram> <boot dev='hd'/> </os> <features> <acpi/> <apic/> </features> <clock offset='utc'/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>restart</on_crash> <devices> <emulator>/usr/libexec/qemu-kvm</emulator> <disk type='volume' device='disk'> <driver name='qemu' type='raw' cache='none'/> <source pool='default' volume='juzhou-test-efi-sda'/> <target dev='vda' bus='virtio'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </disk> 2.Try to change name for uefi guest on virt-manager, but it can't be changed with error :Error apply changes: Requested operation is not valid: cannot delete inactive domain with nvram, pls refer to screenshot Actual results: As above description Expected results: Can change name for uefi guest on virt-manager Additional info: Can change name for no-uefi guest on virt-manager successfully