Docker Ubuntu based SteamVR
July 9, 2024 ยท View on GitHub
An example of Steam and SteamVR working within an Ubuntu Docker container
Requirements
Make sure that you have nvidia-container-toolkit installed.
Follow this guide to install nvidia-container-toolkit:
https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html
Building
Build container with:
make dev
Enter container with:
docker exec -it --privileged steamvr_dev_<user>_<branch> bash
Running First time
Setup Steam and SteamVR
-
Open steam (running
steamin the container) and login to steam. Install SteamVR. -
Launch SteamVR running
steamvr(alias for$HOME/.steam/debian-installation/steamapps/common/SteamVR/bin/vrmonitor.sh) -
Set default runtime from the pop-up window:
-
If the pop-up window is not displayed, install an older version of SteamVR from the Betas settings section:
After configuring, set Beta Participation to None and use the latest version of SteamVR.
Setup conda environment to run in VR
- Navigate to
/home/${USER}/bigym/ - Activate bigym conda environments:
conda activate bigym - Install dependencies:
pip install -e ".[dev]" - Run demo recorder:
python tools/demo_recorder/main.py