@@ -45,8 +45,60 @@ Software Environment
45
45
46
46
This is a hands-on tutorial with several programming exercises. We
47
47
recommend using the virtual machine we've prepared that has all the
48
- necessary software that you need pre-installed. You can get the
49
- tutorial VM from the following link: [ Frenetic Tutorial VM] ( https://cornell.box.com/frenetic-4-tutorial ) .
48
+ necessary software that you need pre-installed. To run this, you need the
49
+ following open source software packages applicable for your host computer:
50
+
51
+ - [ VirtualBox] ( https://www.virtualbox.org/wiki/Downloads )
52
+
53
+ - [ Vagrant] ( http://www.vagrantup.com/downloads ) : automates the process of
54
+ creating, provisioning, starting and stopping VM's.
55
+
56
+ The Frenetic Tutorial VM runs Ubuntu 14.04 as the guest OS. It has OCaml, OPAM, Mininet,
57
+ Wireshark, and Frenetic itself pre-installed. The standard VIM and Nano editor packages
58
+ are installed, but you can install your own through the normal Ubuntu package mechanisms.
59
+
60
+ The Frenetic tutorial VM is stored in the Vagrant cloud, and installing it requires
61
+ very little effort. First start up a command prompt on your Windows, Linux, or Mac
62
+ OS host PC. Then:
63
+
64
+ - Create a <code >frenetic-tutorial-vm</code > directory and change into it
65
+ - Issue a <code >vagrant init cr396/frenetic-tutorial</code >. This will create a
66
+ proper Vagrantfile in the directory.
67
+ - Type <code >vagrant up</code >. This command does the heavy lifting: downloading the
68
+ latest VM, installing it into Virtual Box, and creating the right credentials
69
+ - Lastly, type <code >vagrant ssh</code > to login to a command prompt on your VM.
70
+
71
+ The output will look something like this:
72
+
73
+ ~~~ bash
74
+ $ mkdir frenetic-tutorial-vm
75
+ $ cd frenetic-tutorial-vm
76
+ ~ /frenetic-tutorial-vm$ vagrant init cr396/frenetic-tutorial
77
+ A ` Vagrantfile` has been placed in this directory. You are now
78
+ ready to ` vagrant up` your first virtual environment! Please read
79
+ the comments in the Vagrantfile as well as documentation on
80
+ ` vagrantup.com` for more information on using Vagrant.
81
+ ~ /frenetic-tutorial-vm$ vagrant up
82
+ Bringing machine ' default' up with ' virtualbox' provider...
83
+ ==> default: Box ' cr396/frenetic-tutorial' could not be found. Attempting to find and install...
84
+
85
+ ... lots of downloading and text
86
+
87
+ ~ /frenetic-tutorial-vm$ vagrant ssh
88
+ Welcome to Ubuntu 14.04.2 LTS (GNU/Linux 3.16.0-30-generic x86_64)
89
+
90
+ * Documentation: https://help.ubuntu.com/
91
+ Last login: Sun Feb 28 11:57:22 2016 from 10.0.2.2
92
+ vagrant@frenetic:~ $
93
+ ~~~
94
+
95
+ To use the VM:
96
+
97
+ - To start, change into the <code >frenetic-tutorial-vm</code > directory and type <code >vagrant up</code > followed
98
+ by <code >vagrant ssh</code >.
99
+ - To stop, simply exit from the Frenetic VM command prompt. Back at your host command prompt, type <code >vagrant
100
+ halt</code >. This step is optional - if you forget and shut down your host machine, the Frenetic VM will
101
+ itself shut down cleanly beforehand. But halting it will save you some memory and CPU cycles on the host.
50
102
51
103
References
52
104
----------
0 commit comments