









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
USe this to install yes it is good it is required for computation
Typology: Exams
1 / 17
This page cannot be seen from the preview
Don't miss anything!










(The Virtual Machines of previous Years won’t work)
1 Overview........................................... 1
2 Installing VirtualBox..................................... 2 2.1 Installing VirtualBox on Windows............................ 2 2.2 Installing VirtualBox on Mac OS X........................... 2 2.3 Installing VirtualBox on Linux.............................. 3
3 Downloading the Computation Virtual Machine....................... 3
4 Enable VT-x in the BIOS................................... 3 4.1 I Already Have The VT-x Setting Enabled....................... 3 4.2 Enter the BIOS Menu.................................. 5 4.3 Enable VT-x....................................... 6 4.4 Remove Previous VM Import Attempts......................... 8
5 Importing the Computation Virtual Machine........................ 10
6 Out-of-Date Virtual Box................................... 11
7 Keeping your Work Safe using Shared Folders........................ 12 7.1 Changing the Shared Folder after You Started the Virtual Machine Anyway..... 15
8 Using the Computation Virtual Machine........................... 16 8.1 Using the Shared Folder................................. 16
9 Keeping a copy of .ova File................................. 17
In the Computation I and II courses we use a a number of programs to program C, assembly, and Verilog, such as an editor, compiler, debugger, and design environment. To make it easy to install all these programs in one go, we provide a virtual machine. With a virtual machine your computer can be used run a different operating system with different programs. For example, if your laptop runs the Windows operating system, then with a virtual machine it can run the Linux operating system and applications. Or your Mac can run the Windows operating system and applications. In the Computation I and II courses each student will use their own PYNQ hardware board connected to their laptop. The virtual machine also makes it easier to connect the PYNQ board to your laptop.
We use the Ubuntu Linux operating system and applications. Because it is a graphical operating system it is easy to use, even for Windows and Mac users. This document is quit long and detailed. Make sure you that you perform the following steps:
A separate document describes how to connect the PYNQ Z2 board to your computer and how to use it with the virtual machine.
The Computation Virtual Machines of previous years do not work with the PYNQ board. If you already Virtual Box installed, update it to the latest version 5.2.18 first.
2 Installing VirtualBox
To use the Computation Virtual Machine you need the VirtualBox application for your operating system. You can download it from this address:
https://www.virtualbox.org/wiki/Downloads
Figure 1
Download and install VirtualBox 5.2.18 for Windows hosts.
Download and install VirtualBox 5.2.18 for OS X hosts. After downloading the VirtualBox-5.2.18-124319-OSX.dmg file, double-click it to start the installation. Follow all the usual steps to install software on your Mac (you may have type in your administrator password to install).
this indicates that the setting is not enabled and you need to remove the virtual machine and follow the rest of the instructions to enable the VT-x setting in the BIOS of your laptop.
We are going to describe one method of accessing the BIOS of the university laptop. To perform this method, you will restart your laptop and use the F10 key to enter the BIOS menu. It is important that you perform a restart to ensure that your laptop does not just hibernate. Restart your laptop then repeatedly press F10 at the start of the booting process until you enter the BIOS menu. First restart:
Figure 3
Then repeatedly press F10 at the start of the boot process until you see the BIOS menu, which looks like this:
Figure 4
Figure 7
And optionally also for VTd (while you are in the menu anyhow):
Figure 8
Then select Exit:
Figure 9
And Save Changes by selecting Yes:
Figure 10
If you tried to import the virtual machine before enabling VT-x you will need to remove the imported virtual machine. Re-import it from the .ova file as described in the following Section. You remove a virtual machine by right-clicking and then selecting “delete all files”.
5 Importing the Computation Virtual Machine
Start the Virtual Box application and import the .ova file (File > Import Appliance, or drop the .ova file on the application):
Figure 13
Figure 14
Do not select the “Reinitialize the MAC address of all network cards” check box.
Figure 15
Figure 16
Before you start using the virtual machine, you need to create a shared folder to save your work, as described next.
6 Out-of-Date Virtual Box
If you use a Virtual Box version that is older than is required by the Computation Virtual Machine, then you will get the following error:
Figure 17
Update Virtual Box to the latest version, and restart Virtual Box before importing the virtual machine. If the Virtual Box update process takes a long time then it’s probably hanging because lost its network connection. Just stop the program and restart it (and then update).
Figure 19
Click on Shared Folders and double-click on C:\Users\s120330.... Create a folder on your computer called SharedWork; you can place it wherever you want (Desktop, Documents, etc.). (Take care that you change the C:\Users\s120330... shared folder, and not just add a new shared folder.)
Figure 20
8 Using the Computation Virtual Machine
First, remember:
when running programs in the virtual machine, you always save your work in the shared folder.
You are now ready to use the Computation Virtual Machine.
Double-click the “Shared on PC” icon on the desktop, to open the shared folder from the virtual machine.
Figure 24
Alternatively, you can open the file manager by clicking on the top-leftblue circle and access the shared folder from the side bar as “Shared on PC” as shown in the previous figure.
Figure 25
The last way to access the shared folder is to use the Terminal Emulator application and navigate to /Media/sf_SharedWork. (In fact, it is also shown in the File Manager side bar.) You will use the Terminal Emulator in conjunction with the PYNQ board, as described in an accompanying document.
9 Keeping a copy of .ova File
ALthough you can remove the .ova file at this point, we strongly recommend that you keep it. If you have problems with your virtual machine, then you can just remove it (since all your work is in the shared folder, right?), and reinstall the virtual machine.