diff --git a/scripts/runqemu b/scripts/runqemu index 9af13f3360..b6bc0ba734 100755 --- a/scripts/runqemu +++ b/scripts/runqemu @@ -694,7 +694,12 @@ class BaseConfig(object): raise Exception("runqemu-ifup, runqemu-ifdown or ip not found") if not os.path.exists(lockdir): - os.mkdir(lockdir) + # There might be a race issue when multi runqemu processess are + # running at the same time. + try: + os.mkdir(lockdir) + except FileExistsError: + pass cmd = '%s link' % ip logger.info('Running %s...' % cmd)