mirror of
https://github.com/containers/podman.git
synced 2025-06-21 01:19:15 +08:00
Fix M1 QEMU flags
When calling QEMU, the CPU arch should be host, and highmem should be on, or else the VM start fails. [NO NEW TESTS NEEDED] Signed-off-by: Ashley Cui <acui@redhat.com>
This commit is contained in:
@ -15,8 +15,8 @@ func (v *MachineVM) addArchOptions() []string {
|
||||
opts := []string{
|
||||
"-accel", "hvf",
|
||||
"-accel", "tcg",
|
||||
"-cpu", "cortex-a57",
|
||||
"-M", "virt,highmem=off",
|
||||
"-cpu", "host",
|
||||
"-M", "virt,highmem=on",
|
||||
"-drive", "file=" + getEdk2CodeFd("edk2-aarch64-code.fd") + ",if=pflash,format=raw,readonly=on",
|
||||
"-drive", "file=" + ovmfDir + ",if=pflash,format=raw"}
|
||||
return opts
|
||||
|
Reference in New Issue
Block a user