Failed to run qemu: X Error: BadValue in the Yocto Project
You are getting this error when you want to run the QEMU Image on the host system.
runqemu - ERROR - Failed to run qemu: X Error: BadValue
You have created the image for the default machine name qemux86-64 using the Yocto build system and want to verify this image on the host with the below command.
runqemu qemux86-64
Solution:
- Run the below command to launch the QEMU image on the host system.
runqemu qemux86-64 nographic
- if still, you are getting the same error then you need to Remove the Nvidia and third-party graphics driver from the host system.
sudo apt remove --purge '^nvidia-.*'
sudo apt install ubuntu-desktop
echo 'nouveau' | sudo tee -a /etc/modules
sudo rm /etc/X11/xorg.conf