Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 279013 - app-emulation/kvm-88 installs bios files in /usr/share/kvm, but expects to find them at /usr/share/qemu at runtime
Summary: app-emulation/kvm-88 installs bios files in /usr/share/kvm, but expects to fi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Daniel Gryniewicz (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-25 08:14 UTC by Magnus Kessler
Modified: 2009-07-25 14:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
change SHARE_SUFFIX to /share/kvm (0001-change-default-share-suffix-to-share-kvm.patch,914 bytes, patch)
2009-07-25 08:18 UTC, Magnus Kessler
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Magnus Kessler 2009-07-25 08:14:26 UTC
KVM-88 installs its bios files in /usr/share/kvm. However, the kvm executable is still hardcoded to look for these files in /usr/share/qemu. This leads to issues with e.g. extboot.bin not being found and may also explain other performance issues int the graphics area other users have reported.


Reproducible: Always

Steps to Reproduce:
1. Start kvm with boot=on set on one of the disk files: usr/bin/kvm [...] -boot c -drive file=/var/lib/libvirt/images/kvm.img,if=ide,index=0,boot=on [...]

Actual Results:  
kvm refuses to start and complains about missing extboot.bin

Expected Results:  
kvm starts normally

As a workaround one can copy or link the files from /usr/share/kvm to /usr/share/qemu.

The following patch should be added to the qemu patchset:

diff --git a/vl.c b/vl.c
index 5949acb..cacd3ed 100644
--- a/vl.c
+++ b/vl.c
@@ -4740,9 +4740,9 @@ static char *find_datadir(const char *argv0)
 #else /* !_WIN32 */

 /* Find a likely location for support files using the location of the binary.
-   For installed binaries this will be "$bindir/../share/qemu".  When
+   For installed binaries this will be "$bindir/../share/kvm".  When
    running from the build tree this will be "$bindir/../pc-bios".  */
-#define SHARE_SUFFIX "/share/qemu"
+#define SHARE_SUFFIX "/share/kvm"
 #define BUILD_SUFFIX "/pc-bios"
 static char *find_datadir(const char *argv0)
 {
Comment 1 Magnus Kessler 2009-07-25 08:18:27 UTC
Created attachment 199081 [details, diff]
change SHARE_SUFFIX to /share/kvm
Comment 2 Daniel Gryniewicz (RETIRED) gentoo-dev 2009-07-25 14:20:22 UTC
Christmas in July.