Page 1 of 1
How to run KVM image with OVMF
Posted: Fri Feb 09, 2024 6:06 pm
by avaccaro
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
Re: How to run KVM image with OVMF
Posted: Sat Feb 10, 2024 9:21 pm
by rusty725
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.
Re: How to run KVM image with OVMF
Posted: Tue Mar 12, 2024 2:26 pm
by avaccaro
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