mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-04-25 22:54:41 +00:00
Check if qemu-bridge-helper exists and is executable
Otherwise the error is just error: Failed to create domain from test1.xml error: failed to retrieve file descriptor for interface: Transport endpoint is not connected since we don't get a sensible error after the fork.
This commit is contained in:
parent
11d571470a
commit
151ba02293
@ -295,6 +295,12 @@ static int qemuCreateInBridgePortWithHelper(virQEMUDriverConfigPtr cfg,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!virFileIsExecutable(cfg->bridgeHelperName)) {
|
||||||
|
virReportSystemError(errno, _("'%s' is not a suitable bridge helper"),
|
||||||
|
cfg->bridgeHelperName);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
cmd = virCommandNew(cfg->bridgeHelperName);
|
cmd = virCommandNew(cfg->bridgeHelperName);
|
||||||
if (flags & VIR_NETDEV_TAP_CREATE_VNET_HDR)
|
if (flags & VIR_NETDEV_TAP_CREATE_VNET_HDR)
|
||||||
virCommandAddArgFormat(cmd, "--use-vnet");
|
virCommandAddArgFormat(cmd, "--use-vnet");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user