Bug 576702 - RFE: kmod errors: Better error message when tun kernel module is not loaded
Summary: RFE: kmod errors: Better error message when tun kernel module is not loaded
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact:
URL:
Whiteboard:
: 601118 (view as bug list)
Depends On:
Blocks: libvirtTodoDebugging
TreeView+ depends on / blocked
 
Reported: 2010-03-24 21:16 UTC by bugzillas
Modified: 2015-03-16 15:31 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-03-16 15:31:04 UTC
Embargoed:


Attachments (Terms of Use)

Description bugzillas 2010-03-24 21:16:40 UTC
Description of problem:

There should be a better error message when tun is not loaded.


Version-Release number of selected component (if applicable):

0.500.2

Steps to Reproduce:
1. Don't have tun loaded into the kernel
2. try running virt-install
3.
  
Actual results:

Starting install...
ERROR    Failed to add tap interface to bridge 'br0': No such file or directory
Domain installation may not have been
 successful.  If it was, you can restart your domain
 by running 'virsh start tomcat'; otherwise, please
 restart your installation.
ERROR    Failed to add tap interface to bridge 'br0': No such file or directory
Traceback (most recent call last):
  File "/usr/bin/virt-install", line 972, in <module>
    main()
  File "/usr/bin/virt-install", line 834, in main
    start_time, guest.start_install)
  File "/usr/bin/virt-install", line 896, in do_install
    dom = install_func(conscb, progresscb, wait=(not wait))
  File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 795, in start_install
    return self._do_install(consolecb, meter, removeOld, wait)
  File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 896, in _do_install
    self.domain = self.conn.createLinux(install_xml, 0)
  File "/usr/lib/python2.6/site-packages/libvirt.py", line 1147, in createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: Failed to add tap interface to bridge 'br0': No such file or directory

Expected results:

Tell the user to load the tun kernel module.

Comment 1 Ján Tomko 2015-03-16 15:31:04 UTC
Fixed upstream by:
commit bcc8b58be30ea66ffb9ffaee46cff29ade406897
Author:     Doug Goldstein <cardoe>
AuthorDate: 2010-08-05 17:02:52 -0600
Commit:     Eric Blake <eblake>
CommitDate: 2010-08-05 17:04:38 -0600

    qemu: improve error if tun device is missing
    
    Added a more detailed error message when adding a tap devices fails and
    the kernel is missing tun support.
    
    Signed-off-by: Doug Goldstein <cardoe>

git describe: v0.8.3-3-gbcc8b58 contains: v0.8.4~124

Comment 2 Ján Tomko 2015-03-16 15:31:38 UTC
*** Bug 601118 has been marked as a duplicate of this bug. ***


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