Yesterday, I needed to replace the rtl8139 with e1000 when using HVM, however, I didn’t feel the need to recompile vital parts of xapi.. :) However, I did a quick fix - a wrapper around the real qemu-dm that simply replaces the parameters :)
cd /usr/lib/xen-4.1/bin/ mv qemu-dm qemu-dm-real nano qemu-dm #Paste the script here, see below chmod 755 qemu-dm
And the actual script:
#!/bin/bash /usr/lib/xen-4.1/bin/qemu-dm-real "${@//model=rtl8139/model=e1000}"