polard8/kernel

./run script: Qemu isn't able to run the virtual disk

elenderg opened this issue ยท 5 comments

Hello. I got this error when trying to execute the ./run command:

Unable to init server: Could not connect: Connection refused
WARNING: Image format was not specified for 'GRAMADO.VHD' and probing guessed raw.
Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
Specify the 'raw' format explicitly to remove the restrictions.

Maybe this can help:
https://askubuntu.com/questions/883491/qemu-warning-image-format-was-not-specified-for-flash0-img-and-probing-guess

Oi ... i know what Your're talking about. Actually my .VHD doesn't have a perfect valid footer. The footer was made in Assembly when i built the boot loader stuff. To fix this problem i gotta learn how to make the right command line to launch the qemu with raw images. Maybe we can create some other options, not only this './run' file.

I think we need an option with these parameters: "-drive file=GRAMADO.VHD,format=raw,bus=0", something like that. :)

Probably it is happening in the newer version of qemu. Let's try to fix up this thing using ./run2 and ./runkvm2 in the core/ folder.

Which version of qemu are you currently using?

6.2.0