QEMU not booting my image


 
Thread Tools Search this Thread
Special Forums Hardware Filesystems, Disks and Memory QEMU not booting my image
# 29  
Old 01-13-2011
OK, I am looking forward to it
# 30  
Old 01-13-2011
Bleh. I hate being sick. attempting to follow your steps now.

---------- Post updated at 12:50 PM ---------- Previous update was at 12:21 PM ----------

I don't have qemu, and haven't figured out how to build pistachio yet, so I just used one of the many pre-built example disks they have on their download page. They come with grub and work fine and should be an excellent base to build your own project with. It's vfat, not ext2, but considering you're on a floppy disk... If your qemu refuses to boot one of those boot images, then it's a problem with qemu. If it's just a problem with your own image, it's a problem with this software, with which I have no experience.

---------- Post updated at 12:57 PM ---------- Previous update was at 12:50 PM ----------

The 'make menuconfig' doesn't even recognize my escape key so I can't leave menus, and I have no idea what kernel options you built your kernel with anyway.
# 31  
Old 01-13-2011
In 'menuconfig' I think you're suppose to press the left arrow to go back. But anyways I think I figured out what the problem was. I used a block count of 8640:
Code:
dd if=/dev/zero of=kernel.img bs=512 count=8640

which is not the usual block count for a floppy. Perhaps this is what cause the problem. Because after I went back and used the example disk on the site like you said, I decided to use the block count they recommended (2880) and it worked. The only thing however, is that my project is over 3MB which means I need a lot more than 1.44MB. I was thinking about changing the settings in the grub commands but I'm not sure if they would work. Here is my intended setup:
Code:
$cat <<EOF | /sbin/grub --batch --device-map=/dev/null 
>device (hd0) /dev/loop0
>root (hd0)
>setup (hd0)
>quit
>EOF

instead of
Code:
$cat <<EOF | /sbin/grub --batch --device-map=/dev/null 
>device (fd0) /dev/loop0
>root (fd0)
>setup (fd0)
>quit
>EOF

the idea in my head is that if grub is looking for a floppy it looks for a 1.44MB image, so if it is looking for a harddrive then it looks for a random size image Smilie

---------- Post updated at 04:06 PM ---------- Previous update was at 03:48 PM ----------

By the way, when the image boot it says
Code:
Error 13: Invalid executable

This just mean that the executable is not compatible with my processor right? Because the example disk I downloaded was for Pentium 3 but my processor is a Pentium 4.
I simply booted the image using
Code:
qemu -fda the_image.img


Last edited by neur0n; 01-14-2011 at 04:15 PM..
# 32  
Old 01-13-2011
Quote:
Originally Posted by neur0n
In 'menuconfig' I think you're suppose to press the left arrow to go back.
I tried that too.
Quote:
But anyways I think I figured out what the problem was. I used a block count of 8640...
You'd think a pentium 3 image should boot on a pentium 4. But, I have no idea, as I don't use this software.

You've spent how many weeks trying to create a bootable image now, when their own download page has several premade ones with GRUB and a working filesystem available? At least use it as an example.
# 33  
Old 01-13-2011
Yea, they have a demo image. I don't intend to just boot a demo and stop there I want to know this stuff for when my project progresses. But anyways thanks a lot for all your help.

Last edited by neur0n; 01-13-2011 at 06:32 PM..
# 34  
Old 01-14-2011
Quote:
Originally Posted by neur0n
Yea, they have a demo image. I don't intend to just boot a demo and stop there I want to know this stuff for when my project progresses.
...linux understands vfat. You can modify them. Smilie Besides, have you even proven that your installation of qemu is willing to boot a known-good pist. floppy yet? You may be hitting a software incompatibility and not realizing.

I'd never have gotten anywhere making boot ISOs if I hadn't had one good, working example to look at. Having examined a working one, I was able to reverse-engineer it, and now can make them from scratch.. The same goes for initrds. For the boot process to work, everything has to be absolutely perfect because, if it doesn't work, it's mostly incapable of telling you why. The path of most resistance is not a winning plan.

Last edited by Corona688; 01-14-2011 at 03:32 PM..
# 35  
Old 01-14-2011
I got it to work now. Apparently, there were some option in the compilation that caused the incompatibility issue. As far as boot ISOs go I've already started learning how to make one Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. BSD

How to install Ultrix 4.2 on Qemu?

Hi Problem changed. I've got a message showing on the screen which says Guest has not initialized the display (yet) Any how I can fix this? Thanks Jack (4 Replies)
Discussion started by: lucky7456969
4 Replies

2. Virtualization and Cloud Computing

QEMU performance?

Heyas So, i like doing custom a LiveImage of my OS. Using Redhats kickstart/livecd-creator method. Anyway, so i would like to test the liveimages... AND also, i WOULD like to install FreeBSD, Solaris, or whatever, onto a Virtual Machine. I used to use Oracles Virtualbox, but eversince... (3 Replies)
Discussion started by: sea
3 Replies

3. IP Networking

Create a Bridge for Qemu using only loopback

hello networking folks, i have 3 virtual machines that need to talk to each other How can i create a bridge to loopback ? -net tap,vlan=0,ifname=tap1 where tap1 is connected to lo:1 , tap2 is connected to lo:2 etc thx (0 Replies)
Discussion started by: TwiceDone
0 Replies

4. Shell Programming and Scripting

matching image files to create one image

Hi, I have two sets of image files. Both sets have names A to Z but set 1 ends with .cdt.png and set 2 ends with .matrix.png. I want set 1 to match with set 2 if the names match (i.e. A.cdt.png will match with A.matrix.png) and with the convert image tool (program for images), it will merge the... (6 Replies)
Discussion started by: kylle345
6 Replies

5. Solaris

Dual Booting - Solaris image CD doesn't read in BIOS

I am trying to install solaris 10-x86 as second OS on top of Windows XP. I have downloaded iso image from Oracle website and burned into bootable cd. when I loaded into CD-drive and made changes in BIOS to boot from CD. Its not reading from CD drive. After restarting the system with CD(solaris... (8 Replies)
Discussion started by: SunSolars_admin
8 Replies

6. Programming

Qemu + gdb

Hi, I got: host machine: RedHat (RHEL6) virtual machine: RedHat (RHEL6) I run (on host machine): qemu-system-x86_64 ...... -S -s after that i run (on host machine): gdb target remote localhost:1234 set architecture i386:x86-64 and then i can use (on host machine) 'ctrl + c' to... (2 Replies)
Discussion started by: Chrisdot
2 Replies

7. UNIX for Dummies Questions & Answers

Anyone ever used qemu and networked it ?

hi i got a virtual linux machine running on qemu my problem is connecting it to the internet im a bit confused weather i have to make a virtual network card in qemu and than tun tap it? can anyone thats done it before help me out? (1 Reply)
Discussion started by: russian460
1 Replies

8. UNIX for Advanced & Expert Users

Create an Ignite image on tape from Online IgniteUX image

Hi, (HP-UX 11.11) I need to create a tape image of an igniteUX image created on our igniteUX server. That is to say. I have a "Online" image of the igniteUX of the targeted system but I now need to copy it to a useable TAPE (igniteUX) image so i can build an other server from it that is not... (3 Replies)
Discussion started by: Andrek
3 Replies
Login or Register to Ask a Question