Gentoo Archives: gentoo-user

From: William Kenworthy <billk@×××××××××.au>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] QEMU setup questions
Date: Wed, 24 Jul 2013 10:53:49
Message-Id: 51EFB225.3090905@iinet.net.au
In Reply to: [gentoo-user] QEMU setup questions by Walter Dnes
1 On 24/07/13 17:50, Walter Dnes wrote:
2 > So I emerged QEMU, which pulled in some dependancies. Things are not
3 > going well...
4 >
5 > 1) The following warning shows up in elog...
6 >
7 >> WARN: pretend
8 >> You have decided to compile your own SeaBIOS. This is not supported
9 >> by upstream unless you use their recommended toolchain (which you are
10 >> not). If you are intending to use this build with QEMU, realize you
11 >> will not receive any support if you have compiled your own SeaBIOS.
12 >> Virtual machines subtly fail based on changes in SeaBIOS.
13 >
14 > I don't see any USE flags about this.
15 >
16 >
17 > 2) I download a Gentoo install ISO, and create a 7 gig raw file sda.raw,
18 > and start qemu-kvm
19 >
20 > $ qemu-kvm -hda sda.raw -cdrom installx86.iso -boot d
21 > Could not access KVM kernel module: Permission denied
22 > failed to initialize KVM: Permission denied
23 >
24 > but... but... but... I am a member of group "kvm".
25 >
26 >
27 > 3) su to root and retry to start QEMU
28 >
29 > # qemu-kvm -hda sda.raw -cdrom installx86.iso -boot d
30 > qemu-system-x86_64: pci_add_option_rom: failed to find romfile "pxe-e1000.rom"
31 > VNC server running on `127.0.0.1:5900'
32 >
33 > So root has sufficient permission, but there's a problem with the BIOS,
34 > possibly related to item 1) above
35 >
36 > Note; I can run as regular user, either of the 2 commands...
37 > $ qemu-system-i386 -hda sda.raw -cdrom installx86.iso -boot d
38 > $ qemu-system-x86_64 -hda sda.raw -cdrom installx86.iso -boot d
39 > This doesn't run into permission problem 2), but still runs into the
40 > rom not found problem 3).
41 >
42 > 4) At least VNC is running. I emerged tigervnc and tried it
43 >
44 > $ vncviewer
45 >
46 > TigerVNC Viewer 64-bit v1.2.0 (20130723)
47 > Built on Jul 23 2013 at 21:36:16
48 > Copyright (C) 1999-2011 TigerVNC Team and many others (see README.txt)
49 > See http://www.tigervnc.org for information on TigerVNC.
50 > X_ChangeGC: BadFont (invalid Font parameter) 0x0
51 >
52 > ...and the dialog box is all blanks, presumably because of the missing
53 > fonts.
54 >
55 >
56 > I had QEMU working a few years ago, and I don't remember running into
57 > all these problems. What gives?
58 >
59
60 its working ok for me - what versions of qemu/seabios/kernel?
61
62 I have:
63 * sys-firmware/seabios
64 Latest version available: 1.7.2.1
65 "binary" USE flag set for upstream compiled binaries
66 ...
67
68 using the binary USE flag (upstream compiled)
69 * app-emulation/qemu
70 Latest version available: 1.4.2
71 ...
72
73 and kernel 3.10.1
74
75 Cant help with the perms as I am running as root on dedicated hardware
76
77
78 BillK