Skip to content

Refactor change_permission method for KVM permission - #606

Open
RyrieNorth wants to merge 1 commit into
budtmo:masterfrom
RyrieNorth:master
Open

Refactor change_permission method for KVM permission#606
RyrieNorth wants to merge 1 commit into
budtmo:masterfrom
RyrieNorth:master

Conversation

@RyrieNorth

Copy link
Copy Markdown

Types of changes

Put an x in the boxes that apply

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Purpose of changes

Fixes #476

The container works correctly when it is started for the first time:

image

However, after restarting the container, the Android emulator fails to start:

image

After the container is restarted, the ownership/group of /dev/kvm changes:

androidusr@379dfd412626:~$ ll /dev/kvm
crw-rw---- 1 0 994 10, 232 Aug 12 20:49 /dev/kvm

As a result, androidusr no longer has permission to access /dev/kvm, preventing QEMU from creating and running the Android emulator.

@RyrieNorth

Copy link
Copy Markdown
Author

This change ensures that /dev/kvm has the correct ownership and permissions after the container is restarted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment