piwik-script

Deutsch Intern
    Chair of Computer Science VIII - Aerospace Information Technology

    Rodos VM Installation (English version)

    The University of Würzburg offers a virtual machine (Rodos IDE) in which all necessary programs and source files are already installed so that you can start programming for RODOS at once. 

    In case you do not want to use the VM, you can download Rodos from GitLab and have a look at  this YouToube channel showing how to set up an Eclipse and run Rodos executables using Windows Subsystem for Linux (WSL).

    The following howto is also available as pdf here.

     

    Preparation

    WE ARE CURRENTLY WORKING ON THE RODOS VM IMAGE - THE IMAGE WILL BE AVAILABE AGAIN BY July 29th 2021 19:00 (CET).
    Please download the compressed  RodosVM image

    Download password: rodos2021

    You need to unpack the image, e.g., using  7zip.

    VirtualBox Installation

    1. Download VirtualBox >=  version 4.3.16 from https://www.virtualbox.org/wiki/Downloads
      1.  if you need software virtualization, use  VirtualBox 6.0
    2. Install VirtualBox.
    3. Download the VirtualBox Extension Pack from https://www.virtualbox.org/wiki/Downloads.  Please note, the VirtualBox Extension Pack version number must be the same as VirtualBox version number.
    4. Install the VirtualBox Extension Pack by clicking the extension pack file (name ending in "*.vbox-extpack").

     

    In case something goes wrong: there's a vm troubleshooting guide at the bottom of this page.  

     

    RodosVM Creation & Configuration

    Creating the RodosVM

    1. Open VirtualBox
    2. Click [New] to create a new virtual machine.
    3. Now the "Name and operating system" pop up opens, enter:
      1. Name:      RodosVM
      2. Type:        Linux
      3. Version:   Ubuntu (64-Bit)
      4. Click [Next].

    1. In the "Memory size" window, choose at least 2GiB (2048MiB) memory
    2. Click [Next]

    1. In the "Hard disk" window:
      1. choose Use an exisiting virtual hard disk file
      2. Then click on the small folder icon right of the drop down menu

    1. This has opened the "Hard disk selector" pop up. Please do:
      1. Click [Add]
      2. in the file menu, find your unpacked RodosVM image.
      3. Click [Open]
      4. Back in the "Hard Disc Selector" window that image should now be shown & highlighted.
      5. Click [Choose]

    1. This brings you back to the "Hard disk" window, click [Create]

    RodosVM Configuration

    Please click [Settings] and choose the following settings in the submenus:

     

    1. General / Advanced: choose Shared Clipboard "Host to Guest" in the drop down menu

    1.  System / Processor: Processors slider: leave it at  1 CPU

    1. Display / Screen: raise VideoMemory to 128MB

    1. Shared Folders:
      1. Click the small folder+ icon on the right to add a new shared folder.

    1. This opens the "Add share" window, here:
      1. Folder Path-Dropdown: choose Other..
      2. this opens the file manager, you can choose a directory or create a new one for the shared folder, then click [Ok]
      3. Check the box next to  AutoMount
      4. Click [Ok].

    (You don't need to specify a mount point, there is a default setting for this.)

     

    Using the RodosVM

    Your RodosVM should boot when you click on [Start]. This might take a moment.

    At the login screen, enter these credentials:

    User:  rodos
    Password: rodos2020

    Final touches - USB setup

    When developing for hardware targets such as the Discovery Board, Gecko, etc., the corresponding USB ports must be forwarded on to the VM.

    You can do this while running the vm via the VirtualBox Devices menu. Simply activate the desired device under Devices>USB.

    (You need the VirtualBox expansion pack in order to have all options shown in the picture available.)

    Passwords and locations

    User:

    rodos

    Password:

    rodos2020

    Root password:

    rodos2020

    Rodos source code directory:

    /home/rodos/rodos/

    Rodos project template:

    /home/rodos/eclipse-projects/rodosTemplate

    Building and running the Rodos example

    Using Eclipse

    To make getting started with Rodos programming as easy as possible, we have created an Eclipse project featuring a minimal Rodos application.

    You can find the example in the file manager under /home/rodos/eclipse-projects/rodosTemplate. When you click on the Eclipse Icon on the desktop, the Eclipse IDE opens and shows the Rodos example project "MyRodosApp".

    Clicking on the hammer symbol at the top left starts the compilation, first the Rodos libraries are built and then the example code. In the standard setting, the project is built for Linux so that it can be executed directly in the VM.

    The terminal (bottom center) displays the build program's output (cmake and make).  After a successful build, you can find the the executable "MyRodosApp" in the Project Explorer (left) under rodosTemplate/build-linux/my-rodos-app.

    You can now click the "Run" button with the green play symbol to the right of the "Build" button to run the built executable.

    The terminal below will then show the output of the running programm.

    Congratulations, everything is up and running. Now you can start having fun with the Rodos IDE.

     

     

    Video Howto

      

    VM Troubleshooting

    There are no 64bit options shown in operating systems dropdown menu??? 

    1. Virtualization is turned off in BIOS / UEFI => look for the VT-x option and turn it on, Instructions
    2. Hyper-V interferes => turn it off, Instructions
    3. Problems with VirtualBox >= 6.1, which does not support software virtualization => download  older version

     

    "Cannot register the hard disk 'C:\vm\[...] because a hard disk 'C:\vm\rodos\Xubuntu 18.04.3 (64bit).vdi' with UUID {a1457371-c6c4-4690-8383-ee4d757847de} already exists."

    You already have a virtual machine that's using a harddisk / image with the same name => delete the older virtual machine in VirtualBox or rename one of the two vm images.

     

    VirtualBox claims it cannot open "another session"

    1. Virtualization turned off in BIOS / UEFI => look for the VT-x option and turn it on, Instructions
    2. No idea why, but sometimes it helps to delete the vm & create a new one

     

    After vm startup, I only see a  blinking cursor

    1. Known problems with Hyper-V and/or WSL => Deactivate or deinstall WSL and Hyper-V:  how to turn of Hyper-V , how to turn of WSL
    2. Virtualization is turned off in the BIOS / UEFI => turn it on,  Instructions
    3. Both  => Instructions fto resolve both on HowtoGeek

     

    I run VirtualBox on Linux & there's no USB 2.0 | 3.0 forwarding???

    The open source virtualbox-host-module Expansion packs, as provided by various package managers, are only capable of forwarding  USB 1.0. You need  the Oracle Expansion Pack in order to use USB 2.0 | 3.0 Forwarding (which you will need for connecting to most target boards).

    Download it manually & install it, e.g., with the bash command: sudo VBoxManage extpack install  --accept-license=sha256 </Path/to/ExtensionPack/ExtensionPackName>