Permalink
Browse files

arm: launch: libvirt: Force <emulator>.

This is a temporary hack, because otherwise libvirt tries to use
/usr/bin/qemu-kvm even though this is ARM.
  • Loading branch information...
1 parent 06e43a3 commit 37e1e0da5acb34c902d55cde13c58cf580304bca @rwmjones rwmjones committed Sep 8, 2013
Showing with 10 additions and 0 deletions.
  1. +10 −0 src/launch-libvirt.c
View
@@ -1001,6 +1001,16 @@ construct_libvirt_xml_devices (guestfs_h *g,
XMLERROR (-1, xmlTextWriterWriteString (xo, BAD_CAST g->hv));
XMLERROR (-1, xmlTextWriterEndElement (xo));
}
+#ifdef __arm__
+ /* Hopefully temporary hack to make ARM work (otherwise libvirt
+ * chooses to run /usr/bin/qemu-kvm).
+ */
+ else {
+ XMLERROR (-1, xmlTextWriterStartElement (xo, BAD_CAST "emulator"));
+ XMLERROR (-1, xmlTextWriterWriteString (xo, BAD_CAST QEMU));
+ XMLERROR (-1, xmlTextWriterEndElement (xo));
+ }
+#endif
/* virtio-scsi controller. */
XMLERROR (-1, xmlTextWriterStartElement (xo, BAD_CAST "controller"));

0 comments on commit 37e1e0d

Please sign in to comment.