Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLOUD-3175: Fix Docker Volume Issues on M2/M3 Macs by Enabling VZ Emulation and virtiofs #90

Merged
merged 2 commits into from
Apr 11, 2024

Conversation

pb-dod
Copy link
Contributor

@pb-dod pb-dod commented Apr 11, 2024

This PR addresses the Docker volume issues encountered by users on M2 and M3 Macs, as reported in this thread: rancher-sandbox/rancher-desktop#1209

@cobbr2 just had a rough time with this one on his m2 mac. He was seeing similar permission errors when trying to mount host volumes, preventing services like PostgreSQL from starting correctly.

We were able to resolve the underlying issue by switching from the default QEMU emulation to VZ (Virtualization.framework) and enabling virtiofs for file sharing between the host and the guest VM.

The PR reintroduces the necessary configuration changes that were previously removed, as these are still required for M2 and M3 Macs running Rancher Desktop. This also adds the fix to prevent needing to manually select virtiofs to get it working too.

@pb-dod pb-dod requested a review from a team as a code owner April 11, 2024 23:47
Copy link
Contributor

@cobbr2 cobbr2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks plausible to me.

@pb-dod pb-dod merged commit b3df8cd into master Apr 11, 2024
@pb-dod pb-dod deleted the use_vz_on_m2_m3 branch April 11, 2024 23:53
@pb-dod pb-dod changed the title Fix Docker Volume Issues on M2/M3 Macs by Enabling VZ Emulation and virtiofs CLOUD-3175: Fix Docker Volume Issues on M2/M3 Macs by Enabling VZ Emulation and virtiofs Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants