The OpenHW Group's RISC-V Virtual Machine (riscv_vm) is intended for anyone wanting to study, configure as-preferred, modify, implement or release hardware based the RISC-V Instruction Set Architecture. The VM is preconfigured for RISC-V HW development. It was developed and tested with VirtualBox 6.0.10 but not on other virtualization SW. As of Sept 10, 2019, it includes most of the SW described in the https://open-isa.org/get-started/ webpage, except for NXP's VEGA board SDK.
- RISC-V SW tool chain using the Eclipse-IDE
- RISC-V Imperas OVPSim model
- RISC-V Verilator model
- The files in the ~/bin directory are used to create the VM Linux image after Ubuntu 18.04LTS has been installed.
- The VM'sminimal configuration is 2CPU/4G-RAM/20GB-DISK with USB 2.0 enabled
- To donwload a protable *.osa appliance file, go to:
- RISCV_VM *.OVA image on Google Drive
- Size: 4 GB (3,785,816,576 bytes)
- MDA5: 29e97756c8cb77f42503ae7ef4ddf876
- SHA1: b274fcac89d7c2d3fbaa26742e91a8c115774fad
- Note1: that the virtual machine userID /password is user/abc123
- Note2: an early version of the VM was released with a work-around to comply with 3rd party SW components in the VEGA SDK; for that version, the SDK must must installed directly within the VM following the instructions located here
- Note3: as of Monday September 16th, the VM includes all SW.
The instructions to install and run are:
- Open a Windows Command-line prompt with Admin privileges:
- Press the Windows-Start key
- search for the "cmd.exe" program
- right-click on CMD icon
- select “Run as administrator”
- Download and run the installer batch file available in this repository:
- Install VirtualBox and its corresponding Extension Pack downloaded by the installer script
- Import the *.OVA “appliance” into VirtualBox
- Start the VcXsrv client
- Start git-bash to run the following:
- Start the VM from the git-bash in head-less mode (your path may be different):
<PROMPT$>/c/bta_cadtree/VirtualBox/vb6_0_10/VBoxManage startvm riscv_vm --type headless
<PROMPT$>export DISPLAY=localhost:0.0
- SSH into the VM using the command:
- ssh -Yv user@<IP of riscv_vm2>
- In my case that is: ssh -Yv [email protected]
- Finally, install the JLink driver for the host system by following the instructions here:
On Ubuntu 18.04 the virtual box that is included by default is 5.x. Follow these instructions to download and install 6.x from virtualbox instead:
- From a command-line terminal
- clone the repo from your Linux machine:
- git clone [email protected]:openhwgroup/riscv_vm.git
- Run the installer script in "sudo" mode:
- sudo riscv_vm/riscv_vm_ubuntu_install.sh
- Import the *.OVA “appliance” into VirtualBox
- There does not seem to be host networks by default in virtualbox on Linux. To add:
- elect from the GUI menu [File] -> [Host Network Manager]
- then [Network] -> [Create]
- In the newly created network enable the DHCP server
- The VM may start in error related to host network, you may resolve this by simply opening the Machine's network settings and pressing ok (with perhaps a dummy edit).
- The installer script installs both VirtualBox and the corresponding extension pack for support of USB. The script also adds the current user to the vboxusers group:
- NOTE: log-off and on again for new groups to take effect
- Your Linux kernel may not be compatible with VirtualBox, if the isntallation fails with a message similar to this:
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (5.2.11-100.fc29.x86_64) or it failed to
load. Please recompile the kernel module and install it by
sudo /sbin/vboxconfig
You will not be able to start VMs until this problem is fixed.
- Finally, install the JLink driver for the host system by following the instructions here:
The instructions to install and run are:
- Open the “Terminal” application, found in /Applications/Utilities/
- Download and run the installer script available in this repository:
- Install VirtualBox and its corresponding Extension Pack downloaded by the installer script
- Import the *.OVA “appliance” into VirtualBox
- Start the XQuartz client:
- Install XQuartz on your Mac, which is the official X server software for Mac
- Run Applications > Utilities > XQuartz.app
- Right click on the XQuartz icon in the dock and select Applications > Terminal. This should bring up a new xterm terminal windows to run the following:
- Start the VM from the xquartz-terminal in head-less mode (your path may be different):
<PROMPT$>/c/bta_cadtree/VirtualBox/vb6_0_10/VBoxManage startvm riscv_vm --type headless
<PROMPT$>export DISPLAY=localhost:0.0
- SSH into the VM using the command:
- ssh -Yv user@<IP of riscv_vm2>
- In my case that is: ssh -Yv [email protected]
- Finally, install the JLink driver for the host system by following the instructions here: