Update Virtual Machine with Vagrant authored by Katharina Renk's avatar Katharina Renk
......@@ -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:
![VirtualBox](uploads/1c345175cb5768d2b9b0f8baa1c19ac5/VirtualBox.png)
\ No newline at end of file