QEMU ISO image throws error 0004 no bootable device

0

1

I created a Linux distro using the guide from Linux Journal. I then used genisoimage -o sunshine.iso Sunshine, where sunshine is the directory containing my source code. I then ran it using qemu-system-x86_64 sunshine.iso -curses when it throws an error saying: Boot failed: could not read the boot disk

                         Booting from DVD/CD...
                         Boot failed: Could not read from CDROM (code 0004)
                         Booting from ROM...
                         iPXE (PCI 00:03.0) starting execution...ok
                         iPXE initialising devices...ok



                         iPXE 1.0.0+git-20161027.b991c67-1 -- Open Source Network Boot Firmware -- http:/
                         /ipxe.org
                         Features: DNS HTTP iSCSI NFS TFTP AoE ELF MBOOT PXE bzImage Menu PXEXT

                         net0: 52:54:00:12:34:56 using 82540em on 0000:00:03.0 (open)
                           [Link:up, TX:0 TXE:0 RX:0 RXE:0]
                         Configuring (net0 52:54:00:12:34:56)...... ok
                         net0: 10.0.2.15/255.255.255.0 gw 10.0.2.2
                         net0: fec0::5054:ff:fe12:3456/64 gw fe80::2
                         net0: fe80::5054:ff:fe12:3456/64
                         Nothing to boot: No such file or directory (http://ipxe.org/2d03e13b)
                         No more network devices

                         No bootable device.

Sunshine is the name of my OS

Ryan Ilari

Posted 2020-01-08T20:20:40.267

Reputation: 1

I just realized i needed to pass the -cdrom flag. (Insert facepalm emoji) – Ryan Ilari – 2020-01-22T20:23:28.863

No answers