Gentoo Archives: gentoo-user

From: Walter Dnes <waltdnes@××××××××.org>
To: gentoo-user@l.g.o
Subject: [gentoo-user] QEMU setup questions
Date: Thu, 25 Jul 2013 08:54:20
In Reply to: Re: [gentoo-user] QEMU setup questions by Kerin Millar
1 On Thu, Jul 25, 2013 at 05:16:21AM +0100, Kerin Millar wrote
2 >
3 > > 2) What "vncviewer" or "vncconnect" parameters do I use to get to the
4 > > qemu session?
5 >
6 > Assuming both server and client are run locally, connecting to either
7 > "localhost:0" or "localhost:5900" should work.
9 Thanks. That helped me to get it working.
11 I stumbled over the solution to my final problem by accident. When
12 booting off the install cd, you have 15 seconds to "hit any key", or
13 else it'll try to boot off the "hard drive". Given that I haven't
14 installed yet, it'll try to boot off the blank pseudo "hard drive", and
15 fail. Pressing any key will stop the timer. I prefer to type in...
17 gentoo net.ifnames=0
19 give myself "a predictable interface name", namely eth0. The
20 timer stops after I hit the "g", and I can take my time typing the rest
21 of the command. If you don't mind whatever ifname udev generates, you
22 can simply hit enter. The drill *FOR INSTALL ONLY* under vnc is like
23 so...
25 * open up 2 terminals side-by-each
26 * in one type the command like the following *BUT DO NOT HIT <ENTER>*
27 vncviewer localhost:2
29 * in the other terminal, type a command like so, and hit <ENTER>
30 qemu-system-i386 -vnc :2 -cpu qemu32 -m 3072 -hda sda.raw -cdrom installx86.iso -boot d
32 * *IMMEDIATELY* go over to the other terminal and hit <ENTER> to
33 activate vncviewer
35 * *AS SOON AS VNCVIEWER POPS UP* either hit <ENTER> for default install
36 parameters, or start typing your own install command.
38 * *DO NOT PANIC* when the vncviewer screen goes dark for several seconds
39 as the install checks out its environment.
41 * One more minor annoyance and workaround... the initial vncviewer
42 screen is a 720x400 xterm. The install thinks it's in a 1024x768
43 framebuffer, so you get the bottom and right edges of the output
44 clipped. As soon the penguin logo appears, you can close the xterm
45 containing the vncviewer output, and open another vncviewer with the
46 same command as the original. This new copy senses the correct
47 "screensize" and you can go on with your install.
50 I still haven't figured out why only root can run qemu-kvm. I
51 "solved" that problem with an entry in /etc/sudoers.d and it is
52 definitely faster.
54 If I specify a video card type for the guest, then the driver has to
55 be emerged on the guest; is that correct?
57 --
58 Walter Dnes <waltdnes@××××××××.org>
59 I don't run "desktop environments"; I run useful applications


Subject Author
Re: [gentoo-user] QEMU setup questions Kerin Millar <kerframil@×××××××××××.uk>