Gentoo Archives: gentoo-user

From: wabenbau@×××××.com
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Recommended pseudo-hardware for QEMU guest machine?
Date: Mon, 21 Dec 2015 17:27:47
Message-Id: 20151221182618.72a64122@hal9000.localdomain
In Reply to: Re: [gentoo-user] Recommended pseudo-hardware for QEMU guest machine? by waltdnes@waltdnes.org
1 waltdnes@××××××××.org wrote:
2
3 > On Sun, Dec 20, 2015 at 04:47:35AM +0100, wabenbau@×××××.com wrote
4 > > waltdnes@××××××××.org wrote:
5 > >
6 > > > I'm now at the configuring-the-kernel stage of the Gentoo guest
7 > > > install. I had originally expected to pull in the .config from
8 > > > the host machine, make a few tweaks, and get going. However, it
9 > > > appears that multiple video and sound and network cards are
10 > > > supported, none of which match those on the host. Which ones do
11 > > > people recommend selecting?
12 > > >
13 > >
14 > > That's what I'm using to start qemu:
15 > >
16 > > qemu-system-x86_64 -machine accel=kvm -cpu host -m 4096 -enable-kvm
17 > > -name vm-01 -net nic,model=virtio -net user,hostfwd=tcp::2022-:22
18 > > -localtime -hda /path/to/image.qcow2 -display gtk -vga vmware
19 >
20 > I can't get X to work on the guest. Text console is OK, but no X.
21 > I ticked support for cirrus, bochs, qxl, and vmware emulation in the
22 > guest kernel. I wonder if I missed something. I also emerged the
23 > corresponding X drivers. vmware was a pain because I had to rebuild
24 > mesa and other stuff to emerge the vmware video driver.
25 >
26 > File-attached are Xorg logs for failed attempts with vga=
27 > cirrus/std/vmware. QEMU refused to start when I specified -vga qxl.
28 > The vmware log looks like it started X properly, but it immediately
29 > dumped me out, and gave an all-red QEMU window. I ssh'd in from the
30 > host to set up the next card. I know that the all-red window was a
31 > text console. To reboot, I blindly typed "su -", followed by root
32 > password, followed by "halt -p", and the QEMU session halted.
33 >
34 > I use the following script to boot up Gentoo on the guest. I cycled
35 > through all 4 cards...
36 >
37 > #!/bin/bash
38 > qemu-system-i386 -enable-kvm \
39 > -cpu host -display gtk -vga cirrus \
40 > -drive file=gentoo32.img,format=raw \
41 > -drive file=linuxswap.img,format=raw \
42 > -net nic,model=virtio \
43 > -rtc base=localtime,clock=host \
44 > -net user,hostname=gentoovm,hostfwd=tcp::2022-:22 \
45 > -m 3G -monitor stdio -name "Gentoo VM" \
46 > -parallel none \
47 > ${@
48 >
49
50 I never used gentoo as guest OS, only xubuntu and OpenSuse. So I can't
51 give you tips for your gentoo guest installation.
52
53 Have you also tried it without the -monitor option?
54
55 Here some infos about my host and guest OS.
56
57 Host: gentoo, kernel 4.1.7-hardened-r1, qemu-2.5.0, x11-base/xorg-server-1.17.4, x11-drivers/xf86-video-ati-7.6.1
58
59 Guest: xubuntu 14.04.3 LTS, kernel 3.13.0-74-generic, vmware VGA emulation
60
61 If screen resolution and performance isn't that important for you then
62 you could also try to connect via vnc or spice.
63
64 Attached is my guest xorg.log.
65
66 --
67 Regards
68 wabe

Attachments

File name MIME type
Xorg.0.log.bz2 application/x-bzip

Replies