Joey Lee changed bug 1219180
What Removed Added
Flags   needinfo?, SHIP_STOPPER?

Comment # 19 on bug 1219180 from Joey Lee
I am trying to install a aarch64 vm with qemu graphics window but it still
failed.

I can use the following command with root account to launch a openSUSE-MicroOS
aarch64 installation process. The installation direct runs on serial console
mode:

qemu-system-aarch64 \
-m 4096 -cpu cortex-a57 -smp 4 -M virt \
-drive
if=pflash,format=raw,readonly,file=/usr/share/qemu/aavmf-aarch64-code.bin \
-drive
if=pflash,format=raw,file=/home/joeyli/qemu-vm/openSUSE-MicroOS-aarch64-vars-store.bin
\
-serial mon:stdio \
-net nic,model=virtio -net nic,model=virtio -net
bridge,br=br0,helper=/usr/libexec/qemu-bridge-helper \
-drive
if=none,file=/home/joeyli/iso/openSUSE-MicroOS-DVD-aarch64-Current.iso,id=hd0
-device virtio-blk-device,drive=hd0  \
-drive
if=none,file=/home/joeyli/qemu-vm/openSUSE-MicroOS-aarch64-efi.qcow2,id=hd1 
-device virtio-blk-device,drive=hd1 -vnc :93

I have tried to remove "-vnc :93" and "-serial mon:stdio" qemu parameter and
hope to launch the installation process in the qemu graphics window. The qemu
graphics window is created, but I only got a QEMU window with (qemu) promopt.
My command is:

qemu-system-aarch64 \
-m 4096 -cpu cortex-a57 -smp 4 -M virt \
-drive
if=pflash,format=raw,readonly,file=/usr/share/qemu/aavmf-aarch64-code.bin \
-drive
if=pflash,format=raw,file=/home/joeyli/qemu-vm/openSUSE-MicroOS-aarch64-vars-store.bin
\
-net nic,model=virtio -net nic,model=virtio -net
bridge,br=br0,helper=/usr/libexec/qemu-bridge-helper \
-drive
if=none,file=/home/joeyli/iso/openSUSE-MicroOS-DVD-aarch64-Current.iso,id=hd0
-device virtio-blk-device,drive=hd0 \
-drive
if=none,file=/home/joeyli/qemu-vm/openSUSE-MicroOS-aarch64-efi.qcow2,id=hd1 
-device virtio-blk-device,drive=hd1

I used root account the run the above command. The installation process does
NOT show on qemu graphics window.

I also tried non-root account, but I always got
"usr/libexec/qemu-bridge-helper: bridge helper failed" message. Looks that the
net bridge needs root permission.

Then I back to root account. Using qemu-kvm and "-cpu host" as the following
command:

qemu-kvm \
-m 4096 -cpu host -smp 4 \
-drive
if=pflash,format=raw,readonly,file=/usr/share/qemu/aavmf-aarch64-code.bin \
-drive
if=pflash,format=raw,file=/home/joeyli/qemu-vm/openSUSE-MicroOS-aarch64-vars-store.bin
\
-serial mon:stdio \
-net nic,model=virtio -net nic,model=virtio -net
bridge,br=br0,helper=/usr/libexec/qemu-bridge-helper \
-drive
if=none,file=/home/joeyli/iso/openSUSE-MicroOS-DVD-aarch64-Current.iso,id=hd0
-device virtio-blk-device,drive=hd0  \
-drive
if=none,file=/home/joeyli/qemu-vm/openSUSE-MicroOS-aarch64-efi.qcow2,id=hd1 
-device virtio-blk-device,drive=hd1

The above command is failed. I got:
qemu-kvm: combined size of system firmware exceeds 8388608 bytes

Then I tried to use "-bios" parameter (please note that -bios parameter does
NOT support secure boot). THe qemu-kvm command likes this:

qemu-kvm \
-m 4096 -cpu host -smp 4 \
-bios /usr/share/qemu/aavmf-aarch64-code.bin \
-net nic,model=virtio -net nic,model=virtio -net
bridge,br=br0,helper=/usr/libexec/qemu-bridge-helper \
-drive
if=none,file=/home/joeyli/iso/openSUSE-MicroOS-DVD-aarch64-Current.iso,id=hd0
-device virtio-blk-device,drive=hd0  \
-drive
if=none,file=/home/joeyli/qemu-vm/openSUSE-MicroOS-aarch64-efi.qcow2,id=hd1
-device virtio-blk-device,drive=hd1

The above command is failed. I got:
qemu-kvm: -device virtio-blk-device,drive=hd0: No 'virtio-bus' bus found for
device 'virtio-blk-device'


Simply said, I don't know how to install a aarch64 VM with a qemu graphics
window. Because this issue is about graphics. I think that using serial console
installation is NOT useful for creating a environment for debugging.


You are receiving this mail because: