Unable to Mount in LXC Container - Operation not Permitted #27

Open
opened 2023-11-21 11:35:05 +00:00 by cachito-worker · 2 comments

Issue Description:

I encountered an issue while attempting to mount a system image in an LXC container. Below is the sequence of commands I used:

curl -O https://dl.google.com/android/repository/sys-img/android/arm64-v8a-24_r07.zip
mkdir -p arm64-v8a-24_r07/mount
unzip arm64-v8a-24_r07.zip */system.img -d arm64-v8a-24_r07
sudo mount arm64-v8a-24_r07/arm64-v8a/system.img arm64-v8a-24_r07/mount

However, the last command resulted in the following error:

mount failed: Operation not permitted.

Issue Background:

I have been exploring solutions online but haven't found a definitive guide on configuring LXC to allow the mounting operation. The goal is to understand how to properly configure LXC to enable successful mounting.

Request for Assistance:

I seek guidance on how to configure LXC to allow the mounting operation described above. Any insights, tips, or step-by-step instructions would be greatly appreciated. Additionally, if there are specific LXC settings or configurations that need to be adjusted to permit such operations, I would be grateful for the details.

Thank you for your assistance!

### Issue Description: I encountered an issue while attempting to mount a system image in an LXC container. Below is the sequence of commands I used: ``` curl -O https://dl.google.com/android/repository/sys-img/android/arm64-v8a-24_r07.zip mkdir -p arm64-v8a-24_r07/mount unzip arm64-v8a-24_r07.zip */system.img -d arm64-v8a-24_r07 sudo mount arm64-v8a-24_r07/arm64-v8a/system.img arm64-v8a-24_r07/mount ``` However, the last command resulted in the following error: ``` mount failed: Operation not permitted. ``` ### Issue Background: I have been exploring solutions online but haven't found a definitive guide on configuring LXC to allow the mounting operation. The goal is to understand how to properly configure LXC to enable successful mounting. ### Request for Assistance: I seek guidance on how to configure LXC to allow the mounting operation described above. Any insights, tips, or step-by-step instructions would be greatly appreciated. Additionally, if there are specific LXC settings or configurations that need to be adjusted to permit such operations, I would be grateful for the details. Thank you for your assistance!
Owner

ACT uses https://code.forgejo.org/forgejo/lxc-helpers/ to provision LXC containers and some capabilities are restricted. I recommend you try to reproduce the problem using https://code.forgejo.org/forgejo/lxc-helpers/ from the CLI. Once you have an LXC container available and reproducing the problem, I can help figure out which capabilities should be added.

ACT uses https://code.forgejo.org/forgejo/lxc-helpers/ to provision LXC containers and some capabilities are restricted. I recommend you try to reproduce the problem using https://code.forgejo.org/forgejo/lxc-helpers/ from the CLI. Once you have an LXC container available and reproducing the problem, I can help figure out which capabilities should be added.
Author

ACT uses https://code.forgejo.org/forgejo/lxc-helpers/ to provision LXC containers and some capabilities are restricted. I recommend you try to reproduce the problem using https://code.forgejo.org/forgejo/lxc-helpers/ from the CLI. Once you have an LXC container available and reproducing the problem, I can help figure out which capabilities should be added.

ok

> ACT uses https://code.forgejo.org/forgejo/lxc-helpers/ to provision LXC containers and some capabilities are restricted. I recommend you try to reproduce the problem using https://code.forgejo.org/forgejo/lxc-helpers/ from the CLI. Once you have an LXC container available and reproducing the problem, I can help figure out which capabilities should be added. ok
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: forgejo/act#27
No description provided.