Install VirtualBox and the CS50 appliance
Note: These instructions have been copied and adapted from this website at Harvard.Mac OS Installation
If your Mac is running OS X 10.8 or later, then download the latest release
of VirtualBox from
- Double-click the file you just downloaded. You may see a window that
says
Verifying... after which a VirtualBox icon should appear on your desktop (or on the lefthand side of a Finder window). - Double-click the VirtualBox icon on your desktop (or single-click the icon on the lefthand side of a Finder window). A window containing VirtualBox.mpkg should then appear.
- Double-click VirtualBox.mpkg.
- A window entitled Oracle VM VirtualBox for Mac OS X should then appear, in
front of which should appear a smaller window that prompts you to determine if
the software can be installed. Click
Continue on both. - A window entitled
Standard Install should then appear. ClickInstall . - If prompted for your username and password, provide both, then
click
Install Software . - A few seconds or minutes later, a window entitled The installation was
completed successfully should appear. Click
Close . - Launch VirtualBox, as by single- or double-clicking its icon, wherever you installed it. (Odds are it’s in Applications.)
- Select
Preferences under VirtualBox’s VirtualBox menu in your display’s top-left corner. - Click
Network . - If
vboxnet0 does not already appear in the white box under Host-only Networks, click the"+" icon to the right of that box, and vboxnet0 should then appear in the box.- With
vboxnet0 highlighted in the white box under Host-only Networks, click thescrewdriver icon to the right of that box.- A window with two tabs should then appear. Click
Adapter , if not selected already. Ensure that the window contains precisely these values:- IPv4 Address: 192.168.56.1
- IPv4 Network Mask: 255.255.255.0
- IPv6 Address:
- IPv6 Network Mask Length: 0
- Click OK.
- Click
DHCP Server . Ensure thatEnable Server is checked and that the window contains precisely these values:- Server Address: 192.168.56.100
- Server Mask: 255.255.255.0
- Lower Address Bound: 192.168.56.101
- Upper Address Bound: 192.168.56.254
- Click OK.
- Click OK.
- If you prefer to use an appliance with tools pre-installed, download the Appliance OVA file from here. If you wish to install tools on your own, download the Appliance’s OVA file here. The appliance file is nearly 2GB in size, so it might take a while to download.
- Once the file has finished downloading, check whether its name ends in
.ova or.ovf . There appears to be a bug in Chrome whereby .ova is incorrectly changed to.ovf , so if the file’s name does now end in.ovf , change it back as follows:- Single-click the file.
- Hit Enter.
- Change .ovf to .ova.
- Hit Enter.
- Launch VirtualBox, if not running already, as by single- or double-clicking its icon, wherever you installed it. (Odds are it’s in Applications.)
- Select
Import Appliance... from VirtualBox’s File menu.- Click
Open Appliance .- Navigate your way to the OVA file that you downloaded, highlight it, and click
Open . Then clickContinue .- You should see a summary of the appliance’s settings. Click
Import , and you’ll see CS50 Appliance 2014 in VirtualBox’s left-hand menu after a few seconds or minutes.- Click
CS50 Appliance 2014 to highlight it. To prevent a common error message upon startup, selectSettings and clickNetwork . Navigate toAdapter2 . Ensure that it has bothEnable Network Adapter checked and a value ofHost-only Adapter forAttached to , and ensure that the adapter also has a value ofvboxnet0 now forName , selecting it yourself from the drop-down menu next toName yourself if necessary.- Then click
Start to start the appliance. If you see a black-and-white screen entitled GNU GRUB, no need to do anything; the appliance will continue to boot after a few seconds! - With
Troubleshooting
Nonexistent host networking interface, name (VERR_INTERNAL_ERROR)
For some reason, VirtualBox doesn't always come with a "host-only adapter" configured. (A "host-only adapter" lets you connect to theCS50 Appliance via HTTP, SSH, and the like.) To resolve this problem:
- Launch VirtualBox. (If VirtualBox is already running, shut down any virtual machines that are running, as by clicking the red circle in the top-left corner of each window.)
- Select
Preferences... under VirtualBox's VirtualBox menu in your display's top-left corner. - Click
Network . - If
vboxnet0 does not already appear in the white box underHost-only Networks , click the"+" icon to the right of that box, andvboxnet0 should then appear in the box. - Click OK.
- Single-click whichever virtual machine originally triggered the error
(e.g., the CS50 Appliance), then click
Settings . - Click
Network . - Click each of
Adapter 1 ,Adapter 2 ,Adapter 3 , andAdapter 4 . If any of them has bothEnable Network Adapter checked and a value ofHost-only Adapter forAttached to (as should the CS50 Appliance forAdapter 2 ), ensure that the adapter also has a value ofvboxnet0 now forName , selecting it yourself from the drop-down menu next to Name yourself if necessary. - Click OK.
- Start whichever virtual machine originally triggered the problem (e.g., the CS50 Appliance); it should now be gone.
Failed to load VMMR0.r0 (VERR_SUPLIB_OWNER_NOT_ROOT)
This message usually indicates that
- Launch
Applications > Utilities > Terminal , which will provide you with a command-line environment on your own Mac. - Type
sudo chown root /Applications
followed byEnter , inputting your password if prompted. - Quit Terminal via
File > Quit Terminal . - Launch VirtualBox, if not already running.
- Start whichever virtual machine originally triggered the problem (e.g., the CS50 Appliance); it should now be gone.
Source: http://forums.virtualbox.org/viewtopic.php?f=7&t=38825
Failed to load VMMR0.r0 (VERR_SUPLIB_WORLD_WRITABLE)
This message usually indicates that that- Launch
Applications > Utilities > Terminal , which will provide you with a command-line environment on your own Mac. - Type
sudo chmod o-w /Applications
followed by Enter, inputting your password if prompted. Quit Terminal via File > Quit Terminal .- Launch VirtualBox, if not already running.
- Start whichever virtual machine originally triggered the problem (e.g., the CS50 Appliance); it should now be gone.
Windows Installation
In the instructions below, 4.x.y represents whatever version of VirtualBox is available on the day that you download it.
- Download the latest version of VirtualBox
from here by clicking
x86/amd64<.mono> to the right of VirtualBox 4.x.y for Windows Hosts. - Right-click the file you just downloaded and select
Run as administrator from the menu that appears. If asked whether you want to allow the following program to make changes to this computer, clickYes .- A window entitled
Welcome to the Oracle VM VirtualBox 4.x.y Setup Wizard should then appear. ClickNext .- A window entitled
Custom Setup should then appear. Odds are you won’t need to change anything on this window, but do be sure that all of the features in the "tree" are checked (whereby a gray disk icon appears to the left of each). You might need to click one or more plus (+) icons to see the whole tree. There should not be a red X to the left of any feature. Once certain that all features will be installed, clickNext .- Another window entitled
Custom Setup should then ask you whether you’d like to create a shortcut on the desktop and/or in the Quick Launch Bar. We recommend that you leave at least the first box checked. Decide which to check, then clickNext .- A window entitled
Warning: Network Interfaces might then try to scare you. Not to worry, clickYes .- A window entitled
Ready to Install should then appear. ClickInstall .- If prompted one or more times whether you would like to install this device software, click
Install each time.- A few seconds or minutes later, a window entitled
Oracle VM VirtualBox 4.x.y installation is complete should appear. LeaveStart Oracle VM VirtualBox 4.x.y after installation checked, then click Finish. VirtualBox should launch.- Select
Preferences... under VirtualBox's File menu.- Click
Network .- If
VirtualBox Host-Only Ethernet Adapter does not already appear in the white box underHost-only Networks , click the"+" icon to the right of that box, andVirtualBox Host-Only Ethernet Adapter should then appear in the box.- Click
VirtualBox Host-Only Ethernet Adapter in the white box underHost-only Networks in order to highlight it, if not highlighted already, then click the"screwdriver.png" icon at right.- Click
Adapter , if not selected already. Ensure that the window contains precisely these values:- IPv4 Address: 192.168.56.1
- IPv4 Network Mask: 255.255.255.0
- IPv6 Address:
- IPv6 Network Mask Length: 0
- Click OK.
- Click
DHCP Server . Ensure thatEnable Server is checked and that the window contains precisely these values:- Server Address: 192.168.56.100
- Server Mask: 255.255.255.0
- Lower Address Bound: 192.168.56.101
- Upper Address Bound: 192.168.56.254
- Click OK.
- Click OK.
- If you prefer to use an appliance with tools pre-installed, download the Appliance OVA file from here. If you wish to install tools on your own, download the Appliance’s OVA file here. The appliance file is nearly 2GB in size, so it might take a while to download.
- Launch VirtualBox, if not running already, as by single- or double-clicking its icon, wherever you installed it.
- Select
Import Appliance... from VirtualBox’s File menu.- Click
Open Appliance .- Navigate your way to the OVA file that you downloaded, highlight it, and click
Open . Then clickContinue .- You should see a summary of the appliance’s settings. Click
Import , and you’ll see CS50 Appliance 2014 in VirtualBox’s left-hand menu after a few seconds or minutes.- Click
CS50 Appliance 2014 to highlight it. To prevent a common error message upon startup, selectSettings and clickNetwork . Navigate toAdapter2 . Ensure that it has bothEnable Network Adapter checked and a value ofHost-only Adapter forAttached to , and ensure that the adapter also has a value ofVirtualBox Host-Only Ethernet Adapter orvboxnet0 now forName , selecting it yourself from the drop-down menu next toName yourself if necessary.- Then click
Start to start the appliance. If you see a black-and-white screen entitled GNU GRUB, no need to do anything; the appliance will continue to boot after a few seconds! - Right-click the file you just downloaded and select
If you ultimately find that the CS50 Appliance runs unbearably slowly within VirtualBox, you might need to enable hardware virtualizationon your PC.
Troubleshooting
Nonexistent host networking interface, name (VERR_INTERNAL_ERROR)
For some reason, VirtualBox doesn't always come with a "host-only adapter" configured. (A "host-only adapter" lets you connect to theCS50 Appliance via HTTP, SSH, and the like.) To resolve this problem:
- Launch VirtualBox. (If VirtualBox is already running, shut down any virtual machines that are running, as by clicking the red circle in the top-left corner of each window.)
- Select
Preferences... under VirtualBox's File menu in your display's top-left corner. - Click
Network . - If
VirtualBox Host-Only Ethernet Adapter does not already appear in the white box under Host-only Networks , click the"+" icon to the right of that box, andVirtualBox Host-Only Ethernet Adapter should then appear in the box.- Click OK.
- Single-click whichever virtual machine originally triggered the error (e.g., the CS50 Appliance), then click
Settings .- Click
Network .- Click each of
Adapter 1 ,Adapter 2 ,Adapter 3 , andAdapter 4 . If any of them has bothEnable Network Adapter checked and a value ofHost-only Adapter forAttached to (as should the CS50 Appliance forAdapter 2 ), ensure that the adapter also has a value ofVirtualBox Host-Only Ethernet Adapter now forName , selecting it yourself from the drop-down menu next to Name yourself if necessary.- Click OK.
- Start whichever virtual machine originally triggered the problem (e.g., the CS50 Appliance); it should now be gone.
Nonexistent host networking interface, name VirtualBox Host-Only Ethernet Adapter(VERR_INTERNAL_ERROR)
Sometimes (e.g., after an update), VirtualBox forgets about its "host-only adapter." (A "host-only adapter" lets you connect to the CS50 Appliance via HTTP, SSH, and the like.) To resolve this problem:
- Launch VirtualBox. (If VirtualBox is already running, shut down any virtual machines that are running, as by clicking the red circle in the top-left corner of each’s window.)
- Select
Preferences... under VirtualBox's File menu. - Click Network.
- If
VirtualBox Host-Only Ethernet Adapter does not already appear in the white box underHost-only Networks , click the"+" icon to the right of that box, andVirtualBox Host-Only Ethernet Adapter should then appear in the box. - Click OK.
- Single-click whichever virtual machine originally triggered the error
(e.g., the CS50 Appliance), then click
Settings . - Click
Network . - Click each of
Adapter 1 ,Adapter 2 ,Adapter 3 , andAdapter 4 . If any of them has bothEnable Network Adapter checked and a value ofHost-only Adapter forAttached to (as should the CS50 Appliance forAdapter 2 ), ensure that the adapter also has a value ofVirtualBox Host-Only Ethernet Adapter now forName , selecting it yourself from the drop-down menu next to Name yourself if necessary. - Click OK.
- Start whichever virtual machine originally triggered the problem (e.g., the CS50 Appliance); it should now be gone.
The installer has encountered an unexpected error installing this package. The error code is 2869.
This problem generally indicates that VirtualBox's installer wasn't run as an "administrator." To resolve this problem:
- Hit
Windows-R on your keyboard (i.e., hold the Windows key, then hit R) to open aRun prompt. - Input
ncpa.cpl to the right of Open, then hitEnter . - A window entitled
Network Connections should then appear, containing an icon calledWireless Network Connection and/or Local Area Connection (or similar). - If using wireless Internet, right-click
Wireless Network Connection (or similar), then chooseProperties from the menu that appears. A window entitledWireless Network Connection Properties (or similar) should then appear. - If using wired Internet, right-click
Local Area Connection (or similar), then chooseProperties from the menu that appears. A window entitledLocal Area Connection Properties (or similar) should then appear. - Inside of that window should be a list of items, some (or all) of which are
checked. If
VirtualBox Bridged Networking Driver appears in the list, single-click it to highlight it, then clickUninstall . - If prompted if you are sure you want to uninstall, click
Yes . - Click
Close . - Proceed to reinstall VirtualBox per the directions above. Be sure to run the installer as an administrator.
The application "iphlpsvc.dll" needs to be closed for the installation to continue.
This error generally precedes another error: The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2869.
See troubleshooting tips for that other error.
The application "Install Queue" needs to be closed for the installation to continue
This error generally precedes another error: The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2869.
See troubleshooting tips for that other error.
Linux Installation
- Download the latest version of VirtualBox from here by clicking i386 (if you’re running a 32-bit OS) or AMD64 (if you’re running a 64-bit OS) to the right of your particular distribution.
- Install VirtualBox via the file you just downloaded in a manner consistent with your distribution (as with dpkg, rpm, or yum).
- Launch VirtualBox, as by single- or double-clicking its icon, wherever you installed it.
- Select
Preferences... under VirtualBox’s File menu. - Click
Network . - If
vboxnet0 does not already appear in the white box under Host-only Networks, click the"+" icon to the right of that box, and vboxnet0 should then appear in the box.- With
vboxnet0 highlighted in the white box under Host-only Networks, click thescrewdriver icon to the right of that box.- Click
Adapter , if not highlighted already, and ensure that the four text fields below are as follows:- IPv4 Address: 192.168.56.1
- IPv4 Network Mask: 255.255.255.0
- IPv6 Address:
- IPv6 Network Mask: 0
- Click OK.
- Click
DHCP Server . Ensure thatEnable Server is checked and that the window contains precisely these values:- Server Address: 192.168.56.100
- Server Mask: 255.255.255.0
- Lower Address Bound: 192.168.56.101
- Upper Address Bound: 192.168.56.254
- Click OK.
- Click OK.
- If you prefer to use an appliance with tools pre-installed, download the Appliance OVA file from here. If you wish to install tools on your own, download the Appliance’s OVA file here. The appliance file is nearly 2GB in size, so it might take a while to download.
- Launch VirtualBox, if not running already, as by single- or double-clicking its icon, wherever you installed it.
- Select
Import Appliance... from VirtualBox’s File menu.- Click
Open Appliance .- Navigate your way to the OVA file that you downloaded, highlight it, and click
Open . Then clickContinue .- You should see a summary of the appliance’s settings. Click
Import , and you’ll see CS50 Appliance 2014 in VirtualBox’s left-hand menu after a few seconds or minutes.- Click
CS50 Appliance 2014 to highlight it. To prevent a common error message upon startup, selectSettings and clickNetwork . Navigate toAdapter2 . Ensure that it has bothEnable Network Adapter checked and a value ofHost-only Adapter forAttached to , and ensure that the adapter also has a value ofvboxnet0 now forName , selecting it yourself from the drop-down menu next toName yourself if necessary.- Then click
Start to start the appliance. If you see a black-and-white screen entitled GNU GRUB, no need to do anything; the appliance will continue to boot after a few seconds! - With
Troubleshooting
Nonexistent host networking interface, name (VERR_INTERNAL_ERROR)
For some reason, VirtualBox doesn't always come with a "host-only adapter" configured. (A "host-only adapter" lets you connect to theCS50 Appliance via HTTP, SSH, and the like.) To resolve this problem:
- Launch VirtualBox. (If VirtualBox is already running, shut down any virtual machines that are running, as by clicking the red circle in the top-left corner of each window.)
- Select
Preferences... under VirtualBox's VirtualBox menu in your display's top-left corner. - Click
Network . - Assuming nothing appears in the white box under
Host-only Networks , click the"+" icon to the right of that box, andvboxnet0 should then appear in the box. - Click OK.
- Single-click whichever virtual machine originally triggered the error
(e.g., the CS50 Appliance), then click
Settings . - Click
Network . - Click each of
Adapter 1 ,Adapter 2 ,Adapter 3 , andAdapter 4 . If any of them has bothEnable Network Adapter checked and a value ofHost-only Adapter forAttached to (as should the CS50 Appliance forAdapter 2 ), ensure that the adapter also has a value ofvboxnet0 now forName , selecting it yourself from the drop-down menu next to Name yourself if necessary. - Click OK.
- Start whichever virtual machine originally triggered the problem (e.g., the CS50 Appliance); it should now be gone.