This patch make sure the directory for the BIOS, VGA BIOS and keymaps for qemu is specified.
From: Benjamin Poirier <poirier@google.com>
This means that it will use the one from the temporary directory install of kvm and not the one from the system's qemu (if any). Without this, kvm support in autoserv wouldn't work unless kvm was already installed on the machine.
git-svn-id: http://test.kernel.org/svn/autotest/trunk@626 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/server/kvm.py b/server/kvm.py
index 28d91b1..740f811 100644
--- a/server/kvm.py
+++ b/server/kvm.py
@@ -303,7 +303,7 @@
'-pidfile "%s" -nographic '
#~ '-serial telnet::4444,server '
'-monitor unix:"%s",server,nowait '
- '-net nic,macaddr="%s" -net tap,script="%s" ' % (
+ '-net nic,macaddr="%s" -net tap,script="%s" -L "%s"' % (
utils.sh_escape(os.path.join(
self.build_dir,
"qemu/x86_64-softmmu/qemu-system-x86_64")),
@@ -320,7 +320,10 @@
utils.sh_escape(address["mac"]),
utils.sh_escape(os.path.join(
self.support_dir,
- "qemu-ifup.sh")),))
+ "qemu-ifup.sh")),
+ utils.sh_escape(os.path.join(
+ self.build_dir,
+ "qemu/pc-bios")),))
address["is_used"]= True
return address["ip"]