* [Qemu-devel] Are FreeBSD guest images working?
@ 2018-11-15 8:58 Peter Xu
2018-11-15 10:05 ` Philippe Mathieu-Daudé
0 siblings, 1 reply; 11+ messages in thread
From: Peter Xu @ 2018-11-15 8:58 UTC (permalink / raw)
To: QEMU Devel Mailing List; +Cc: Markus Armbruster, Peter Maydell
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
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] Are FreeBSD guest images working?
2018-11-15 8:58 Peter Xu
@ 2018-11-15 10:05 ` Philippe Mathieu-Daudé
2018-11-16 2:53 ` Peter Xu
0 siblings, 1 reply; 11+ messages in thread
From: Philippe Mathieu-Daudé @ 2018-11-15 10:05 UTC (permalink / raw)
To: Peter Xu, QEMU Devel Mailing List; +Cc: Peter Maydell, Markus Armbruster
On 15/11/18 9:58, Peter Xu 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,
I use 'make vm-build-freebsd' which works, but the image comes
pre-installed.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Qemu-devel] Are FreeBSD guest images working?
[not found] <CGME20181115110637eucas1p29916ac0e321b6379d44270b87257a0b2@eucas1p2.samsung.com>
@ 2018-11-15 11:06 ` Ilya Maximets
2018-11-16 2:50 ` Peter Xu
0 siblings, 1 reply; 11+ messages in thread
From: Ilya Maximets @ 2018-11-15 11:06 UTC (permalink / raw)
To: peterx; +Cc: qemu-devel
> 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.
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.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] Are FreeBSD guest images working?
2018-11-15 11:06 ` [Qemu-devel] Are FreeBSD guest images working? Ilya Maximets
@ 2018-11-16 2:50 ` Peter Xu
0 siblings, 0 replies; 11+ messages in thread
From: Peter Xu @ 2018-11-16 2:50 UTC (permalink / raw)
To: Ilya Maximets; +Cc: qemu-devel
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
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] Are FreeBSD guest images working?
2018-11-15 10:05 ` Philippe Mathieu-Daudé
@ 2018-11-16 2:53 ` Peter Xu
2018-11-16 3:24 ` Warner Losh
0 siblings, 1 reply; 11+ messages in thread
From: Peter Xu @ 2018-11-16 2:53 UTC (permalink / raw)
To: Philippe Mathieu-Daudé
Cc: QEMU Devel Mailing List, Peter Maydell, Markus Armbruster
On Thu, Nov 15, 2018 at 11:05:33AM +0100, Philippe Mathieu-Daudé wrote:
> On 15/11/18 9:58, Peter Xu 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,
>
> I use 'make vm-build-freebsd' which works, but the image comes
> pre-installed.
It's because I'm always with no-gui mode and FreeBSD images has no
serial enabled by default. I was possibly spoiled by the nice
virt-builder before with consoles setup already for all Linux guest
images. Thanks for answering!
Regards,
--
Peter Xu
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] Are FreeBSD guest images working?
2018-11-16 2:53 ` Peter Xu
@ 2018-11-16 3:24 ` Warner Losh
2018-11-16 5:01 ` Peter Xu
0 siblings, 1 reply; 11+ messages in thread
From: Warner Losh @ 2018-11-16 3:24 UTC (permalink / raw)
To: peterx; +Cc: philmd, Peter Maydell, QEMU Developers, armbru
On Thu, Nov 15, 2018 at 7:54 PM Peter Xu <peterx@redhat.com> wrote:
> On Thu, Nov 15, 2018 at 11:05:33AM +0100, Philippe Mathieu-Daudé wrote:
> > On 15/11/18 9:58, Peter Xu 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,
> >
> > I use 'make vm-build-freebsd' which works, but the image comes
> > pre-installed.
>
> It's because I'm always with no-gui mode and FreeBSD images has no
> serial enabled by default. I was possibly spoiled by the nice
> virt-builder before with consoles setup already for all Linux guest
> images. Thanks for answering!
>
I'm coming to the game late...
I run FreeBSD in qemu all the time, but I build images from source to test
the boot loader and it's all serial and my test scripts are tuned to that.
I rarely use the pre-built images, however.
If there's ways that we can build images that work better than we're doing
right now to make the experience better, like making sure we enable the
dual console support for them... We're late in our release cycle, but if
what we need to change is what I think we need to change, we still have
time for it.
In the mean time I'll read through wiki and see if there's anything
obviously wrong...
Warner
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] Are FreeBSD guest images working?
2018-11-16 3:24 ` Warner Losh
@ 2018-11-16 5:01 ` Peter Xu
2018-11-16 9:47 ` Peter Maydell
2018-11-16 10:45 ` Andrea Bolognani
0 siblings, 2 replies; 11+ messages in thread
From: Peter Xu @ 2018-11-16 5:01 UTC (permalink / raw)
To: Warner Losh; +Cc: philmd, Peter Maydell, QEMU Developers, armbru, Ilya Maximets
On Thu, Nov 15, 2018 at 08:24:23PM -0700, Warner Losh wrote:
> On Thu, Nov 15, 2018 at 7:54 PM Peter Xu <peterx@redhat.com> wrote:
>
> > On Thu, Nov 15, 2018 at 11:05:33AM +0100, Philippe Mathieu-Daudé wrote:
> > > On 15/11/18 9:58, Peter Xu 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,
> > >
> > > I use 'make vm-build-freebsd' which works, but the image comes
> > > pre-installed.
> >
> > It's because I'm always with no-gui mode and FreeBSD images has no
> > serial enabled by default. I was possibly spoiled by the nice
> > virt-builder before with consoles setup already for all Linux guest
> > images. Thanks for answering!
> >
>
> I'm coming to the game late...
>
> I run FreeBSD in qemu all the time, but I build images from source to test
> the boot loader and it's all serial and my test scripts are tuned to that.
> I rarely use the pre-built images, however.
>
> If there's ways that we can build images that work better than we're doing
> right now to make the experience better, like making sure we enable the
> dual console support for them... We're late in our release cycle, but if
> what we need to change is what I think we need to change, we still have
> time for it.
>
> In the mean time I'll read through wiki and see if there's anything
> obviously wrong...
I would guess there aren't many people like me to prefer booting a VM
using console, though I agree that it'll be nice if we put something
into the prebuilt images like what's suggested by Ilya (and so far I
don't see anything bad with that):
[root@freebsd ~]# cat /boot/loader.conf
boot_multicons="YES"
boot_serial="YES"
comconsole_speed="115200"
console="comconsole,vidconsole"
Anyway, thanks for your work on either the wiki or the images, they
are really helpful to people like me.
Regards,
--
Peter Xu
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] Are FreeBSD guest images working?
2018-11-16 5:01 ` Peter Xu
@ 2018-11-16 9:47 ` Peter Maydell
2018-11-16 12:30 ` Gerd Hoffmann
2018-11-16 10:45 ` Andrea Bolognani
1 sibling, 1 reply; 11+ messages in thread
From: Peter Maydell @ 2018-11-16 9:47 UTC (permalink / raw)
To: Peter Xu
Cc: Warner Losh, Philippe Mathieu-Daudé, QEMU Developers,
Markus Armbruster, Ilya Maximets
On 16 November 2018 at 05:01, Peter Xu <peterx@redhat.com> wrote:
> I would guess there aren't many people like me to prefer booting a VM
> using console, though I agree that it'll be nice if we put something
> into the prebuilt images like what's suggested by Ilya (and so far I
> don't see anything bad with that):
As it happens I would have preferred the instructions on
the QEMU wiki to work with a pure serial console but was unable
to get that working so defaulted to graphics. (I didn't try very
hard: x86 in general is much worse for getting serial boot
working than other architectures, partly because of the BIOS.)
thanks
-- PMM
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] Are FreeBSD guest images working?
2018-11-16 5:01 ` Peter Xu
2018-11-16 9:47 ` Peter Maydell
@ 2018-11-16 10:45 ` Andrea Bolognani
1 sibling, 0 replies; 11+ messages in thread
From: Andrea Bolognani @ 2018-11-16 10:45 UTC (permalink / raw)
To: Peter Xu, Warner Losh
Cc: Ilya Maximets, Peter Maydell, philmd, QEMU Developers, armbru
On Fri, 2018-11-16 at 13:01 +0800, Peter Xu wrote:
> On Thu, Nov 15, 2018 at 08:24:23PM -0700, Warner Losh wrote:
> > I'm coming to the game late...
> >
> > I run FreeBSD in qemu all the time, but I build images from source to test
> > the boot loader and it's all serial and my test scripts are tuned to that.
> > I rarely use the pre-built images, however.
> >
> > If there's ways that we can build images that work better than we're doing
> > right now to make the experience better, like making sure we enable the
> > dual console support for them... We're late in our release cycle, but if
> > what we need to change is what I think we need to change, we still have
> > time for it.
> >
> > In the mean time I'll read through wiki and see if there's anything
> > obviously wrong...
>
> I would guess there aren't many people like me to prefer booting a VM
> using console, though I agree that it'll be nice if we put something
> into the prebuilt images like what's suggested by Ilya (and so far I
> don't see anything bad with that):
>
> [root@freebsd ~]# cat /boot/loader.conf
> boot_multicons="YES"
> boot_serial="YES"
> comconsole_speed="115200"
> console="comconsole,vidconsole"
>
> Anyway, thanks for your work on either the wiki or the images, they
> are really helpful to people like me.
We use the official qcow2 images for FreeBSD for libvirt/virt-tools
CI[1] and not having serial console/ssh access by default is a bit
annoying, as it requires the administrator/developer to log in using
the graphical console, configure the guest OS according to [2], run
an Ansible playbook which, among other things, will enable serial
console access[3], and finally remove the graphical console.
If official qcow2 images could have serial console access turned on
by default, that would make the process a lot more convenient for us.
Just another data point :)
[1] https://ci.centos.org/view/libvirt/
[2] https://github.com/libvirt/libvirt-jenkins-ci/blob/master/guests/README.markdown#freebsd
[3] https://github.com/libvirt/libvirt-jenkins-ci/blob/master/guests/playbooks/update/tasks/bootloader.yml#L41-L51
--
Andrea Bolognani / Red Hat / Virtualization
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] Are FreeBSD guest images working?
2018-11-16 9:47 ` Peter Maydell
@ 2018-11-16 12:30 ` Gerd Hoffmann
2018-11-16 14:25 ` Warner Losh
0 siblings, 1 reply; 11+ messages in thread
From: Gerd Hoffmann @ 2018-11-16 12:30 UTC (permalink / raw)
To: Peter Maydell
Cc: Peter Xu, Ilya Maximets, Philippe Mathieu-Daudé,
QEMU Developers, Warner Losh, Markus Armbruster
On Fri, Nov 16, 2018 at 09:47:48AM +0000, Peter Maydell wrote:
> On 16 November 2018 at 05:01, Peter Xu <peterx@redhat.com> wrote:
> > I would guess there aren't many people like me to prefer booting a VM
> > using console, though I agree that it'll be nice if we put something
> > into the prebuilt images like what's suggested by Ilya (and so far I
> > don't see anything bad with that):
>
> As it happens I would have preferred the instructions on
> the QEMU wiki to work with a pure serial console but was unable
> to get that working so defaulted to graphics. (I didn't try very
> hard: x86 in general is much worse for getting serial boot
> working than other architectures, partly because of the BIOS.)
qemu-system-x86_64 -machine graphics=off should work reasonable well
these days.
cheers,
Gerd
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] Are FreeBSD guest images working?
2018-11-16 12:30 ` Gerd Hoffmann
@ 2018-11-16 14:25 ` Warner Losh
0 siblings, 0 replies; 11+ messages in thread
From: Warner Losh @ 2018-11-16 14:25 UTC (permalink / raw)
To: Gerd Hoffmann
Cc: Peter Maydell, Peter Xu, Ilya Maximets,
Philippe Mathieu-Daudé, QEMU Developers, Markus Armbruster
On Fri, Nov 16, 2018, 5:30 AM Gerd Hoffmann <kraxel@redhat.com wrote:
> On Fri, Nov 16, 2018 at 09:47:48AM +0000, Peter Maydell wrote:
> > On 16 November 2018 at 05:01, Peter Xu <peterx@redhat.com> wrote:
> > > I would guess there aren't many people like me to prefer booting a VM
> > > using console, though I agree that it'll be nice if we put something
> > > into the prebuilt images like what's suggested by Ilya (and so far I
> > > don't see anything bad with that):
> >
> > As it happens I would have preferred the instructions on
> > the QEMU wiki to work with a pure serial console but was unable
> > to get that working so defaulted to graphics. (I didn't try very
> > hard: x86 in general is much worse for getting serial boot
> > working than other architectures, partly because of the BIOS.)
>
> qemu-system-x86_64 -machine graphics=off should work reasonable well
> these days.
>
That's what I use to test the boot blocks / boot loader :)
Warner
>
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2018-11-16 14:25 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CGME20181115110637eucas1p29916ac0e321b6379d44270b87257a0b2@eucas1p2.samsung.com>
2018-11-15 11:06 ` [Qemu-devel] Are FreeBSD guest images working? Ilya Maximets
2018-11-16 2:50 ` Peter Xu
2018-11-15 8:58 Peter Xu
2018-11-15 10:05 ` Philippe Mathieu-Daudé
2018-11-16 2:53 ` Peter Xu
2018-11-16 3:24 ` Warner Losh
2018-11-16 5:01 ` Peter Xu
2018-11-16 9:47 ` Peter Maydell
2018-11-16 12:30 ` Gerd Hoffmann
2018-11-16 14:25 ` Warner Losh
2018-11-16 10:45 ` Andrea Bolognani
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).