Skip to content

Flatcar arm64 running on QEMU (kvm enabled) does not have video output when using VNC #1030

@ader1990

Description

@ader1990

I am trying to run a flatcar arm64 image on qemu-kvm (accel = kvm) with VNC console configured - VNC console just shows "Display output is not active" after the grub2 boots the kernel.

With Flatcar (tried every release channel flatcar_production_qemu_uefi_image.img.bz2), I see the bootloader menu - grub version 2.02, then the boot process seems to continue as expected -- but the VNC console just shows "Display output is not active".

This looks to be a Linux configuration issue, anyone happen to know what are the missing flags or maybe I can try a special linux cmdline param to test?

For example, Ubuntu works with no issues (so there is not a problem on my setup).

I have seen that in your flatcar_production_qemu_uefi.sh script, you are suggesting to run with -nographic, which works great for its purpose, but I would like to use VNC.

Here are the reproduction steps (on an Ubuntu 22.04 ARM64 AMPERE ALTRA):

# under root
dd if=/dev/zero of=flash0.img bs=1M count=64
dd if=/dev/zero of=flash1.img bs=1M count=64

# tried with the flatcar provided bootloaders, same issue. secureboot was disabled.
dd if=/usr/share/qemu-efi-aarch64/QEMU_EFI.fd of=flash0.img conv=notrunc

wget https://lts.release.flatcar-linux.net/arm64-usr/current/flatcar_production_qemu_uefi_image.img.bz2
bzip2 -d ./flatcar_production_qemu_uefi_image.img.bz2

qemu-system-aarch64 -smp 4 -m 4096 -k en-us \
       -device usb-ehci -device usb-kbd -device usb-mouse -usb \
       -netdev user,id=vnet,hostfwd=:127.0.0.1:0-:22 -device virtio-net-pci,netdev=vnet \
       -drive file=flatcar_production_qemu_uefi_image.img,if=none,id=drive0,cache=writeback -device virtio-blk,drive=drive0,bootindex=0 \
       -drive file=flash0.img,format=raw,if=pflash -drive file=flash1.img,format=raw,if=pflash  -cpu host \
       -object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0 \
       --vnc 0.0.0.0:1 \
       -machine virt,accel=kvm,gic-version=host -device virtio-gpu-pci

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions