X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=build%2FNOTES-QEMU.TXT;fp=build%2FNOTES-QEMU.TXT;h=fbd3d60a9eb1ab1dc9daa5ad01f9eb3b63c43d0f;hp=0000000000000000000000000000000000000000;hb=ddc16b0737cf58f7aa90a69c6652cdf4090aec51;hpb=626595465a2c6987606a6bc697df65130ad8c2d3 diff --git a/build/NOTES-QEMU.TXT b/build/NOTES-QEMU.TXT new file mode 100644 index 0000000..fbd3d60 --- /dev/null +++ b/build/NOTES-QEMU.TXT @@ -0,0 +1,39 @@ + + +/usr/local/qemu/bin/qemu -m 512 -fda ./vmm.img c.img + +-m 512 = 512 MB RAM + +-M = machine type + +-cpu = CPU type + +-monitor `tty` gives access to a qemu console that lets you dump +memory, registers, disassemble, etc. It's not a complete debugger, +thoough + +-S waits for a gdb connection. This seems to only work for kgdb and linux kernels + + +-serial stdio redirects COM1 to stdio +-serial file: writes COM1 to the given file + + + +MAKING an ISO image from a floppy image +mkisofs -pad -b -R -o + + +/usr/local/qemu/bin/qemu-system-x86_64 -serial file:serial.out -m 1024 -fda vmm.img -cdrom guest_no_timer.iso + + + +Creating a grub based bootable cd ISO image: + +mkidr iso +mkdir -p iso/boot/grub + +get "menu.lst" and "stage2_eltorito" from the grub files located in vmm-tools/others +copy menu.lst and stage2_eltorito into iso/boot/grub + +mkisofs -R -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -o test.iso iso