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 678374 - virt-install doesn't create storage file when using --nonsparse option
Summary: virt-install doesn't create storage file when using --nonsparse option
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: python-virtinst
Version: 6.1
Hardware: Unspecified
OS: Linux
high
high
Target Milestone: rc
: 6.1
Assignee: Cole Robinson
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-17 17:50 UTC by Daniel Yeisley
Modified: 2011-06-10 02:33 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
virt-install would fail to install the guest when the --nonsparse option was invoked. This issue has been resolved.
Clone Of:
Environment:
Last Closed: 2011-05-19 13:43:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0636 0 normal SHIPPED_LIVE python-virtinst bug fix and enhancement update 2011-05-18 17:55:48 UTC

Description Daniel Yeisley 2011-02-17 17:50:27 UTC
Description of problem:
When I use the --nonsparse flag the guest install fails with:
  "No disks found
   No usable disks have been found."

Version-Release number of selected component (if applicable):
RHEL6.1-20110210.1

# rpm -qf /usr/sbin/virt-install
python-virtinst-0.500.5-1.el6.noarch

How reproducible:
I've seen this multiple times.

Steps to Reproduce:
1. /usr/sbin/virt-install --name guest-80-17.rhts.eng.bos.redhat.com --cdrom /var/lib/libvirt/images/guest-80-17.rhts.eng.bos.redhat.com.iso --ram=4096 --vcpus=4 -s 15 --nonsparse --hvm --debug --prompt --accelerate --os-variant=virtio26 --network bridge:br0 --noreboot --vnc
2.
3.
  
Actual results:
Guest install fails.
https://beaker.engineering.redhat.com/jobs/53753

Expected results:


Additional info:
Guest install works when I remove the nonsparse flag.
https://beaker.engineering.redhat.com/jobs/53771

Comment 3 Cole Robinson 2011-03-10 18:24:54 UTC
Fixed in python-virtinst-0.500.5-2.el6

Comment 5 Daniel Yeisley 2011-03-16 16:00:23 UTC
I'm not seeing this problem any more with the RHEL6.1-20110311.3 build.
https://beaker.engineering.redhat.com/jobs/61924

Comment 6 Nan Zhang 2011-03-18 08:29:53 UTC
Verified with python-virtinst-0.500.5-2.el6.noarch, it's fixed already. Move to VERIFIED.


# virt-install -n test1 -r 512 --cdrom /var/lib/libvirt/boot/Fedora-14-i686-Live-Desktop.iso --vcpus=2 -s 5 --nonsparse --hvm --debug --prompt --accelerate --os-variant=virtio26 --network network:default --noreboot --vnc
Fri, 18 Mar 2011 16:29:02 DEBUG    Launched with command line:
/usr/sbin/virt-install -n test1 -r 512 --cdrom /var/lib/libvirt/boot/Fedora-14-i686-Live-Desktop.iso --vcpus=2 -s 5 --nonsparse --hvm --debug --prompt --accelerate --os-variant=virtio26 --network network:default --noreboot --vnc
Fri, 18 Mar 2011 16:29:02 DEBUG    Requesting libvirt URI default
Fri, 18 Mar 2011 16:29:02 DEBUG    Received libvirt URI qemu:///system
Fri, 18 Mar 2011 16:29:02 DEBUG    Requesting virt method 'hvm', hv type 'default'.
Fri, 18 Mar 2011 16:29:02 DEBUG    Received virt method 'hvm'
Fri, 18 Mar 2011 16:29:02 DEBUG    Hypervisor name is 'kvm'
Fri, 18 Mar 2011 16:29:03 DEBUG    Setting os type to 'linux' for variant 'virtio26'
Please enter the path to the file you would like to use for storage. It will have size 5.0GB. 
/var/lib/libvirt/images/test1.img
This will overwrite the existing path '/var/lib/libvirt/images/test1.img'
Do you really want to use this disk (yes or no) 
yes
Fri, 18 Mar 2011 16:29:29 DEBUG    DistroInstaller location is a local file/path: /var/lib/libvirt/boot/Fedora-14-i686-Live-Desktop.iso
Fri, 18 Mar 2011 16:29:29 DEBUG    Guest.has_install_phase: True

Starting install...
Fri, 18 Mar 2011 16:29:29 DEBUG    Generated install XML: 
<domain type='kvm'>
  <name>test1</name>
  <currentMemory>524288</currentMemory>
  <memory>524288</memory>
  <uuid>0b0a0ece-9fb7-4a96-7760-128a5b9baf3b</uuid>
  <os>
    <type arch='x86_64'>hvm</type>
    <boot dev='cdrom'/>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/><apic/><pae/>
  </features>
  <clock offset="utc"/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>destroy</on_reboot>
  <on_crash>destroy</on_crash>
  <vcpu>2</vcpu>
  <devices>
    <emulator>/usr/libexec/qemu-kvm</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='none' io='threads'/>
      <source file='/var/lib/libvirt/images/test1.img'/>
      <target dev='vda' bus='virtio'/>
    </disk>
    <disk type='file' device='cdrom'>
      <driver name='qemu' io='threads'/>
      <source file='/var/lib/libvirt/boot/Fedora-14-i686-Live-Desktop.iso'/>
      <target dev='hdc' bus='ide'/>
      <readonly/>
    </disk>
    <interface type='network'>
      <source network='default'/>
      <mac address='52:54:00:86:35:13'/>
      <model type='virtio'/>
    </interface>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1'/>
    <console type='pty'/>
    <video>
      <model type='cirrus'/>
    </video>
  </devices>
</domain>

Fri, 18 Mar 2011 16:29:29 DEBUG    Generated boot XML: 
<domain type='kvm'>
  <name>test1</name>
  <currentMemory>524288</currentMemory>
  <memory>524288</memory>
  <uuid>0b0a0ece-9fb7-4a96-7760-128a5b9baf3b</uuid>
  <os>
    <type arch='x86_64'>hvm</type>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/><apic/><pae/>
  </features>
  <clock offset="utc"/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <vcpu>2</vcpu>
  <devices>
    <emulator>/usr/libexec/qemu-kvm</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='none' io='threads'/>
      <source file='/var/lib/libvirt/images/test1.img'/>
      <target dev='vda' bus='virtio'/>
    </disk>
    <disk type='block' device='cdrom'>
      <target dev='hdc' bus='ide'/>
      <readonly/>
    </disk>
    <interface type='network'>
      <source network='default'/>
      <mac address='52:54:00:86:35:13'/>
      <model type='virtio'/>
    </interface>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1'/>
    <console type='pty'/>
    <video>
      <model type='cirrus'/>
    </video>
  </devices>
</domain>

Creating domain...                                                                                    |    0 B     00:00     
Fri, 18 Mar 2011 16:29:29 DEBUG    Started guest, connecting to console if requested
Fri, 18 Mar 2011 16:29:29 DEBUG    Launching console callback

Comment 7 zhe peng 2011-04-15 09:46:09 UTC
verified this bug with:
Linux localhost.localdomain 2.6.32-130.el6.x86_64 #1 SMP Tue Apr 5 19:58:31 EDT
2011 x86_64 x86_64 x86_64 GNU/Linux

python-virtinst-0.500.5-3.el6.noarch
libvirt-0.8.7-17.el6.x86_64

passed.

Comment 9 Michael Hideo 2011-05-16 04:55:52 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
* virt-install would fail to install the guest when the --nonsparse option was invoked. This issue has been resolved. (BZ#678374)

Comment 10 Michael Hideo 2011-05-16 21:40:31 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1 +1 @@
-* virt-install would fail to install the guest when the --nonsparse option was invoked. This issue has been resolved. (BZ#678374)+virt-install would fail to install the guest when the --nonsparse option was invoked. This issue has been resolved.

Comment 11 errata-xmlrpc 2011-05-19 13:43:18 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0636.html


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