Skip to content
Snippets Groups Projects
Commit cf5619f0 authored by Dmitry Fleytman's avatar Dmitry Fleytman
Browse files

run.py: configurable bridge name for qemu with vhost configurations

parent 705eab2c
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
echo SCRIPT, $1
brctl addif virbr0 $1
brctl addif $OSV_BRIDGE $1
ifconfig $1 up
......@@ -74,7 +74,9 @@ def start_osv_qemu():
stty_save()
# Launch qemu
subprocess.call(["qemu-system-x86_64"] + args)
qemu_env = os.environ.copy()
qemu_env['OSV_BRIDGE'] = cmdargs.bridge
subprocess.call(["qemu-system-x86_64"] + args, env = qemu_env)
except OSError, e:
if e.errno == errno.ENOENT:
print("'qemu-system-x86_64' binary not found. Please install the qemu-system-x86 package.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment