Skip to content

Commit

Permalink
Use custom OVMF firmware (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertvolkmann authored Nov 22, 2024
1 parent c20a174 commit 9977e07
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion images/Dockerfile.vms
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM ubuntu:20.04

RUN apt update -y && \
apt install -y qemu-system-x86 ovmf ifupdown net-tools telnet
apt install -y qemu-system-x86 ifupdown net-tools telnet

COPY --from=ghcr.io/metal-stack/mini-lab-ovmf:edk2-stable202408.01 /OVMF_*.fd /opt/OVMF/

CMD ["/mini-lab/vms_entrypoint.sh"]
4 changes: 2 additions & 2 deletions scripts/manage_vms.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ def _start_vm(machine):
"-boot", "n",
"-cpu", "host",
"-drive", "if=virtio,format=qcow2,file={disk}".format(disk=machine.get("disk-path")),
"-drive", "if=pflash,format=raw,readonly,file=/usr/share/OVMF/OVMF_CODE.fd",
"-drive", "if=pflash,format=raw,readonly,file=/usr/share/OVMF/OVMF_VARS.fd",
"-drive", "if=pflash,format=raw,readonly,file=/opt/OVMF/OVMF_CODE.fd",
"-drive", "if=pflash,format=raw,readonly,file=/opt/OVMF/OVMF_VARS.fd",
"-serial", "telnet:127.0.0.1:{port},server,nowait".format(port=machine.get("serial-port")),
"-enable-kvm",
"-nographic",
Expand Down

0 comments on commit 9977e07

Please sign in to comment.