ppggff / vagrant-qemu

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

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

Closed CathalMullan closed 1 year ago

CathalMullan commented 1 year 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 1 year ago

Thanks for pr.

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

CathalMullan commented 1 year ago

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

Yes, just tested locally, works fine.

ppggff commented 1 year ago

Thanks a lot