Re: Booting CDs in Qemu

2020-08-07 Thread Jeffrey Walton
On Fri, Aug 7, 2020 at 7:54 AM Robert Nestor wrote: > > OK, I tried doing this with just the rEFInd CD and it still didn’t boot - > just get a blank screen. Since you did this by copying the rEFInd files over > to a bootable NetBSD CD (or did you copy them to an installed NetBSD disk?) > the

Re: Booting CDs in Qemu

2020-08-07 Thread Chavdar Ivanov
BTW I did another test on that refind.iso fine - under VirtualBox 6.1.12. It works just fine here. The guest was an earlier -current system, already booting in EFI mode (pivoting to a ZFS root, not updated very recently). I was able to boot from the CD, then install rEFInd on the first system disk

Re: Booting CDs in Qemu

2020-08-07 Thread Robert Nestor
If you’re saying you think the rEFInd CD is expecting to find Apple HW that doesn’t explain why it boots on my Intel PC. I haven’t tried booting it on a Mac. If you’re saying that the CD is incompatible with qemu because qemu is expecting to see or be emulating Mac HW that doesn’t seem to be th

Re: Booting CDs in Qemu

2020-08-07 Thread Chavdar Ivanov
On Fri, 7 Aug 2020 at 18:34, Robert Nestor wrote: > > If you’re saying you think the rEFInd CD is expecting to find Apple HW that > doesn’t explain why it boots on my Intel PC. I haven’t tried booting it on a > Mac. > > If you’re saying that the CD is incompatible with qemu because qemu is > ex

Re: Booting CDs in Qemu

2020-08-07 Thread Chavdar Ivanov
On Fri, 7 Aug 2020 at 14:21, Robert Nestor wrote: > > Thanks again! Your patience and suggestions have helped a lot and (I think) > I have a much better understanding of the whole process now. > > As Martin wrote, it appears to be an issue or limitation in qemu with UEFI > booting CDs. Probabl

Re: Booting CDs in Qemu

2020-08-07 Thread Robert Nestor
Thanks again! Your patience and suggestions have helped a lot and (I think) I have a much better understanding of the whole process now. As Martin wrote, it appears to be an issue or limitation in qemu with UEFI booting CDs. Probably that the OVMF code is very specific in where it looks for t

Re: Booting CDs in Qemu

2020-08-07 Thread Robert Nestor
Yes, that’s what I’m now suspecting. But when I started I didn’t know enough about qemu and the CD booting process with UEFI to know if it was my error or a bug someplace. Plus my system isn’t running 9.99.69 with current packages, so it could be that I’m missing something that’s already been

Re: Booting CDs in Qemu

2020-08-07 Thread Martin Husemann
On Fri, Aug 07, 2020 at 06:54:08AM -0500, Robert Nestor wrote: > OK, I tried doing this with just the rEFInd CD and it still didn't boot - > just get a blank screen. Since you did this by copying the rEFInd files over > to a bootable NetBSD CD (or did you copy them to an installed NetBSD disk?)

Re: Booting CDs in Qemu

2020-08-07 Thread Chavdar Ivanov
On Fri, 7 Aug 2020 at 12:54, Robert Nestor wrote: > > OK, I tried doing this with just the rEFInd CD and it still didn’t boot - > just get a blank screen. Since you did this by copying the rEFInd files over > to a bootable NetBSD CD (or did you copy them to an installed NetBSD disk?) > the tw

Re: Booting CDs in Qemu

2020-08-07 Thread Robert Nestor
OK, I tried doing this with just the rEFInd CD and it still didn’t boot - just get a blank screen. Since you did this by copying the rEFInd files over to a bootable NetBSD CD (or did you copy them to an installed NetBSD disk?) the two CD aren’t configured the same way. Neither CD has an MSDOS

Re: Booting CDs in Qemu

2020-08-07 Thread Chavdar Ivanov
On Fri, 7 Aug 2020 at 02:35, Robert Nestor wrote: > > OK, thanks! I’m not sure I fully understand what you mean by “moved the > relevant file to the top”. Do you mean you moved the \EFI\boot\bootx64.efi > file to \EFI\bootx64.efi? I wrote this too late in the night. I mean I got into the EFI

Re: Booting CDs in Qemu

2020-08-06 Thread Robert Nestor
OK, thanks! I’m not sure I fully understand what you mean by “moved the relevant file to the top”. Do you mean you moved the \EFI\boot\bootx64.efi file to \EFI\bootx64.efi? There was an old reference I found in my search that seemed to imply this was a solution, but then I don’t see how th

Re: Booting CDs in Qemu

2020-08-06 Thread Robert Nestor
Just dawned on me, I’m betting the NetBSD CD is configured to boot either via BIOS or UEFI and Qemu is probably trying BIOS first since that’s its default. -bob On Aug 6, 2020, at 6:20 PM, Chavdar Ivanov wrote: > With: > > > /usr/pkg/bin/qemu-system-x86_64 \ >-device qemu-xhci \ >

Re: Booting CDs in Qemu

2020-08-06 Thread Chavdar Ivanov
On Fri, 7 Aug 2020 at 01:11, Chavdar Ivanov wrote: > > On Fri, 7 Aug 2020 at 01:05, Robert Nestor wrote: > > > > Just dawned on me, I’m betting the NetBSD CD is configured to boot either > > via BIOS or UEFI and Qemu is probably trying BIOS first since that’s its > > default. > > No, it definit

Re: Booting CDs in Qemu

2020-08-06 Thread Chavdar Ivanov
On Fri, 7 Aug 2020 at 01:05, Robert Nestor wrote: > > Just dawned on me, I’m betting the NetBSD CD is configured to boot either via > BIOS or UEFI and Qemu is probably trying BIOS first since that’s its default. No, it definitely says that it is booting in EFI mode. if you interrupt it and drop

Re: Booting CDs in Qemu

2020-08-06 Thread Robert Nestor
This helps a bit but still not quite there. Adding the “-device qemu-xhci -device usb-tablet -machine q35” gets me to the BIOS menu screen, but even after setting the boot device to the CDROM it still doesn’t boot up to the rEFInd screen. Also adding “-accel mvmm” didn’t hurt but didn’t get me

Re: Booting CDs in Qemu

2020-08-06 Thread Chavdar Ivanov
With: /usr/pkg/bin/qemu-system-x86_64 \ -device qemu-xhci \ -device usb-tablet \ -machine q35 \ -bios /usr/pkg/share/ovmf/OVMFX64.fd \ -m 4096 \ -k en-gb \ -smp 2 \ -accel nvmm \ -vnc :1 \ -drive format=raw,file=/dev/

Booting CDs in Qemu

2020-08-06 Thread Robert Nestor
Something simple I must be missing here. I downloaded the CD image of rEFInd from: http://sourceforge.net/projects/refind/files/0.12.0/refind-cd-0.12.0.zip/download Burned it to a CD and tried booting that CD on my PC. It doesn’t boot using BIOS, but it does boot using UEFI. So I kno