Qemu query

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
worldsapart
Member
Member
Posts: 36
Joined: Sat Jan 03, 2009 4:12 am

Qemu query

Post by worldsapart »

Post deleted
Please look below for my query
Last edited by worldsapart on Sun Jan 25, 2009 3:11 pm, edited 3 times in total.
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: Qemu query

Post by Love4Boobies »

:lol: Is this message supposed to be some kind of joke?
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Re: Qemu query

Post by JamesM »

worldsapart wrote:Hi,

I am tryin to setup an environment for some kernel development.. i am tryin to use qemu... all i could lay my hands on was a guide to creating a virtual disk using bximage for Bochs.. wel.. i was told that it was possible to use the same disk image with Qemu too... i use grub as a bootloader.. and using a loopback device.. wel.. when i do

qemu c.img

grub loads and i use the kernel and boot command to load the kernel that's in the boot directory... - (bzImage) ..

but then i get a kernel panic... wat could the possible reason be?? is it because my root filesystem isnt populated yet? it only has a boot folder as of now... (i'm using an ext2 file system...) ... any help will be appreciated.. thanks...
Use the help command, dunce.

Code: Select all

qemu --help
That would inform you that the line you pasted is incorrect. The actual line should be

Code: Select all

qemu -fda c.img
James
worldsapart
Member
Member
Posts: 36
Joined: Sat Jan 03, 2009 4:12 am

Re: Qemu query

Post by worldsapart »

heehee... dunce is the word!.. am sorry guys.. i figured out the mistake.. shouldnt work when i'm drunk next time... :wink:
worldsapart
Member
Member
Posts: 36
Joined: Sat Jan 03, 2009 4:12 am

Re: Qemu query

Post by worldsapart »

k.. am sorry for that last post.. i know it made no sense.. I'm a beginner in OS dev.. n jus doin some random experiments.. i'll try n explain my prob more clearly this time....

wel.. I downloaded the latest linux release frm kernel.org. I compiled it... I then created a virtual hard disk image using bximage (Bochs image creater).. I filled up the disk wit the necessary folders.. (i am using an ext2 file system).. I installed grub on the disk image and and copied bzImage to the boot folder of the virtual disk... my grub.conf file looks like this..

title my kernel
root (hd0,0)
kernel /boot/bzImage

I then try testing it on qemu...

Code: Select all

qemu -hda c.img
Qemu starts, and grub loads.. i select the kernel from the menu.. n it starts loading n then freezes at this point...

Code: Select all

.
.
VFS: Cannot open root device "<NULL>"  or unknown block(8,3)
Please append a correct "root=" boot option; here are the available partitions:
Kernel Panic - not syncing: VFS: Unable to mount root fs on unknown- block(8,3) ..

Cant figure out wat could be wrong... am sorry again if i'm not making myself clear.. any help would be appreciated... thanks.
Post Reply