From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46524) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gNUDf-00048X-ER for qemu-devel@nongnu.org; Thu, 15 Nov 2018 21:50:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gNUDa-0003bt-GP for qemu-devel@nongnu.org; Thu, 15 Nov 2018 21:50:55 -0500 Received: from mx1.redhat.com ([209.132.183.28]:35662) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gNUDa-0003ZR-80 for qemu-devel@nongnu.org; Thu, 15 Nov 2018 21:50:50 -0500 Date: Fri, 16 Nov 2018 10:50:43 +0800 From: Peter Xu Message-ID: <20181116025043.GB11565@xz-x1> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] Are FreeBSD guest images working? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ilya Maximets Cc: qemu-devel@nongnu.org On Thu, Nov 15, 2018 at 02:06:36PM +0300, Ilya Maximets wrote: > > Hi, the list, > > > > I am trying to boot a FreeBSD guest but failed. It hangs at the > > kernel booting phase: > > > > /boot/ker]el/kernel text=0x14ed860 data=0x132538+0x4baa68 syms=[0x8+0x159ee8+0x8 > > Booting... > > (nothing more) > > > > It's just as simple as downloading the image and boot so I can't think > > of anything strange within my procedures so far: > > > > https://wiki.qemu.org/Hosts/BSD#FreeBSD > > > > I also tried the latest image here: > > > > https://download.freebsd.org/ftp/releases/VM-IMAGES/11.2-RELEASE/amd64/Latest/FreeBSD-11.2-RELEASE-amd64.qcow2.xz > > > > but it's having the same problem as 11.0. > > > > Am downloading an fresh ISO, but before I continue I'm just curious on > > whether anyone is using these images and whether there's quick answers > > to what I have encountered. > > > > Thanks in advance, > > > > -- > > Peter Xu > > Hi, > I have one VM with FreeBSD-11.2-RELEASE-amd64.qcow2 image and it works > fine under qemu 2.12.1. But it's controlled by libvirt + virt-manager, > so it has a bit more cmdline arguments than in wiki. > > In general, those images has serial console disabled by default. Well... I never expected this. :) > > Creating the following file in VM fs: > [root@freebsd ~]# cat /boot/loader.conf > boot_multicons="YES" > boot_serial="YES" > comconsole_speed="115200" > console="comconsole,vidconsole" > > allows me to successfully boot with: > # qemu-system-x86_64 -machine accel=kvm -m 2048 \ > -cpu host -enable-kvm -nographic -smp 2 \ > -drive if=virtio,file=./FreeBSD-11.2-RELEASE-amd64.qcow2,format=qcow2 > > Best regards, Ilya Maximets. SPICE worked for me now, and I tested your serial configuration, it works as well! (though there'll be some display issue with the boot logo before the kernel starts, but it's not a big problem) Thanks! -- Peter Xu