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

Re: GRUB doesn't install



On 23/07/2020 18:47, Dennis Clarke wrote:

>> For /var/log/syslog, I don't know how to catch it. I can't boot the
>> virtual machine as GRUB did not install. I tried to mount the qcow2
>> image with libqcow-utils but it did not work. I will make a new
>> installation (3-4 hours) if I find how to catch the log.
>>
> 
> I did give a try at your above ( strange ) stuff and not much works
> for me at all. I don't know quite why but I don't see a reason to keep
> poking it with a stick either.  The installer works great for ppc64
> across a number of configs and also on real hardware. Sorry.
> 
> I did try a number of silly things however.
> 
> ppc64@styx:~$
> ppc64@styx:~$ ls
> ppc64le.qcow2  ppc64le.sh  ppc64.qcow2  readme  resources
> ppc64@styx:~$ ls resources/
> debian-10.0.0-powerpc-NETINST-1.iso  openbios-ppc-grubfix
> debian-10.0.0-ppc64-NETINST-1.iso
> ppc64@styx:~$
> ppc64@styx:~$ ls /usr/local/bin/*ppc*
> /usr/local/bin/qemu-ppc         /usr/local/bin/qemu-ppc64le
> /usr/local/bin/qemu-ppc64       /usr/local/bin/qemu-system-ppc
> /usr/local/bin/qemu-ppc64abi32  /usr/local/bin/qemu-system-ppc64
> ppc64@styx:~$
> ppc64@styx:~$
> ppc64@styx:~$
> ppc64@styx:~$ uname -a
> Linux styx 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07)
> x86_64 GNU/Linux
> ppc64@styx:~$ /usr/local/bin/qemu-system-ppc --version
> QEMU emulator version 5.0.90 (v5.1.0-rc0-66-g1e6c50ad85-dirty)
> Copyright (c) 2003-2020 Fabrice Bellard and the QEMU Project developers
> ppc64@styx:~$
> ppc64@styx:~$ /usr/local/bin/qemu-system-ppc \
>> -monitor stdio -M mac99 -k fr -machine accel=tcg \
>> -m 512 \
>> -cdrom ./resources/debian-10.0.0-powerpc-NETINST-1.iso \
>> -hda ppc64.qcow2 \
>> -virtfs
> local,id=shared_folder_dev_0,path=/home/ppc64,security_model=none,mount_tag=shared0
> \
>> -boot once=c,menu=on \
>> -net nic,macaddr=00:a2:6d:80:10:8f,model=rtl8139 \
>> -net user -net user,smb=/home/ppc64 \
>> -rtc base=localtime -name "Debian + LXDE sur iMac G3" \
>> -bios /home/ppc64/resources/openbios-ppc-grubfix
> qemu-system-ppc: Could not find '/usr/sbin/smbd', please install it
> ppc64@styx:~$
> 
> ppc64@styx:~$
> ppc64@styx:~$ /usr/local/bin/qemu-system-ppc \
>> -M mac99 -machine accel=tcg \
>> -cdrom ./resources/debian-10.0.0-powerpc-NETINST-1.iso \
>> -hda ppc64.qcow2 -boot once=c,menu=on \
>> -bios /home/ppc64/resources/openbios-ppc-grubfix \
>> -name "Debian + LXDE sur iMac G3" \
>> -serial stdio -display none -vga none
> 
>>> =============================================================
>>> OpenBIOS 1.1 [Jul 18 2020 08:00]
>>> Configuration device id QEMU version 1 machine id 1
>>> CPUs: 1
>>> Memory: 128M
>>> UUID: 00000000-0000-0000-0000-000000000000
>>> CPU type PowerPC,G4
> milliseconds isn't unique.
> Output device screen not found.
> Output device screen not found.
> Trying hd:,\\:tbxi...
> Trying hd:,\ppc\bootinfo.txt...
> Trying hd:,%BOOT...
> No valid state has been set by load or init-program
> 
> 0 >
> 
> ppc64@styx:~$
> ppc64@styx:~$ /usr/local/bin/qemu-system-ppc \
>> -M mac99 -hda ppc64.qcow2 \
>> -cdrom ./resources/debian-10.0.0-powerpc-NETINST-1.iso \
>> -boot menu=on -serial stdio -display none -vga none
> 
>>> =============================================================
>>> OpenBIOS 1.1 [Jul 7 2020 17:30]
>>> Configuration device id QEMU version 1 machine id 1
>>> CPUs: 1
>>> Memory: 128M
>>> UUID: 00000000-0000-0000-0000-000000000000
>>> CPU type PowerPC,G4
> milliseconds isn't unique.
> Output device screen not found.
> Output device screen not found.
> Trying hd:,\\:tbxi...
> Trying hd:,\ppc\bootinfo.txt...
> Trying hd:,%BOOT...
> No valid state has been set by load or init-program
> 
> 0 > qemu-system-ppc: terminating on signal 2
> ppc64@styx:~$
> 
> ppc64@styx:~$ /usr/local/bin/qemu-system-ppc \
>> -M mac99 -hda ppc64.qcow2 -boot d \
>> -cdrom ./resources/debian-10.0.0-powerpc-NETINST-1.iso \
>> -boot menu=on -serial stdio -display none -vga none
> 
>>> =============================================================
>>> OpenBIOS 1.1 [Jul 7 2020 17:30]
>>> Configuration device id QEMU version 1 machine id 1
>>> CPUs: 1
>>> Memory: 128M
>>> UUID: 00000000-0000-0000-0000-000000000000
>>> CPU type PowerPC,G4
> milliseconds isn't unique.
> Output device screen not found.
> Output device screen not found.
> Trying cd:,\\:tbxi...
>>> switching to new context:
> Output device screen not found.
> NULL ihandleNULL ihandleNULL ihandleNULL ihandleNULL ihandleNULL
> ihandleNULL ihandleNULL ihandleNULL ihandle
> Unexpected client interface exception: -2
> call-method block-size: exception -21
>>> call-method block-size failed with error ffffffdf
> call-method block-size: exception -21
>>> call-method block-size failed with error ffffffdf
> qemu-system-ppc: terminating on signal 2
> ppc64@styx:~$
> 
> 
> right ... this is going no where fast.  Sorry.

Yeah, those commmand lines are not right - certainly some of those boot options won't
work correctly outside of an x86 world. There are some good examples on the QEMU wiki
at https://wiki.qemu.org/Documentation/Platforms/PowerPC but in the meantime what you
want is probably:

$ /usr/local/bin/qemu-system-ppc \
   -M mac99 \
   -hda ppc64.qcow2 \
   -cdrom ./resources/debian-10.0.0-powerpc-NETINST-1.iso \
   -boot d \
   -nographic

for a text-based terminal install and:

$ /usr/local/bin/qemu-system-ppc \
   -M mac99 \
   -hda ppc64.qcow2 \
   -cdrom ./resources/debian-10.0.0-powerpc-NETINST-1.iso \
   -boot d

for a graphics-based install. The virtfs and netsmb parts are attempts to share
folders between the host and the guest - I think the virtfs one should work if set up
correctly, but then this shouldn't affect how grub is installed.


ATB,

Mark.


Reply to: