QEMU not booting my image


 
Thread Tools Search this Thread
Special Forums Hardware Filesystems, Disks and Memory QEMU not booting my image
# 22  
Old 01-04-2011
You know, NeurOn, if you just followed the instructions on the page (http://os.ibds.kit.edu/2101/php) you provided us, you should have no difficulty building a bootable 1.4Mb floppy containing L4. All the steps to do this are quite clearly documented on that page. It took me about 10 minutes.
# 23  
Old 01-05-2011
OK, I got it to work now, and to be completely honest I don't know why it didn't work the first time. I have one more problem however, and I'm not sure what's causing it. When I boot the image using QEMU, I select the boot option, then I get an error saying:

Code:
Error 16: Inconsistent filesystem structure

why is this happening and how can I fix it?

Last edited by neur0n; 01-05-2011 at 11:07 AM..
# 24  
Old 01-05-2011
I've said it before, and I'll say it again: Tell us all the steps you followed to create, and run, the image. Word for word. Letter for letter. Keystroke for keystroke. Whenever you post a question without doing this you're wasting your time.

We don't know what went wrong given that minimal information. Bootloaders are bad for this -- their tiny little brains can't cough up more than a general "it doesn't work" kind of error message when things aren't precisely as they expected, and that's best case. Worst case they just freeze and tell you nothing.

We are not mind readers. We don't even know what you did yet, let alone how to fix it...
# 25  
Old 01-05-2011
I followed the instructions here, like fpmurphy said I should in his last post. The one that required root privilege to be exact
# 26  
Old 01-06-2011
I didn't ask what set of instructions you followed, I asked what you actually did -- word for word, letter for letter, keystroke for keystroke. Surely you had to adapt them in some way. Copy-paste it if necessary.
# 27  
Old 01-07-2011
to create the image i used:
Code:
$dd if=/dev/zero of=kernel.img bs=512 count=8640
8640+0 records in
8640+0 records out
4423680 bytes (4.4 MB) copied, 0.0893247 s, 49.5 MB/s
$losetup /dev/loop0 kernel.img
$mke2fs /dev/loop0
mke2fs 1.41.4 (27-Jan-2009)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
1080 inodes, 4320 blocks
216 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=4456448

1 block group
8192 blocks per group, 8192 fragments per group
1080 inodes per group


Writing inode tables: done                            
Writing superblocks and filesystem accounting information: done


This filesystem will be automatically checked every 27 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
$mount /dev/loop0 -o loop /media/mount_point
$chmod 777 /media/mount_point
$cp -aR kernel_files/* /media/mount_point
$umount /media/mount_point

$cat <<EOF | /sbin/grub --batch --device-map=/dev/null 
>device (fd0) /dev/loop0
>root (fd0)
>setup (fd0)
>quit
>EOF 
       [ Minimal BASH-like line editing is supported.   For
         the   first   word,  TAB  lists  possible  command
         completions.  Anywhere else TAB lists the possible
         completions of a device/filename. ]
grub> device (fd0) /dev/loop0
grub> root (fd0)
Unknown partition table signature
grub> setup (fd0)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/e2fs_stage1_5" exists... no
 Running "install /boot/grub/stage1 (fd0) /boot/grub/stage2 p /boot/grub/menu.lst "... succeeded
Done.
grub> quit


$losetup -d /dev/loop0

then to boot the image i used
Code:
$qemu -fda kernel.img

exactly that, nothing else

---------- Post updated 01-07-11 at 10:16 AM ---------- Previous update was 01-06-11 at 11:12 AM ----------

hope this helps

Last edited by neur0n; 01-07-2011 at 10:15 AM..
# 28  
Old 01-07-2011
it should help a lot. sorry for my lack of reply I've been on continuous emergency road trips at work, I'll try and take a closer look on the weekend
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