mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Add a detailed message when tap device add fails
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@gentoo.org>
This commit is contained in:
parent
c0b0e8d07d
commit
efdd0ffca3
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* uml_conf.c: UML driver configuration
|
* uml_conf.c: UML driver configuration
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2009 Red Hat, Inc.
|
* Copyright (C) 2006-2010 Red Hat, Inc.
|
||||||
* Copyright (C) 2006 Daniel P. Berrange
|
* Copyright (C) 2006 Daniel P. Berrange
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
@ -146,6 +146,11 @@ umlConnectTapDevice(virDomainNetDefPtr net,
|
|||||||
umlReportError(VIR_ERR_INTERNAL_ERROR,
|
umlReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
_("Failed to add tap interface to bridge. "
|
_("Failed to add tap interface to bridge. "
|
||||||
"%s is not a bridge device"), bridge);
|
"%s is not a bridge device"), bridge);
|
||||||
|
} else if (err == ENOENT) {
|
||||||
|
virReportSystemError(err, "%s",
|
||||||
|
_("Failed to add tap interface to bridge. Your kernel "
|
||||||
|
"is missing the 'tun' module or CONFIG_TUN, or you need "
|
||||||
|
"to add the /dev/net/tun device node."));
|
||||||
} else if (template_ifname) {
|
} else if (template_ifname) {
|
||||||
virReportSystemError(err,
|
virReportSystemError(err,
|
||||||
_("Failed to add tap interface to bridge '%s'"),
|
_("Failed to add tap interface to bridge '%s'"),
|
||||||
|
Loading…
Reference in New Issue
Block a user