Skip to content

Vagrant Virtual Machines for multiple versions (and combinations of versions) of ROS and Ubuntu

License

Notifications You must be signed in to change notification settings

karadalex/ros-vagrant-environments

Repository files navigation

ROS Vagrant Virtual Machines

Vagrant Virtual Machines for multiple versions (and combinations of versions) of ROS and Ubuntu:

  • Provision Ubuntu virtual machines with GUI (to run Gazebo and other visualization tools)
  • Loads a synced folder to share code from host machine to guest virtual machine. The synced folder in host is inside the relevant version folder and in the guest machine, you can find the folder at the path /home/ros_ws

Requirements

  1. Virtualbox
  2. Vagrant

Instructions

  1. Get on the folder with versions you want to run e.g. cd melodic-bionic
  2. Provision the virtual machine by running vagrant up
  3. You can then start the graphical environment by starting the machine from the VirtualBox program or start a non-gui session by running the command vagrant ssh. If you sign in from the GUI then use the following default vagrant credentials: username: vagrant and password vagrant
  4. To delete a machine completely, go to the VirtualBox program, find the VM and click on delete all files and then on this folder delete the .vagrant folder.

Version Matrices

Ubuntu x64 vs ROS

Focal
(20.04 LTS)
Bionic
(18.04 LTS)
Zesty
(17.04)
Xenial
(16.04 LTS)
Trusty
(14.04 LTS)
Precise
(12.04 LTS)
Melodic Supported Supported
Lunar Supported
Kinetic Supported
Jade EOL EOL EOL EOL EOL EOL
Indigo EOL
Hydro EOL EOL EOL EOL EOL EOL
Groovy EOL EOL EOL EOL EOL EOL

Ubuntu x64 vs ROS 2

Focal
(20.04 LTS)
Bionic
(18.04 LTS)
Zesty
(17.04)
Xenial
(16.04 LTS)
Trusty
(14.04 LTS)
Precise
(12.04 LTS)
Foxy Supported
Crystal Supported Supported
Bouncy Supported Supported

Gazebo vs ROS versions

In the Vagrant boxes of this repository the Recommended versions for Gazebo are installed (TODO)

Gazebo 9 Gazebo 8 Gazebo 7 Gazebo 2
Melodic Recommended
Lunar Supported Supported Recommended
Kinetic Supported Supported Recommended
Indigo Supported Recommended

Troubleshooting

  • Make sure this repository is cloned in a directory where vagrant has enough permissions to run and provision virtual machines.

The VirtualBox VM was created with a user that doesn't match the current user running Vagrant. VirtualBox requires that the same user be used to manage the VM that was created. Please re-run Vagrant with that user. This is not a Vagrant issue.

The UID used to create the VM was: 1000 Your UID is: 0

Make sure you run vagrant with the same user, the above error may occur when running at first the box with simple user and then with root (sudo)

About

Vagrant Virtual Machines for multiple versions (and combinations of versions) of ROS and Ubuntu

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published