Bug 576702

Summary: RFE: kmod errors: Better error message when tun kernel module is not loaded
Product: [Community] Virtualization Tools Reporter: bugzillas
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedCC: berrange, crobinso, heri, jtomko, xen-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-16 15:31:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 636031    

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. ***