|
On this page, we will deploy a virtual machine with Vagrant. Vagrant is a tool to manage, configure and automate virtual machines. After deploying, the VM is accessible over ssh or VirtualBox.
|
|
On this page, we will deploy a virtual machine with Vagrant. Vagrant is a tool to manage, configure and automate virtual machines. After deploying, the VM is accessible over ssh or VirtualBox.
|
|
|
|
|
|
# Install Vagrant
|
|
# 📦 Install Vagrant
|
|
Visit the [Vagrant Installation Page](https://developer.hashicorp.com/vagrant/downloads) to install Vagrant based on your operating system.
|
|
Visit the [Vagrant Installation Page](https://developer.hashicorp.com/vagrant/downloads) to install Vagrant based on your operating system.
|
|
|
|
|
|
# Install VirtualBox
|
|
# 📦 Install VirtualBox
|
|
Install VirtualBox from the [VirtualBox Download Page](https://www.virtualbox.org/wiki/Downloads).
|
|
Install VirtualBox from the [VirtualBox Download Page](https://www.virtualbox.org/wiki/Downloads).
|
|
|
|
|
|
# Download gosdn repository
|
|
# 🖥️ Download gosdn repository
|
|
Go into the directory where you want to have this repository.
|
|
Go into the directory where you want to have this repository.
|
|
Get it with SSH:
|
|
Get it with SSH:
|
|
|
|
|
... | @@ -24,7 +24,7 @@ You can find the repository with this [link](https://code.fbi.h-da.de/danet/gosd |
... | @@ -24,7 +24,7 @@ You can find the repository with this [link](https://code.fbi.h-da.de/danet/gosd |
|
https://code.fbi.h-da.de/danet/gosdn
|
|
https://code.fbi.h-da.de/danet/gosdn
|
|
```
|
|
```
|
|
|
|
|
|
# Build Vagrant VM
|
|
# 🚀 Build Vagrant VM
|
|
Go to the directory lab-vm in the gosdn repository:
|
|
Go to the directory lab-vm in the gosdn repository:
|
|
```bash
|
|
```bash
|
|
cd gosdn/lab-vm/
|
|
cd gosdn/lab-vm/
|
... | @@ -34,7 +34,7 @@ Use following command to build and start the VM: |
... | @@ -34,7 +34,7 @@ Use following command to build and start the VM: |
|
vagrant up
|
|
vagrant up
|
|
```
|
|
```
|
|
|
|
|
|
# Access VM
|
|
# 🖥️ Access VM
|
|
## Option 1: Access VM via ssh
|
|
## Option 1: Access VM via ssh
|
|
```bash
|
|
```bash
|
|
vagrant ssh
|
|
vagrant ssh
|
... | @@ -43,7 +43,7 @@ vagrant ssh |
... | @@ -43,7 +43,7 @@ vagrant ssh |
|
Simply open VirtualBox. The VM will appear there:
|
|
Simply open VirtualBox. The VM will appear there:
|
|

|
|

|
|
|
|
|
|
# Useful commands
|
|
# :bulb: Useful commands
|
|
Start/build VM
|
|
Start/build VM
|
|
```bash
|
|
```bash
|
|
vagrant up
|
|
vagrant up
|
... | | ... | |