Date: Wed, 28 Jan 2015 08:19:31 -0600 From: "William A. Mahaffey III" <wam@hiwaay.net> To: "FreeBSD Questions !!!!" <freebsd-questions@freebsd.org> Subject: Re: Is QEMU working/reliable under .... Message-ID: <54C8EFF3.6050803@hiwaay.net> In-Reply-To: <20150128071441.GA29698@slackbox.erewhon.home> References: <54C7C62A.5030605@hiwaay.net> <20150127210422.GA27921@slackbox.erewhon.home> <54C838CE.7040502@hiwaay.net> <20150128071441.GA29698@slackbox.erewhon.home>
next in thread | previous in thread | raw e-mail | index | archive | help
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 wrote: >>>> .... 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 WinXP >>>> 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 qkemu >>> crashed a lot. >>> >>> According to the website, qemu version 0.11 and up do not support kqemu >>> anymore (see http://wiki.qemu.org/KQEMU), so you don't need that anymore. >>> >>> In time (and if your processor is new enough to have “extended page tables”) 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 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 athlon >> -vga std -nographic -no-acpi -localtime, w/ qemu softlinked to >> 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 fast. > 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-built > 32-bit Wine for AMD64 available in ports. That might run them faster because > it's not a VM. > > Roland Hmmmmm .... OK, I was/am using 32-bit WinXP, maybe that's part of the problem. I eventually killed this process after 5+ hrs w/ no visible progress & tried again w/ qemu-system-i386 & the rest of the command line args, still (apparently) nogo, killed it after about 1 hr., no visible progress. I never saw *any* GUI pop up in either case. I'm a bit confused here, I thought the qemu executable needed to match the host as much as possible, that's why I tried the x86_64 qemu 1st. I think I am (partly) confused on that point because I have an older qemu (0.13.0-1.fc14) running elsewhere (FC14 64-bit boxen) w/ CentOS 5 & XP VM's which run (mostly) OK. Those installs have a plain qemu executable, as well as about 20 other specifically labeled executables (see below from 1 of the FC14 boxen). I used the plain qemu to build the 2 VM's mentioned previously. The build of qemu-devel built about 2 dozen qemu-system-* executables, does that executable need to match the host or guest OS ? Also, what FreeBSD version were/are you running qemu on ? When you say ages to install XP, is that (many?) hours ? TIA & thx .... [wam@Q6600, ~, 8:17:47am] 1188 % lltr /usr/bin/qemu* -rwxr-xr-x. 1 root root 1937400 Oct 19 2010 /usr/bin/qemu-arm* -rwxr-xr-x. 1 root root 2612872 Oct 19 2010 /usr/bin/qemu-kvm* -rwxr-xr-x. 1 root root 1724072 Oct 19 2010 /usr/bin/qemu-m68k* -rwxr-xr-x. 1 root root 1914632 Oct 19 2010 /usr/bin/qemu-system-sparc* -rwxr-xr-x. 1 root root 2522920 Oct 19 2010 /usr/bin/qemu-system-x86_64* -rwxr-xr-x. 1 root root 277824 Oct 19 2010 /usr/bin/qemu-img* -rwxr-xr-x. 1 root root 1937736 Oct 19 2010 /usr/bin/qemu-sparc64* -rwxr-xr-x. 1 root root 287264 Oct 19 2010 /usr/bin/qemu-io* -rwxr-xr-x. 1 root root 2579464 Oct 19 2010 /usr/bin/qemu-system-mips64el* -rwxr-xr-x. 1 root root 1644008 Oct 19 2010 /usr/bin/qemu-alpha* -rwxr-xr-x. 1 root root 2565672 Oct 19 2010 /usr/bin/qemu-system-mips64* -rwxr-xr-x. 1 root root 1613744 Oct 19 2010 /usr/bin/qemu-sh4eb* -rwxr-xr-x. 1 root root 1753448 Oct 19 2010 /usr/bin/qemu-system-sh4eb* -rwxr-xr-x. 1 root root 2828680 Oct 19 2010 /usr/bin/qemu-system-ppc* -rwxr-xr-x. 1 root root 2449576 Oct 19 2010 /usr/bin/qemu-ppc* -rwxr-xr-x. 1 root root 2770408 Oct 19 2010 /usr/bin/qemu-ppc64abi32* -rwxr-xr-x. 1 root root 1753448 Oct 19 2010 /usr/bin/qemu-system-sh4* -rwxr-xr-x. 1 root root 266976 Oct 19 2010 /usr/bin/qemu-nbd* -rwxr-xr-x. 1 root root 3179272 Oct 19 2010 /usr/bin/qemu-system-ppc64* -rwxr-xr-x. 1 root root 1574000 Oct 19 2010 /usr/bin/qemu-cris* -rwxr-xr-x. 1 root root 1961872 Oct 19 2010 /usr/bin/qemu-mipsel* -rwxr-xr-x. 1 root root 1938720 Oct 19 2010 /usr/bin/qemu-armeb* -rwxr-xr-x. 1 root root 2478600 Oct 19 2010 /usr/bin/qemu-system-mips* -rwxr-xr-x. 1 root root 1609640 Oct 19 2010 /usr/bin/qemu-sh4* -rwxr-xr-x. 1 root root 1783784 Oct 19 2010 /usr/bin/qemu-system-m68k* -rwxr-xr-x. 1 root root 2770240 Oct 19 2010 /usr/bin/qemu-ppc64* -rwxr-xr-x. 1 root root 1956480 Oct 19 2010 /usr/bin/qemu-x86_64* -rwxr-xr-x. 1 root root 2829000 Oct 19 2010 /usr/bin/qemu-system-ppcemb* -rwxr-xr-x. 1 root root 1739424 Oct 19 2010 /usr/bin/qemu-sparc* -rwxr-xr-x. 1 root root 2455640 Oct 19 2010 /usr/bin/qemu* -rwxr-xr-x. 1 root root 1932816 Oct 19 2010 /usr/bin/qemu-sparc32plus* -rwxr-xr-x. 1 root root 2821752 Oct 19 2010 /usr/bin/qemu-system-arm* -rwxr-xr-x. 1 root root 1963208 Oct 19 2010 /usr/bin/qemu-mips* -rwxr-xr-x. 1 root root 1919656 Oct 19 2010 /usr/bin/qemu-i386* -rwxr-xr-x. 1 root root 2474504 Oct 19 2010 /usr/bin/qemu-system-mipsel* -rwxr-xr-x. 1 root root 1665648 Oct 19 2010 /usr/bin/qemu-system-cris* [wam@Q6600, ~, 8:17:52am] 1189 % file /usr/bin/qemu /usr/bin/qemu: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, stripped [wam@Q6600, ~, 8:17:58am] 1190 % file /usr/bin/qemu-x86_64 /usr/bin/qemu-x86_64: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, stripped [wam@Q6600, ~, 8:18:02am] 1191 % file /usr/bin/qemu-i386 /usr/bin/qemu-i386: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, stripped [wam@Q6600, ~, 8:18:06am] 1192 % file /usr/bin/qemu-sparc /usr/bin/qemu-sparc: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, stripped [wam@Q6600, ~, 8:18:10am] 1193 % -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54C8EFF3.6050803>