You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Move optional steps for testing VMs out of README.md file
This may help avoid new users being confused that they must follow
those instructions.
Signed-off-by: Andy Fingerhut <[email protected]>
* Small updates to top README for P4 dev tool installation options
Signed-off-by: Andy Fingerhut <[email protected]>
---------
Signed-off-by: Andy Fingerhut <[email protected]>
Signed-off-by: Andy Fingerhut <[email protected]>
for a list of virtual machine images that you can download, then use
105
+
VirtualBox's File->Import Appliance menu item to add the virtual
106
+
machine to those on your system.
107
+
108
+
### To build a virtual machine with the P4 development tools.
91
109
92
110
#### Requirements
93
111
@@ -99,24 +117,21 @@ virtual machine or install several dependencies.
99
117
100
118
1. Install Vagrant and VirtualBox on your system.
101
119
2. Clone the repository
102
-
103
120
```
104
121
git clone https://github.com/p4lang/tutorials.git
105
122
```
106
123
3. Navigate to the cloned directory :
107
-
108
124
```
109
125
cd vm-ubuntu-24.04
110
126
```
111
127
4. Start the virtual machine using Vagrant:
112
128
```
113
129
vagrant up dev
114
130
```
115
-
*Note* : The time for this step depends on your computer and Internet speed. On a 2015 MacBook Pro with a 50 Mbps download speed, it took approximately 20 minutes. Ensure a stable Internet connection throughout the process.
131
+
*Note* : The time for this step depends on your computer and Internet speed. On a 2019 Intel MacBook Pro with a 1 Gbps download speed, it took approximately 2 hours. Ensure a stable Internet connection throughout the process.
116
132
117
133
### Accessing the VM
118
134
119
-
120
135
- There are two user accounts:
121
136
- Username: vagrant | Password: vagrant (This is the default account)
122
137
- Username: p4 | Password: p4 (Usage of this account is expected)
@@ -125,10 +140,9 @@ virtual machine or install several dependencies.
125
140
126
141
You will need the script to execute to completion before you can see the `p4` login on your virtual machine's GUI. In some cases, the `vagrant up` command brings up only the default `vagrant` login with the password `vagrant`. Dependencies may or may not have been installed for you to proceed with running P4 programs. Please refer the [existing issues](https://github.com/p4lang/tutorials/issues) to help fix your problem or create a new one if your specific problem isn't addressed there.
127
142
128
-
129
143
### To install P4 development tools on an existing system
130
144
131
-
There are instructions and scripts in another Github repository that can, starting from a freshly installed Ubuntu 20.04or 22.04 Linux system with enough RAM and free disk space, install all of the necessary P4 development tools to run the exercises in this repository. You can find those instructions and scripts [here](https://github.com/jafingerhut/p4-guide/blob/master/bin/README-install-troubleshooting.md) (note that you must clone a copy of that entire repository in order for its install scripts to work).
145
+
There are instructions and scripts in another Github repository that can, starting from a freshly installed Ubuntu 20.04, 22.04, or 24.04 Linux system with enough RAM and free disk space, install all of the necessary P4 development tools to run the exercises in this repository. You can find those instructions and scripts [here](https://github.com/jafingerhut/p4-guide/blob/master/bin/README-install-troubleshooting.md) (note that you must clone a copy of that entire repository in order for its install scripts to work).
0 commit comments