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 615239 - virt-install can not recognize image file of qcow2 format when mount nfs share directory to /mnt
Summary: virt-install can not recognize image file of qcow2 format when mount nfs shar...
Keywords:
Status: CLOSED DUPLICATE of bug 620456
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: python-virtinst
Version: 6.0
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Cole Robinson
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-07-16 09:14 UTC by Johnny Liu
Modified: 2010-08-06 18:10 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-08-06 18:10:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
guest-virtinstall log file (1.99 KB, application/octet-stream)
2010-07-16 09:16 UTC, Johnny Liu
no flags Details

Description Johnny Liu 2010-07-16 09:14:19 UTC
Description of problem:
Use virt-install to install a guest with an existing image file of qcow2 format which is on a nfs share directory, the qcow2 format is not recognized.

# virsh dumpxml <guest-name>
...
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='none'/>
      <source file='/mnt/win2008r2-64-virtio.qcow2'/>
      <target dev='hda' bus='ide'/>
      <alias name='ide0-0-0'/>
      <address type='drive' controller='0' bus='0' unit='0'/>
    </disk>
...

That will caused guest failed to boot up.

Version-Release number of selected component (if applicable):
libvirt-0.8.1-15.el6.x86_64
kernel-2.6.32-49.el6.x86_64
qemu-kvm-0.12.1.2-2.95.el6.x86_64
qemu-img-0.12.1.2-2.95.el6.x86_64
selinux-policy-3.7.19-29.el6.noarch
libselinux-2.0.94-1.el6.x86_64
libselinux-utils-2.0.94-1.el6.x86_64
selinux-policy-targeted-3.7.19-29.el6.noarch
libselinux-python-2.0.94-1.el6.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Modify the following lines in /etc/libvirt/qemu.conf
user = "root"
group = "root"
dynamic_ownership = 0
2. Set nfs sebool vaule,
# setsebool -P virt_use_nfs 1
# getsebool -a|grep virt
virt_use_comm --> off
virt_use_fusefs --> off
virt_use_nfs --> on
virt_use_samba --> off
virt_use_sysfs --> off
virt_use_usb --> on
3. Mount nfs share directory
# mount 10.66.90.113:/vol/xenimage/yimwang/ /mnt
4. Use virt-install to install a guest with an existing image file of qcow2 format:
# virt-install -n xx -r 512 -f /mnt/win2008r2-64-virtio.qcow2 --import

Actual results:
Guest failed to start with the following error:
Booting from Hard Disk...
Boot failed: not a bootable disk

Dump domain xml, found that the disk format is setting to "raw"
# virsh dumpxml xx
...
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='none'/>
      <source file='/mnt/win2008r2-64-virtio.qcow2'/>
      <target dev='hda' bus='ide'/>
      <alias name='ide0-0-0'/>
      <address type='drive' controller='0' bus='0' unit='0'/>
    </disk>
...

After I manually edit the format to "qcow2", the guest is booted up successfully.
...
      <driver name='qemu' type='qcow2' cache='none'/>
...

Expected results:
Guest should be started successfully.

Additional info:
In step 3, if I mount the nfs share directory to /var/lib/libvirt/images/, the guest is booted up successfully.

Comment 1 Johnny Liu 2010-07-16 09:16:05 UTC
Created attachment 432328 [details]
guest-virtinstall log file

Comment 2 Johnny Liu 2010-07-16 09:17:55 UTC
python-virtinst version:
python-virtinst-0.500.3-5.el6.noarch

Comment 4 RHEL Program Management 2010-07-16 09:38:11 UTC
This issue has been proposed when we are only considering blocker
issues in the current Red Hat Enterprise Linux release. It has
been denied for the current Red Hat Enterprise Linux release.

** If you would still like this issue considered for the current
release, ask your support representative to file as a blocker on
your behalf. Otherwise ask that it be considered for the next
Red Hat Enterprise Linux release. **

Comment 5 Cole Robinson 2010-08-06 18:10:04 UTC
Sounds like this is basically 620456

*** This bug has been marked as a duplicate of bug 620456 ***


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