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 672987 - virt-install cannot boot from floppy
Summary: virt-install cannot boot from floppy
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: python-virtinst
Version: 6.0
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Cole Robinson
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-26 22:46 UTC by Jeff Bastian
Modified: 2011-06-10 02:35 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
An error would occur and the installation would stop when instructing virt-install to build a virtual machine from a boot floppy by specifying device=floppy. This fix ensures that device=floppy is working appropriately.
Clone Of:
Environment:
Last Closed: 2011-05-19 13:43:02 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 Jeff Bastian 2011-01-26 22:46:40 UTC
Description of problem:
I just tried to build a virtual machine installing from a boot floppy but virt-install crashed with this error:
libvirtError: internal error unknown boot device 'floppy'

The full backtrace is below.

This patch fixed the problem for me:
    http://hg.fedorahosted.org/hg/python-virtinst/rev/4d0ea2274ffd

Version-Release number of selected component (if applicable):
python-virtinst-0.500.3-7.el6.noarch

How reproducible:
every time

Steps to Reproduce:
1. virt-install -n myvm -r 512 --vcpus=1 \
        --os-type=other --os-variant=msdos \
        --network bridge=br0 --vnc --noautoconsole \
        --import \
        --disk path=/tmp/boot.img,device=floppy \
        --disk path=/var/lib/libvirt/images/myvm.img,size=4
  
Actual results:
Starting install...
ERROR    internal error unknown boot device 'floppy'
...
libvirtError: internal error unknown boot device 'floppy'

Expected results:
new virtual machine boots from floppy

Additional info:
Starting install...
ERROR    internal error unknown boot device 'floppy'
Domain installation does not appear to have been
 successful.  If it was, you can restart your domain
 by running 'virsh start myvm'; otherwise, please
 restart your installation.
ERROR    internal error unknown boot device 'floppy'
Traceback (most recent call last):
  File "/usr/sbin/virt-install", line 1054, in <module>
    main()
  File "/usr/sbin/virt-install", line 936, in main
    start_time, guest.start_install)
  File "/usr/sbin/virt-install", line 978, in do_install
    dom = install_func(conscb, progresscb, wait=(not wait))
  File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 973, in start_install
    return self._do_install(consolecb, meter, removeOld, wait)
  File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 1038, in _do_install
    "install")
  File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 1022, in _create_guest
    self.domain = self.conn.defineXML(final_xml)
  File "/usr/lib64/python2.6/site-packages/libvirt.py", line 1292, in defineXML
    if ret is None:raise libvirtError('virDomainDefineXML() failed', conn=self)
libvirtError: internal error unknown boot device 'floppy'

Comment 2 Cole Robinson 2011-02-03 14:55:36 UTC
This should be fixed in the currently built version.

Comment 4 Nan Zhang 2011-03-21 08:42:15 UTC
Verified with python-virtinst-0.500.5-2.el6.noarch, it's fixed already. Move to
VERIFIED.


# virt-install -n myvm -r 512 --vcpus=1 --os-type=other --os-variant=msdos --vnc --import --disk path=/var/lib/libvirt/boot/msdos.img,device=floppy --disk path=/var/lib/libvirt/images/myvm.img,size=4 --boot=fd

Comment 5 zhe peng 2011-04-19 06:47:26 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 7 Michael Hideo 2011-05-16 03:08:29 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:
* An error would occur and the installation would stop when instructing virt-install to build a virtual machine from a boot floppy by specifying device=floppy. This fix ensures that device=floppy is working appropriately.  (BZ#672987)

Comment 8 Michael Hideo 2011-05-16 21:41:22 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 @@
-* An error would occur and the installation would stop when instructing virt-install to build a virtual machine from a boot floppy by specifying device=floppy. This fix ensures that device=floppy is working appropriately.  (BZ#672987)+An error would occur and the installation would stop when instructing virt-install to build a virtual machine from a boot floppy by specifying device=floppy. This fix ensures that device=floppy is working appropriately.

Comment 9 errata-xmlrpc 2011-05-19 13:43:02 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.