Skip to content

Issue with qemu working properly in Ubuntu. #3

@skilz80

Description

@skilz80

This is in regards to the 2nd or newer YouTube video series on OS Development Episode 1.

Since I'm still running Windows 7 x64 as my Host operating system I'm not able to use wsl. So I opted to install Ubuntu in Virtual Box. Now, before I installed Ubuntu's latest distribution from its ISO file, I configured Virtual Box to be in EFI mode before installation. After installing Ubuntu, I updated and upgraded it, and I also installed a few other useful utilities before proceeding with this tutorial... One of them was Virtual Box's Guess add-ons... After that, I installed git, and curl just to make sure they were either on the system or up to date.

While I was following the video, everything worked fine until I tried doing:

make run

I get this error:

qemu-system-x86_64 -drive file=bin/CustomOS.img -m 256M -cpu qemu64 -drive if=pflash,
format=raw,unit=0,file="../OVMFbin/OVMF_CODE-pure-efi.fd",readonly=on -drive if=pflash,
format=raw,unit=1,file="../OVMFbin/OVMF_VARS-pure-efi.fd" -net none
/bin/sh: 1: qemu-system-x86_64: not found
make: *** [Makefile:37: run] Error 127

I even then tried updating run.bat file to the latest pull request... and then I tried running make again, and it still failed giving the same error.

I did some research and found a working solution. The issue or problem is with the qemu installation.

In your video when you instruct your readers for installing qemu on linux distros, and not the windows - wsl version, you are telling them to install qemu as follows:

sudo apt install qemu

I even tried restarting Ubuntu and that didn't help...

Through my research and with the help of Chrome's Grepper extension tool... I found this method of installing qemu

 sudo apt-get install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils

I did this even after using your standard way of installing qemu, but this was more involved and took some time to complete, a good 5-7 minute process... After it finished I tried running make run and it worked! qemu successfully started and loaded the bootloader. I can now see "HelloWorld!" on the EFI screen!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions