[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: GRUB doesn't install



On 25/07/2020 10:02, Romain Dolbeau wrote:

> Le mer. 22 juil. 2020 à 18:01, John Paul Adrian Glaubitz
> <glaubitz@physik.fu-berlin.de> a écrit :
>> Use scp.
> 
> Or 'cp' to /target, and then mount /target from the VM host.
> 
> Attached is the syslog from attempting to install in a QEMU VM
> (similar to David's); GRUB fails to install for me as well. This is
> with Mark's OpenBIOS.
> 
> Self-compiler qemu 4.2.0 started with:
> 
> $QEMU/bin/qemu-system-ppc \
>         -monitor stdio \
>         -M mac99 -machine accel=tcg -m 1G \
>         -cdrom ./debian-10.0.0-powerpc-NETINST-1.iso \
>         -hda  /dev/zvol/x10drldatapool/vm-ppc \
>         -boot order=dc,menu=on \
>         -net nic,macaddr=00:a2:6d:80:10:8f,model=rtl8139 -net user \
>         -rtc base=localtime \
>         -bios openbios-ppc-grubfix \
>         -vnc :1
> 
> Hope this helps.

Thanks Romain! AFAICT the only errors related to grub are these:

Jul 25 08:52:06 grub-installer: info: Installing grub on 'dummy'
Jul 25 08:52:07 grub-installer: info: grub-install does not support --no-floppy
Jul 25 08:52:07 grub-installer: info: Running chroot /target grub-install  --force
--macppc-directory=/boot/grub
Jul 25 08:52:08 grub-installer: Installing for powerpc-ieee1275 platform.
Jul 25 08:52:15 grub-installer: No common Block found
Jul 25 08:52:15 grub-installer: grub-install: error: `nvsetenv' failed.
Jul 25 08:52:15 grub-installer: You will have to set `boot-device' variable manually.
 At the IEEE1275 prompt, type:
Jul 25 08:52:15 grub-installer:   setenv boot-device
/pci@f2000000/mac-io@c/ata-3@20000/@0:2,\\BootX
Jul 25 08:52:15 grub-installer: .
Jul 25 08:52:16 grub-installer: error: Running 'grub-install  --force
--macppc-directory=/boot/grub' failed.

That's complaining that nvsetenv fails which is because QEMU doesn't emulate
persistent NVRAM so that is to be expected (and indeed, yaboot raised an error in
exactly the same way during installation).

First thing to ask is does your newly created vm-ppc HD image boot when you change
the "-boot" parameter to "-boot c"?


ATB,

Mark.


Reply to: