I/O size (minimum/optimal): 512 bytes / 512 bytesĭevice Boot Start End Sectors Size Id Type Sector size (logical/physical): 512 bytes / 512 bytes This is Ubuntu 15.10, running: QEMU emulator version 2.3.0 (Debian 1:2.3+dfsg-5ubuntu9.3), Copyright (c) 2003-2008 Fabrice Bellard How do I properly boot such a raw image in QEMU? Locate and configure the installation media. The New VM wizard breaks down installation to five steps: Name the guest VM and choose the installation type. The bus=9 argument that -drive should accept is either interpreted as a filename, or completely ignored. Step 1: Install a guest OS using virt-manager s New VM wizard. $ qemu-system-x86_64 -drive format=raw file=x86-64.img bus=9 Qemu-system-x86_64: -drive bus=9: Could not open 'format=raw': No such file or directory That fails (I think) because my boot device is on /dev/sda, bus 0, so one of the following should work according to QEMU's man page (but doesn't): $ qemu-system-x86_64 -drive bus=9 format=raw file=x86-64.img Qemu-system-x86_64: -drive format=raw: drive with bus=0, unit=0 (index=0) exists The raw command line argument is, as far as I can tell, meant to be passed like this: $ qemu-system-x86_64 -drive format=raw file=x86-64.img (probably because PilOS wants to write to block 0 but can't) The emulator loads, but PilOS crashes, which means I did something wrong: Specify the 'raw' format explicitly to remove the restrictions. That gives a message: WARNING: Image format was not specified for 'x86-64.img' and probing guessed raw.Īutomatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted. I have a disk image file from here that page says I can boot this image with QEMU and the following command: $ qemu-system-x86_64 -m 4096 -ctrl-grab -no-reboot x86-64.img
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |