

Modify the Ubuntu hosts file (/etc/hosts).Save your changes, write down the IP address for later and close out of there.Make this connection have a static IP address by choosing Method:Manual and plugging in the Address, Netmask, and Gateway that's currently being displayed in the Network Settings window. This is your "Host-Only" network connection.Ĭlick Options and go to the IPv4 tab. Find the one that has an IP address where the first three numbers are the same as the VirtualBox Host-Only Network IP address on your Windows host. When it loads, go to System Setting->Network. You should have a "VirtualBox Host-Only Network" adapter.

Open a command window in Windows and run ipconfig. You need the Host-Only adapter to allow the Ubuntu VirtualBox and Windows host to see each other. You need the NAT adapter to supply internet connection to the Ubuntu VirtualBox. Enable this second Adapter, make it a "Host-only Adapter", and save the changes. In the VirtualBox Manager, select the Ubuntu VirutalBox, then go to Settings->Network->Adapter 2. If the above step fails, change the network adapter back to "NAT" and follow the following steps: Some have gotten this to work (try step 9 below to test), but when tried on a Vista host, the Vista machine couldn't ping the VirtualBox. to change your network adapter to "Bridged". In the VirtualBox window, try using Devices->Network Adapters. You must modify your VirtualBox network adapter to make your Ubuntu VirtualBox visible to the Windows host. Now comes the tricky bit - interfacing the guest and host. Once you successfully boot into your Ubuntu VirtualBox, follow all the instructions to install ROS onto it, and make sure that it can run properly by running through some simple tests or the first few tutorials. I added it into my setup.bat.įollow all the instructions to install VirtualBox.ĭownload your desired version of the Ubuntu iso.Ĭreate an Ubuntu VirtualBox by following these directions If you get "error code 2" when running roscore, it's because Python is not in your path.These instructions will create an Ubuntu VirtualBox on Windows, and will allow the win_ros listener/talker example programs to communicate with ROS nodes running on the Ubuntu VB.įollow all the instructions to install win_ros on your windows machine and check that the listener/talker example is working.
