You are not logged in.

#1 2016-12-20 10:48:11

hardrock
Member
Registered: 2016-12-20
Posts: 28

OVMF not booting scsi cd drive

Hi, I'm trying to follow this guide: https://www.reddit.com/r/pcmasterrace/c … de_on_how/

I get to the point I have to start the VM, It looks good, it starts on the assigned monitor but I cant get pass the ovmf bios/bios shell. Looks like it cannot find anything to boot.
This is my script to start it:

#!/bin/bash

qemu-system-x86_64 \
  -enable-kvm \
  -m 2048 \
  -cpu host,kvm=off \
  -device vfio-pci,host=01:00.0,multifunction=on \
  -device vfio-pci,host=01:00.1 \
  -device virtio-scsi-pci,id=scsi \
  -drive file=/home/me/VMs/win10.iso,id=isocd,format=raw,if=none -device scsi-cd,drive=isocd \
  -drive if=pflash,format=raw,readonly,file=bios/ovmf/ovmf_code_x64.bin \
  -drive if=pflash,format=raw,file=bios/ovmf/ovmf_vars_x64.bin \
  -boot d

I can enter the bios and check boot options and stuff, It sees the cd drive but wont boot from it. The OVMF I'm using is this: https://aur.archlinux.org/packages/ovmf-git/ just downloaded today.


If I switch to the qemu default bios, it works just fine:

#!/bin/bash

qemu-system-x86_64 \
  -enable-kvm \
  -m 2048 \
  -cpu host,kvm=off \
  -device vfio-pci,host=01:00.0,multifunction=on \
  -device vfio-pci,host=01:00.1 \
  -device virtio-scsi-pci,id=scsi \
  -drive file=/home/me/VMs/win10.iso,id=isocd,format=raw,if=none -device scsi-cd,drive=isocd \
  -boot d

This will just boot the windows cd as expected, but only in a small vga window, the assigned monitor stays black.
Any ideas on how to make it work?

Thanks.



EDIT: Found solution, instead of loading the OS from a CD image, loading it from a bootable USB works.

Last edited by hardrock (2016-12-21 10:12:27)

Offline

Board footer

Powered by FluxBB