How to run KVM image with OVMF

Moderator: mike

Post Reply
avaccaro
Posts: 2
Joined: Fri Feb 09, 2024 5:58 pm

How to run KVM image with OVMF

Post by avaccaro » Fri Feb 09, 2024 6:06 pm

Hi,

I have to run a KVM image that uses an OVMF firmware (OVMF_CODE.fd and OVMF_VARS.fd).
Could you please suggest how to configure EVE-NG to run it?

Thanks,
Andrea

rusty725
Posts: 146
Joined: Thu Mar 29, 2018 4:19 pm

Re: How to run KVM image with OVMF

Post by rusty725 » Sat Feb 10, 2024 9:21 pm

you can run qcow2 type in Eve besides iol and dynamips. You would need to convert ovf to qcow2 and then try your image. You will also need to create a custom template assuming its some 3rd party image.

avaccaro
Posts: 2
Joined: Fri Feb 09, 2024 5:58 pm

Re: How to run KVM image with OVMF

Post by avaccaro » Tue Mar 12, 2024 2:26 pm

Hi,
Thanks for your answer.
I have the qow2 image file but the problem is how can I configure QEMU command line to use specific OVMF_CODE.fd and OVMF_VARS.fd files?

For example, the following QEMU command line for launching the node does not work:

-machine type=pc,accel=kvm,pflash0=ovmfcode,pflash1=ovmfvars -nographic -rtc base=utc -cpu host -blockdev node-name=ovmfcode,driver=file,filename=/etc/qemu/OVMF_CODE.sw.fd,read-only=true -blockdev node-name=ovmfvars,driver=file,filename=/etc/qemu/OVMF_VARS.sw.fd

Thanks,
Andrea

Post Reply