BTW, I used distrobox assemble to automate the process of setting this up (at least for Stable Diffusion, I didn’t integrate the blender instructions)
Just create a distrobox.ini
file somewhere and paste this in.
[rocm]
image=ubuntu:22.04
init=false
additional_packages="build-essential libtcmalloc-minimal4 wget git python3 python3-venv libgl1 libglib2.0-0"
init_hooks="apt update -y;"
init_hooks="apt upgrade -y;"
init_hooks="cd ~/Downloads && wget https://repo.radeon.com/amdgpu-install/5.6.1/ubuntu/jammy/amdgpu-install_5.6.50601-1_all.deb && apt install -y ./amdgpu-install_5.6.50601-1_all.deb && rm amdgpu-install_5.6.50601-1_all.deb;"
init_hooks="amdgpu-install --usecase=rocm --no-dkms -y;"
nvidia=false
pull=true
root=false
replace=true
start_now=true
Then run distrobox assemble create
You’ll need to clone the git repo for the webui and create your .desktop file separately though. I didn’t want to assume the locations on those. But you can do that on the host rather than in the container anyway so it’s not really distrobox’s issue.