Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jan 2015 01:16:40 +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:  <20150129001640.GA35821@slackbox.erewhon.home>
In-Reply-To: <54C945C3.3070607@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> <20150128192444.GA31295@slackbox.erewhon.home> <54C945C3.3070607@hiwaay.net>

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

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

On Wed, Jan 28, 2015 at 02:25:39PM -0600, William A. Mahaffey III wrote:
> On 01/28/15 13:24, Roland Smith wrote:
> > 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 wro=
te:
> >>>> On 01/27/15 15:04, Roland Smith wrote:
> >>>>> On Tue, Jan 27, 2015 at 11:08:58AM -0600, William A. Mahaffey III w=
rote:
> >>>>>> .... 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 W=
inXP
> >>>>>> 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 appreciat=
ed,
> >>>>>> any more info gladly provided ....
> >>>>> This version is *ancient*. I would suggest trying qemu-devel instea=
d, because
> >>>>> that provides qemu-2.2.0. Last time I tried it 0.11 with or without=
 qkemu
> >>>>> crashed a lot.
> >>>>>
> >>>>> According to the website, qemu version 0.11 and up do not support k=
qemu
> >>>>> anymore (see http://wiki.qemu.org/KQEMU), so you don't need that an=
ymore.
> >>>>>
> >>>>> In time (and if your processor is new enough to have =E2=80=9Cexten=
ded page tables=E2=80=9D) I
> >>>>> guess qemu on FreeBSD could be replaced by the bhyve hypervisor tha=
t is now in
> >>>>> 10.x and is being developed further in HEAD. Currently bhyve can lo=
ad FreeBSD,
> >>>>> OpenBSD, NetBSD and Linux guests. Support to run windoze as a guest=
 will 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 athl=
on
> >>>> -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 25=
6 -boot d
> >
> > Booting a windows HD image takes around 90 seconds on my machine. Slack=
ware
> > Linux takes around 120 seconds. Qemu isn't exactly a speed demon...
>=20
> I tried this (plus -noacpi -localtime) & got X11 errors:
>=20
> [root@kabini1, WinXP, 8:10:28am] 499 % qemu-system-i386 -cdrom=20
> ../../../ISOs/winxp.iso -hda HDD.img -m 256 -boot d -cpu athlon -vga std=
=20
> -no-acpi -localtime
>=20
> (<unknown>:20221): Gtk-WARNING **: cannot open display:

<snip>

> I have had this problem before, when I 'su' to root (usually from an=20
> rxvt terminal running csh as a regular user), the environment isn't set=
=20
> up correctly for most X11 stuff to work correctly when invoked from that=
=20
> root CLI. I have posted about this before, but it still persists. Any=20
> clue how to get this to work for me :-) ? TIA & thanks for your reply.

Don't run qemu as root. :-) It is not necessary.  As a general principle,
anything that doesn't *require* root should be run as a normal user.

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)

--5vNYLRcllDrimb99
Content-Type: application/pgp-signature

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

iQIcBAABAgAGBQJUyXvoAAoJEED21dyjijPg8mIP/iGOR3zdFeDTXAO4OVz0YTkW
o0zUl8cdKCMP991BBBxFM8utg+Q7dxjyLAt1EjFyIglwt9QirdF5vG+S4z+PImBm
RbdLo3LFoB1PyKIma0tkC9HbF2h30Rv6YwdCFoeqaFqzushBVQ9ZdG2NKxRxHsI3
vWhG6Adv1mUvqbqhRuHsSJYzwvdJ3ANaxDpSrd5AsC4ZakvNz6ZtYfV8Ta+TMmA4
Abuol0wdnOeSCHd+AgBmFwA66m4gLksAntY6y8JFh1s3RNNZvwwj6tGKQgXws6SK
wDevyGGdLNa+Z9N7zEly4XQhs5Lj+ts9aKWh0rmEyQRhtd6R58Lp2TDa6/umanIT
C0EixMYPeQDyhAF051qCtU2kXG/mFKEVkaNY00IDl+W1AvDXyXk4ogj3o31ZZLJ/
jzVuHB7sRAwmkX5DB3Ihj82tTUZXIMau9g0W323/JrNYDYKx6pP1FdRNAJOWnT4w
bxtbN5j1XOqEHqoqJyRVaBpBWSBn7cDO9xm5pub7t3TzBpab05lAKBSAAOCRbmEm
AsOf9AgX6pszIp9NFpJlsLoDkuXGuDCpcF12a6CVIhrNXTECBx1piNtmrgmTMIQ8
GWIdrYeCPNuWZnOgxViOEHzdjZa70LcryZI0bOKehM1qM+yoV2BQW3I7oyJa3n/A
vfGpb2eQR0qVTnMMzVK1
=f4Nq
-----END PGP SIGNATURE-----

--5vNYLRcllDrimb99--



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