Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jan 2015 20:24:44 +0100
From:      Roland Smith <rsmith@xs4all.nl>
To:        "William A. Mahaffey III" <wam@hiwaay.net>
Cc:        FreeBSD Questions !!!! <freebsd-questions@freebsd.org>
Subject:   Re: Is QEMU working/reliable under ....
Message-ID:  <20150128192444.GA31295@slackbox.erewhon.home>
In-Reply-To: <54C8EFF3.6050803@hiwaay.net>
References:  <54C7C62A.5030605@hiwaay.net> <20150127210422.GA27921@slackbox.erewhon.home> <54C838CE.7040502@hiwaay.net> <20150128071441.GA29698@slackbox.erewhon.home> <54C8EFF3.6050803@hiwaay.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--vtzGhvizbBRQ85DL
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Jan 28, 2015 at 08:19:31AM -0600, William A. Mahaffey III wrote:
> On 01/28/15 01:14, Roland Smith wrote:
> > On Tue, Jan 27, 2015 at 07:18:06PM -0600, William A. Mahaffey III wrote:
> >> On 01/27/15 15:04, Roland Smith wrote:
> >>> On Tue, Jan 27, 2015 at 11:08:58AM -0600, William A. Mahaffey III wro=
te:
> >>>> .... FreeBSD 9.3-RELEASE-p5, qemu-0.11.1_18, kqemu-kmod-1.3.0.p11_12=
 ? I
> >>>> have tried w/ kqemu loaded & unloaded (recommended online), w/
> >>>> -nographic, w/ -vga std, etc. No love. All I want to do is run a Win=
XP
> >>>> 32bit VM &/or a 64-bit Win7 VM from my desktop (xfce-4.10_7, xorg-7.=
7_1,
> >>>> xf86-video-vesa-2.3.3_5) :-/ .... Several online sites imply that it
> >>>> works OK, 1 specifically w/ FreeBSD 9 no less. Any clues appreciated,
> >>>> any more info gladly provided ....
> >>> This version is *ancient*. I would suggest trying qemu-devel instead,=
 because
> >>> that provides qemu-2.2.0. Last time I tried it 0.11 with or without q=
kemu
> >>> crashed a lot.
> >>>
> >>> According to the website, qemu version 0.11 and up do not support kqe=
mu
> >>> anymore (see http://wiki.qemu.org/KQEMU), so you don't need that anym=
ore.
> >>>
> >>> In time (and if your processor is new enough to have =E2=80=9Cextende=
d page tables=E2=80=9D) I
> >>> guess qemu on FreeBSD could be replaced by the bhyve hypervisor that =
is now in
> >>> 10.x and is being developed further in HEAD. Currently bhyve can load=
 FreeBSD,
> >>> OpenBSD, NetBSD and Linux guests. Support to run windoze as a guest w=
ill come
> >>> in the future.
> >>>
> >>> Roland
> >> OK, I have qemu-devel compiled & installed, kqemu unloaded from the
> >> kernel, & (hopefully) a build of a VM underway, command-line: qemu
> >> -cdrom ../../../ISOs/winxp.iso -hda HDD.img -m 256 -boot d -cpu athlon
> >> -vga std  -nographic -no-acpi -localtime, w/ qemu softlinked to

If you specify -nographic you won't see *anything*. How are you going to
interact with the windows installer that way? :-)

Try:

    qemu-system-i386 -cdrom ../../../ISOs/winxp.iso -hda HDD.img -m 256 -bo=
ot d

Booting a windows HD image takes around 90 seconds on my machine. Slackware
Linux takes around 120 seconds. Qemu isn't exactly a speed demon...

> >> qemu-system-x86_64 in /usr/local/bin. How long is this expected to take
> >> :-) ? TIA & thx for everything so far ....
> > If you are using a 64-bit build of XP the GUI should come up pretty fas=
t.
> > Installing XP will seem to take ages. :-) Trying to run a 32-bit XP on a
> > 64-bit emulator won't work at all, IIRC. I think it won't even boot.
> >
> > Depending on which windows programs you need to run, there is a pre-bui=
lt
> > 32-bit Wine for AMD64 available in ports. That might run them faster be=
cause
> > it's not a VM.
> >
> > Roland
>=20
> Hmmmmm .... OK, I was/am using 32-bit WinXP, maybe that's part of the=20
> problem. I eventually killed this process after 5+ hrs w/ no visible=20
> progress & tried again w/ qemu-system-i386 & the rest of the command=20
> line args, still (apparently) nogo, killed it after about 1 hr., no=20
> visible progress. I never saw *any* GUI pop up in either case. I'm a bit=
=20
> confused here, I thought the qemu executable needed to match the host as=
=20
> much as possible, that's why I tried the x86_64 qemu 1st.

It should match the *guest*. The postfix after qemu indicates which
architecture it is emulating.

If you only need an emulator for i386 and x86-64, enable te X86_TARGETS opt=
ions.
That will skip all the other architectures.


Roland
--=20
R.F.Smith                                   http://rsmith.home.xs4all.nl/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 5753 3324 1661 B0FE 8D93  FCED 40F6 D5DC A38A 33E0 (keyID: A38A33E0)

--vtzGhvizbBRQ85DL
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAABAgAGBQJUyTd8AAoJEED21dyjijPgxM8P/iwIbHCtFdSrpd0iArBjXif3
Ll3Y6QhxkTS0lWCJLyTUmSTGSZ/3uxGXKt/UtNu+RMJ3XvsQzSpEhjzYSE0q0pKT
hSNXo7SOWbHOt3cdZzCk28trQjElqS0wZI0BNulqeFGyxKhXnebcrK9KTJLnM50j
8R0304mvH8tHMGzZQV4lUxTIJEWc0sV720CqxYwC4KrOKcAP4/xHy8tMEgSjoWb5
lskHRXbGYKDDPELxhkO61IQpAA//ubalG5+0g9fy9TmxFc0plY+LjaTUPMjo9Us8
iA2D9+yAXhFf/CSNVTm0/+LxUfqfNs2zXg2tt1N/fki93SMPyw4+WrJVO9mu7+Sn
7IwFgBGld1Z6CsODF8JYokSIK0QyG6cNl9hhLeb714hbpVstY9Op+780nrRNQSSj
qwAUyOLKwXgHzTpR+JM59nt8XnlaNi4hJ/gj560nQW3LRn5kiY1H5RDzBAyVgxYS
+nrq2oowtTBwB6HVCZb1dTdepQ3Crrk38ysmgvg60sjuhGqXDebKzle04UsAC1Ol
Z/FnGm8BgoeKENUJ6FKDH2Wr02GGN6W2jhiKXwUJPJZJsN4keM5IHBi2hPxC8JOT
xemKfFVfhQ6Nd3GAr/+3JmltXkukagOs99zL6kAlIvz23vbgI40t0GJq3qvYXc67
T9hCDWs1qWvyWmZqpI/I
=Y8k0
-----END PGP SIGNATURE-----

--vtzGhvizbBRQ85DL--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150128192444.GA31295>