ppggff / vagrant-qemu

Use Vagrant to manage machines using QEMU. Test with Apple Silicon / M1 and CentOS aarch64 image
MIT License
431 stars 35 forks source link

Explicitly set firmware file permissions after copying from QEMU dir. #27

Closed CathalMullan closed 2 years ago

CathalMullan commented 2 years ago

Hi.

I recently switched from using Brew to manage QEMU, to Nix, and hit a permissions issue as a result. When setting qemu_dir to the Nix QEMU directory instead of '/opt/homebrew/share/qemu', the VM failed to start.

Stderr: qemu-system-aarch64: Could not open '.../edk2-arm-vars.fd': Permission denied

In Brew, the firmware file permissions are '644', while with Nix they are '444'.

ppggff commented 2 years ago

Thanks for pr.

Is it possible to chmod only the edk2-arm-vars.fd ?

CathalMullan commented 2 years ago

Is it possible to chmod only the edk2-arm-vars.fd ?

Yes, just tested locally, works fine.

ppggff commented 2 years ago

Thanks a lot