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.
Bug 1218278 - Allow renaming of disks in Virt-Manager
Summary: Allow renaming of disks in Virt-Manager
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: virt-manager
Version: 7.1
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Giuseppe Scrivano
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-04 13:28 UTC by Robert McSwain
Modified: 2019-09-12 08:26 UTC (History)
7 users (show)

Fixed In Version: virt-manager-1.2.0-1-el7
Doc Type: Bug Fix
Doc Text:
Changing the default guest name when creating a new guest in virt-manager previously caused the guest's disk name to be incorrectly based on the operating system rather than on the guest name. This update modifies virt-manager to properly obtain the name for the created virtual disk from the name of the guest.
Clone Of:
Environment:
Last Closed: 2015-11-19 05:25:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2206 0 normal SHIPPED_LIVE virt-manager bug fix and enhancement update 2015-11-19 08:17:29 UTC

Description Robert McSwain 2015-05-04 13:28:45 UTC
1. Proposed title of this feature request  
      Allow renaming of disks in Virt-Manager.
      
3. What is the nature and description of the request?  
      Virt-manager upon updating to version 1.1.0-12 from version 0.10.0-20 in RHEL7 at least, the name field was moved to the last page of the VM build interface. This resulted in all storage files being named after the OS version you are running, no matter the VM Name you define. 

4. Why does the customer need this? (List the business requirements here)  
      If you use the same OS for many of your VMs, managing the storage could become quickly confusing since unrelated VMs will have similar "rhel7.0-1.qcow2" names. 

5. How would the customer like to achieve this? (List the functional requirements here)  
      The old way of the qcow/storage files being named after the VM's name would be preferred for clarity of the storage. 

6. For each functional requirement listed, specify how Red Hat and the customer can test to confirm the requirement is successfully implemented.  
      Using virt-manager, create a VM and name it something other than the OS's name. Other variables should be irrelevant. Once it is created, check the storage behind the VM and see what name the file was given. It should match the VM's name and not the OS's name.

7. Is there already an existing RFE upstream or in Red Hat Bugzilla?  
      Not that I was able to find as of 04/23/15

8. Does the customer have any specific timeline dependencies and which release would they like to target (i.e. RHEL5, RHEL6)?  
      RHEL7 is what it was discovered on, so this would be preferred to be first in line. Unsure if this actually affects RHEL5/6.

9. Is the sales team involved in this request and do they have any additional input?  
      No.

10. List any affected packages or components.  
      Virt-manager version 1.1.0-12

11. Would the customer be able to assist in testing this functionality if implemented? 
      Yes.

Comment 3 Giuseppe Scrivano 2015-05-04 14:33:41 UTC
this has been fixed upstream with commit:

commit 27298c8a805826fa7b9ed1e9a0684dd85232e234
Author: Cole Robinson <crobinso>
Date:   Wed Oct 2 19:58:21 2013 -0400

    addhw: Fix disk naming from 'customize' dialog (bz 744137)

Comment 5 fwu 2015-05-11 08:55:53 UTC
I can reproduce this issue with package:
virt-manager-1.1.0-12.el7.noarch

steps:
1. Open virt-manager: #virt-manager
2. Create a new virtual machine:
Step 1 of 5, choose "Local install media", then click "Forward"
Step 2 of 5, use iso: RHEL-6.7-20140415.0-Server-i386-dvd1.iso, then virt-manager will check "OS type"(Linux) and "Version"(Red Hat Enterprise Linux 6.6) automatically, click "Forward".
Step 3 of 5, as default , then click "Forward".
Step 4 of 5, as default, then click "Forward".
Step 5 of 5, Name showing "rhel6.6" as default, if we check "Customize configuration before installation" and click "Finish", in next page, we can check disk name is "/var/lib/libvirt/images/rhel6.6.qcow2".
If we change guest name in Step5/5 to "test1", and also check "Customize configuration before installation" and click "Finish", in next page, we can check disk name is kept as "/var/lib/libvirt/images/rhel6.6.qcow2".

Result: We cannot rename a disk even if we changed guest name.

Then try to verify on new build:
virt-manager-1.2.0-2.el7.noarch

Steps as above:
On Step 5 of 5, guest name "rhel6.6" was set as default, if we check "Customize configuration before installation" and click "Finish", in next page, we can check disk name is "/var/lib/libvirt/images/rhel6.6.qcow2".
If we change guest name in Step5/5 to test2, and also check "Customize configuration before installation" and click "Finish", in next page, we can check disk name is "/var/lib/libvirt/images/test2.qcow2".

Result: We can rename a disk via virt-manager, and the storage name matches the VM's name.

According to aboves steps, move this bug from ON_QA to VERIFIED.

Comment 7 errata-xmlrpc 2015-11-19 05:25:40 UTC
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://rhn.redhat.com/errata/RHBA-2015-2206.html


Note You need to log in before you can comment on or make changes to this bug.