Skip to content

virtualbox: libkmod Permission denied & NS_ERROR_FAILURE (AppArmor) #5765

Closed Answered by hotcapy
hotcapy asked this question in Q&A
Discussion options

You must be logged in to vote

I finally discovered what caused this issue! Firejail profile is fine, it's due to my specific configuration.
As mentioned before, I use custom /vbox/VMs folder for storing my VMs instead of default one ~/VirtualBox VMs.

To make it work, I had to allow write access to /vbox directory in Firejail's AppArmor profile by adding the following line to /etc/apparmor.d/local/firejail-default file:

/{,run/firejail/mnt/oroot/}vbox/** w,

Now VMs successfully start with this virtualbox.local:

env LD_PRELOAD=/usr/lib/libhardened_malloc-light.so
ignore noblacklist ${HOME}/VirtualBox VMs
noblacklist /vbox/VMs
ignore mkdir ${HOME}/VirtualBox VMs
ignore whitelist ${HOME}/VirtualBox VMs
whitelist /vbox/VMs…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@hotcapy
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by kmk3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants