Closed hallyn closed 1 year ago
Thanks for checking. There are two issues here:
1) machine or qcli needs to know what code to pair with the vars you are supplying. My initial look into detecting this did not release a way that we can detect what kind of vars file is being supplied (did was a smaller vars or the _4M version).
2) the supplier of the uefi vars to machine should provide both code and vars; they should always be a pair; we have no reason to believe a Vars generated from bootkit on Ubuntu will work with a code from say Fedora (even if they are of the same size).
the supplier of the uefi vars to machine should provide both code and vars; they should always be a pair; we have no reason to believe a Vars generated from bootkit on Ubuntu will work with a code from say Fedora (even if they are of the same size).
How should this be done? https://github.com/project-machine/machine/blob/main/pkg/api/vm.go#L70 has uefi-vars, but I did not see a uefi-code option in the vm definition yaml.
When I build machine+machined from main, kvm does run, but I don't get a UEFI shell or console output. When I revert 9ebadddf, I do. The difference in the qemu args is:
It appears to be using the _4M ovmf code with main, and not otherwise.