Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
--- qemu-dm-wrapper.bak 2014-07-18 16:49:42.000000000 -0400
+++ qemu-dm-wrapper 2014-07-18 20:38:46.000000000 -0400
@@ -97,6 +97,11 @@
write_dm_pid(domid, os.getpid())
os.dup2(1, 2)
+
+ for i in range(len(qemu_args)):
+ if qemu_args[i].find('macaddr=') > 0:
+ qemu_args[i] = qemu_args[i].replace('rtl8139', 'e1000')
+
os.execve(qemu_dm, qemu_args, qemu_env)
if __name__ == '__main__':
@SteveClement
Copy link

SteveClement commented Dec 6, 2016

This patch works on xenserver 7.0 FYI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment