# HG changeset patch # User stekloff@xxxxxxxxxxxxxxxxxxxxxxxxxx # Node ID ab87448f0c462e6bd009bd1d60769e1bca487eb8 # Parent f692a0a476c51e1b18e4f6060b94dc92201ee518 Fix case where no vifs are specified for HVM domain creation. The new qemu expect "-net none" for running with no nics. Xm-test currently fails sanity tests because networking isn't used. This patch just appends "-net none" to the qemu-dm command-line if no vifs are configured. Signed-off-by: Daniel Stekloff diff -r f692a0a476c5 -r ab87448f0c46 tools/python/xen/xend/image.py --- a/tools/python/xen/xend/image.py Thu Jul 13 15:33:08 2006 +0100 +++ b/tools/python/xen/xend/image.py Thu Jul 13 11:57:53 2006 -0700 @@ -313,6 +313,9 @@ class HVMImageHandler(ImageHandler): instance = sxp.child_value(info, 'pref_instance') ret.append("-instance") ret.append("%s" % instance) + if nics == 0: + ret.append("-net") + ret.append("none") return ret def configVNC(self, config):