... | ... | @@ -3,5 +3,42 @@ On this page, we will deploy a virtual machine with Vagrant. Vagrant is a tool t |
|
|
# Install Vagrant
|
|
|
Visit the [Vagrant Installation Page](https://developer.hashicorp.com/vagrant/downloads) to install Vagrant based on your operating system.
|
|
|
|
|
|
# Install VirtualBox (optional)
|
|
|
If you want to access the VM obver VirtualBox instead of ssh, you can install VirtualBox from the [VirtualBox Download Page](https://www.virtualbox.org/wiki/Downloads). |
|
|
\ No newline at end of file |
|
|
# Install VirtualBox
|
|
|
Install VirtualBox from the [VirtualBox Download Page](https://www.virtualbox.org/wiki/Downloads).
|
|
|
|
|
|
# Download gosdn repository
|
|
|
Go into the directory where you want to have this repository.
|
|
|
Get it with SSH:
|
|
|
|
|
|
```bash
|
|
|
git clone git@code.fbi.h-da.de:danet/gosdn.git
|
|
|
```
|
|
|
or with HTTPS:
|
|
|
|
|
|
```bash
|
|
|
git clone https://code.fbi.h-da.de/danet/gosdn.git
|
|
|
```
|
|
|
You can find the repository with this [link](https://code.fbi.h-da.de/danet/gosdn):
|
|
|
|
|
|
```bash
|
|
|
https://code.fbi.h-da.de/danet/gosdn
|
|
|
```
|
|
|
|
|
|
# Build Vagrant VM
|
|
|
Go to the directory lab-vm in the gosdn repository:
|
|
|
```bash
|
|
|
cd gosdn/lab-vm/
|
|
|
```
|
|
|
Use following command to build and start the VM:
|
|
|
```bash
|
|
|
vagrant up
|
|
|
```
|
|
|
|
|
|
# Access VM
|
|
|
## Option 1: Access VM via ssh
|
|
|
```bash
|
|
|
vagrant ssh
|
|
|
```
|
|
|
## Option 2: Access VM via VirtualBox
|
|
|
Simply open VirtualBox. The VM will appear there:
|
|
|
 |
|
|
\ No newline at end of file |