diff options
-rw-r--r-- | Tools/ros/vagrant/px4-ros/Vagrantfile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Tools/ros/vagrant/px4-ros/Vagrantfile b/Tools/ros/vagrant/px4-ros/Vagrantfile index e54370ada..ffe3a00ea 100644 --- a/Tools/ros/vagrant/px4-ros/Vagrantfile +++ b/Tools/ros/vagrant/px4-ros/Vagrantfile @@ -37,11 +37,13 @@ Vagrant.configure(2) do |config| d.build_dir = "../../docker/px4-ros" d.build_args = ["-t=px4ros/ros-base:no-drcsim"] - # share docker host x11 socket + # Share docker host x11 socket + # Run privileged to support 3d acceleration d.volumes = [ - "/tmp/.X11-unix:/tmp/.X11-unix:ro", - "/dev/dri:/dev/dri" + "/tmp/.X11-unix:/tmp/.X11-unix:ro" ] + d.create_args = ["--privileged"] + # TODO: get display number from host system d.env = { "DISPLAY" => ":0" |