Created
January 7, 2015 19:29
-
-
Save frederickding/8e28f1d851a8cfed00fc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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__': |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This patch works on xenserver 7.0 FYI