Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
qemu error: 'virtio-vga-gl' is not a valid device model name
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
bugalo
n00b
n00b


Joined: 05 Jul 2015
Posts: 38

PostPosted: Tue Jun 18, 2024 9:56 pm    Post subject: qemu error: 'virtio-vga-gl' is not a valid device model name Reply with quote

Hi,

I am trying to create and launch a Windows 10 virtual machine with QEMU. To simplify the process, I am using quickemu to create the configuration for me:

https://github.com/quickemu-project/quickemu

This is the command that it created:

Code:
#!/usr/bin/env bash
/usr/bin/qemu-system-x86_64 \
    -name windows-10,process=windows-10 \
    -pidfile windows-10/windows-10.pid \
    -enable-kvm \
    -machine q35,smm=on,vmport=off \
    -machine hpet=off \
    -global kvm-pit.lost_tick_policy=discard \
    -global ICH9-LPC.disable_s3=1 \
    -cpu host,kvm=on,+hypervisor,+invtsc,l3-cache=on,migratable=no,hv_passthrough \
    -smp cores=4,threads=2,sockets=1 \
    -m 8G \
    -device virtio-balloon \
    -vga none \
    -device virtio-vga-gl \
    -display sdl,gl=on \
    -audiodev pa,id=audio0 \
    -device intel-hda \
    -device hda-duplex,audiodev=audio0 \
    -rtc base=localtime,clock=host,driftfix=slew \
    -device virtio-rng-pci,rng=rng0 \
    -object rng-random,id=rng0,filename=/dev/urandom \
    -device qemu-xhci,id=spicepass \
    -chardev spicevmc,id=usbredirchardev1,name=usbredir \
    -device usb-redir,chardev=usbredirchardev1,id=usbredirdev1 \
    -chardev spicevmc,id=usbredirchardev2,name=usbredir \
    -device usb-redir,chardev=usbredirchardev2,id=usbredirdev2 \
    -chardev spicevmc,id=usbredirchardev3,name=usbredir \
    -device usb-redir,chardev=usbredirchardev3,id=usbredirdev3 \
    -device pci-ohci,id=smartpass \
    -device usb-ccid \
    -chardev spicevmc,id=ccid,name=smartcard \
    -device ccid-card-passthru,chardev=ccid \
    -device usb-ehci,id=input \
    -device usb-kbd,bus=input.0 \
    -k en-us \
    -device usb-tablet,bus=input.0 \
    -device virtio-net,netdev=nic \
    -netdev user,hostname=windows-10,hostfwd=tcp::22220-:22,smb=/home/manu/Public,id=nic \
    -global driver=cfi.pflash01,property=secure,value=on \
    -drive if=pflash,format=raw,unit=0,file=/usr/share/qemu/edk2-x86_64-code.fd,readonly=on \
    -drive if=pflash,format=raw,unit=1,file=windows-10/OVMF_VARS.fd \
    -drive media=cdrom,index=2,file=windows-10/unattended.iso \
    -drive media=cdrom,index=0,file=windows-10/Win10_22H2_EnglishInternational_x64v1.iso \
    -drive media=cdrom,index=1,file=windows-10/virtio-win.iso \
    -device virtio-blk-pci,drive=SystemDisk \
    -drive id=SystemDisk,if=none,format=qcow2,file=windows-10/disk.qcow2 \
    -monitor unix:windows-10/windows-10-monitor.socket,server,nowait \
    -serial unix:windows-10/windows-10-serial.socket,server,nowait


And it fails with the error:

Code:
qemu-system-x86_64: -device virtio-vga-gl: 'virtio-vga-gl' is not a valid device model name


Do you have any suggestion of what I could be doing wrong? I cannot find any information on the error, or if I need to install some missing components, or modify my kernel configuration.

I am currently using app-emulation/qemu-9.0.0

Thanks for your help.
Back to top
View user's profile Send private message
sdauth
l33t
l33t


Joined: 19 Sep 2018
Posts: 647
Location: Ásgarðr

PostPosted: Wed Jun 19, 2024 7:04 pm    Post subject: Reply with quote

I don't think you can use virtio gpu with a win10 vm (for now), try to use qxl instead :

Try to replace this :

Code:
-vga none \
-device virtio-vga-gl \
-display sdl,gl=on \


with

Code:
-vga qxl \
-display sdl \


(you can also use gtk instead of sdl)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum