wrider | c1be425 | 2019-11-26 10:13:54 -0500 | [diff] [blame] | 1 | .. This work is licensed under a Creative Commons Attribution 4.0 International License. |
| 2 | .. SPDX-License-Identifier: CC-BY-4.0 |
| 3 | .. ===============LICENSE_START======================================================= |
Lott, Christopher (cl778h) | c22d1ce | 2020-01-20 13:53:43 -0500 | [diff] [blame] | 4 | .. Copyright (C) 2019-2020 AT&T Intellectual Property |
wrider | c1be425 | 2019-11-26 10:13:54 -0500 | [diff] [blame] | 5 | .. =================================================================================== |
Lott, Christopher (cl778h) | c22d1ce | 2020-01-20 13:53:43 -0500 | [diff] [blame] | 6 | .. This documentation file is distributed under the Creative Commons Attribution |
| 7 | .. 4.0 International License (the "License"); you may not use this file except in |
wrider | c1be425 | 2019-11-26 10:13:54 -0500 | [diff] [blame] | 8 | .. compliance with the License. You may obtain a copy of the License at |
| 9 | .. |
| 10 | .. http://creativecommons.org/licenses/by/4.0 |
| 11 | .. |
| 12 | .. This file is distributed on an "AS IS" BASIS, |
| 13 | .. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | .. See the License for the specific language governing permissions and |
| 15 | .. limitations under the License. |
| 16 | .. ===============LICENSE_END========================================================= |
| 17 | |
| 18 | |
| 19 | |
Zhe | 8326b64 | 2020-12-11 22:31:17 -0500 | [diff] [blame] | 20 | **Networking** |
| 21 | |
Lott, Christopher (cl778h) | c22d1ce | 2020-01-20 13:53:43 -0500 | [diff] [blame] | 22 | The set up requires two VMs connected by a private network. With VirtualBox, this can be |
| 23 | done by going under its "Preferences" menu and setting up a private NAT network. |
wrider | c1be425 | 2019-11-26 10:13:54 -0500 | [diff] [blame] | 24 | |
Lott, Christopher (cl778h) | cb20033 | 2020-01-20 15:56:57 -0500 | [diff] [blame] | 25 | #. Pick "Preferences", then select the "Network" tab; |
Lott, Christopher (cl778h) | c22d1ce | 2020-01-20 13:53:43 -0500 | [diff] [blame] | 26 | #. Click on the "+" icon to create a new NAT network. A new entry will appear in the NAT networks list |
| 27 | #. Double click on the new network to edit its details; give it a name such as "RICNetwork" |
Lott, Christopher (cl778h) | cb20033 | 2020-01-20 15:56:57 -0500 | [diff] [blame] | 28 | #. In the dialog, make sure to check the "Enable Network" box, uncheck the "Supports DHCP" box, and make a note of the "Network CIDR" (for this example, it is 10.0.2.0/24); |
| 29 | #. Click on the "Port Forwarding" button then in the table create the following rules: |
wrider | c1be425 | 2019-11-26 10:13:54 -0500 | [diff] [blame] | 30 | |
Lott, Christopher (cl778h) | c22d1ce | 2020-01-20 13:53:43 -0500 | [diff] [blame] | 31 | #. "ssh to ric", TCP, 127.0.0.1, 22222, 10.0.2.100, 22; |
| 32 | #. "ssh to aux", TCP, 127.0.0.1, 22223, 10.0.2.101, 22; |
| 33 | #. "entry to ric", TCP, 127.0.0.1, 22224, 10.0.2.100, 32080; |
| 34 | #. "entry to aux", TCP, 127.0.0.1, 22225, 10.0.2.101, 32080. |
wrider | c1be425 | 2019-11-26 10:13:54 -0500 | [diff] [blame] | 35 | |
Lott, Christopher (cl778h) | cb20033 | 2020-01-20 15:56:57 -0500 | [diff] [blame] | 36 | #. Click "Ok" all the way back to create the network. |
wrider | c1be425 | 2019-11-26 10:13:54 -0500 | [diff] [blame] | 37 | |
| 38 | |
Zhe | 8326b64 | 2020-12-11 22:31:17 -0500 | [diff] [blame] | 39 | **Creating VMs** |
wrider | c1be425 | 2019-11-26 10:13:54 -0500 | [diff] [blame] | 40 | |
| 41 | Create a VirtualBox VM: |
| 42 | |
Lott, Christopher (cl778h) | ca9b3ee | 2020-01-20 15:56:57 -0500 | [diff] [blame] | 43 | #. "New", then enter the following in the pop-up: Name it for example **myric**, of "Linux" type, and at least 6G RAM and 20G disk; |
Lott, Christopher (cl778h) | c22d1ce | 2020-01-20 13:53:43 -0500 | [diff] [blame] | 44 | #. "Create" to create the VM. It will appear in the list of VMs. |
| 45 | #. Highlight the new VM entry, right click on it, select "Settings". |
wrider | c1be425 | 2019-11-26 10:13:54 -0500 | [diff] [blame] | 46 | |
Lott, Christopher (cl778h) | c22d1ce | 2020-01-20 13:53:43 -0500 | [diff] [blame] | 47 | #. Under the "System" tab, then "Processor" tab, make sure to give the VM at least 2 vCPUs. |
| 48 | #. Under the "Storage" tab, point the CD to a Ubuntu 18.04 server ISO file; |
| 49 | #. Under the "Network" tab, then "Adapter 1" tab, make sure to: |
wrider | c1be425 | 2019-11-26 10:13:54 -0500 | [diff] [blame] | 50 | |
Lott, Christopher (cl778h) | c22d1ce | 2020-01-20 13:53:43 -0500 | [diff] [blame] | 51 | #. Check "Enable Network Adapter"; |
| 52 | #. Attached to "NAT Network"; |
Lott, Christopher (cl778h) | cb20033 | 2020-01-20 15:56:57 -0500 | [diff] [blame] | 53 | #. Select the Network that was created in the previous section: "RICNetwork". |
wrider | c1be425 | 2019-11-26 10:13:54 -0500 | [diff] [blame] | 54 | |
| 55 | Repeat the process and create the second VM named **myaux**. |
| 56 | |
| 57 | |
Zhe | 8326b64 | 2020-12-11 22:31:17 -0500 | [diff] [blame] | 58 | **Booting VM and OS Installation** |
wrider | c1be425 | 2019-11-26 10:13:54 -0500 | [diff] [blame] | 59 | |
Lott, Christopher (cl778h) | cb20033 | 2020-01-20 15:56:57 -0500 | [diff] [blame] | 60 | Follow the OS installation steps to install OS to the VM virtual disk media. During the setup you must |
| 61 | configure static IP addresses as discussed next. And make sure to install openssh server. |
wrider | c1be425 | 2019-11-26 10:13:54 -0500 | [diff] [blame] | 62 | |
| 63 | |
Zhe | 8326b64 | 2020-12-11 22:31:17 -0500 | [diff] [blame] | 64 | **VM Network Configuration** |
wrider | c1be425 | 2019-11-26 10:13:54 -0500 | [diff] [blame] | 65 | |
Lott, Christopher (cl778h) | c22d1ce | 2020-01-20 13:53:43 -0500 | [diff] [blame] | 66 | Depending on the version of the OS, the networking may be configured during the OS installation or after. |
| 67 | The network interface is configured with a static IP address: |
wrider | c1be425 | 2019-11-26 10:13:54 -0500 | [diff] [blame] | 68 | |
| 69 | - IP Address: 10.0.2.100 for myric or 10.0.2.101 for myaux; |
Lott, Christopher (cl778h) | cb20033 | 2020-01-20 15:56:57 -0500 | [diff] [blame] | 70 | - Subnet 10.0.2.0/24, or network mask 255.255.255.0 |
wrider | c1be425 | 2019-11-26 10:13:54 -0500 | [diff] [blame] | 71 | - Default gateway: 10.0.2.1 |
Lott, Christopher (cl778h) | cb20033 | 2020-01-20 15:56:57 -0500 | [diff] [blame] | 72 | - Name server: 8.8.8.8; if access to that is is blocked, configure a local DNS server |
wrider | c1be425 | 2019-11-26 10:13:54 -0500 | [diff] [blame] | 73 | |
| 74 | |
Zhe | 8326b64 | 2020-12-11 22:31:17 -0500 | [diff] [blame] | 75 | **Accessing the VMs** |
wrider | c1be425 | 2019-11-26 10:13:54 -0500 | [diff] [blame] | 76 | |
Lott, Christopher (cl778h) | c22d1ce | 2020-01-20 13:53:43 -0500 | [diff] [blame] | 77 | Because of the port forwarding configurations, the VMs are accessible from the VirtualBox host via ssh. |
wrider | c1be425 | 2019-11-26 10:13:54 -0500 | [diff] [blame] | 78 | |
| 79 | - To access **myric**: ssh {{USERNAME}}@127.0.0.1 -p 22222 |
| 80 | - To access **myaux**: ssh {{USERNAME}}@127.0.0.1 -p 22223 |