Skip to content

Commit

Permalink
docs: document incompatibility with VirtualBox, Fix #910
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Di Maio <[email protected]>
  • Loading branch information
89luca89 committed Sep 24, 2023
1 parent cfa815e commit c831e2e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion distrobox-export
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ export_binary() {
export_application() {
canon_dirs=""

IFS=":"
IFS=":"
if [ -n "${XDG_DATA_DIRS}" ]; then
for xdg_data_home in ${XDG_DATA_HOME}; do
[ -d "${xdg_data_home}/applications" ] && canon_dirs="${canon_dirs} ${xdg_data_home}/applications"
Expand Down
23 changes: 23 additions & 0 deletions docs/useful_tips.md
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,29 @@ Note that this is necessary only on Kernel version older than `5.11` .
From version `5.11` onwards native `overlayfs` is supported and reports noticeable
gains in performance as explained [HERE](https://www.redhat.com/sysadmin/podman-rootless-overlay)

## Permission problems when using VirtualBox

If you have VirtualBox installed on your host, you may encounter some permission
problems using **rootless Podman**:

```log
Error: unable to start container "XYZ": runc: runc create failed: unable to start container process: error during container init: error mounting "/dev/vboxusb/002/005" to rootfs at "/dev/vboxusb/002/005": lstat /..../dev/vboxusb/002: permission denied: OCI permission denied
```

This is because a rootless container done with `runc` will not port the host's groups
into the container.
The solution is to install `crun` from your package manager, and recreate your container.
crun supports the flag
```sh
run.oci.keep_original_groups=1
```
Which will allow porting the host's group inside the container, thus making it possible
for the rootless container to read vbox files.

## Container save and restore

To save, export and reuse an already configured container, you can leverage
Expand Down

0 comments on commit c831e2e

Please sign in to comment.